Commit | Line | Data |
---|---|---|
4fd22aec C |
1 | .TH NEWFS 8 2/20/83 |
2 | .UC 4 | |
3 | .SH NAME | |
4 | newfs \- construct a new file system | |
5 | .SH SYNOPSIS | |
6 | .B /etc/newfs | |
7 | [ | |
8 | .B \-v | |
9 | ] [ | |
10 | .B mkfs-options | |
11 | ] | |
12 | .B special disk-type | |
13 | .SH DESCRIPTION | |
14 | .I Newfs | |
15 | is a ``friendly'' front-end to the | |
16 | .IR mkfs (8) | |
17 | program. | |
18 | .I Newfs | |
19 | will look up the type of disk a file system is | |
20 | being created on in the disk description | |
21 | file | |
22 | .IR /etc/disktab , | |
23 | calculate the appopriate | |
24 | parameters to use in calling | |
25 | .IR mkfs , | |
26 | then build the file system by forking | |
27 | .I mkfs | |
28 | and, if the file system is a root partition, | |
29 | install the necessary bootstrap programs | |
30 | in the initial 8 sectors of the device. | |
31 | .PP | |
32 | If the | |
33 | .B \-v | |
34 | option is supplied, | |
35 | .I newfs | |
36 | will print out its actions, including | |
37 | the parameters passed to | |
38 | .IR mkfs . | |
39 | .PP | |
40 | Options which may be used to override default | |
41 | parameters passed to | |
42 | .I mkfs | |
43 | are: | |
44 | .TP 10 | |
45 | .B \-s size | |
46 | The size of the file system in sectors. | |
47 | .TP 10 | |
48 | .B \-b block-size | |
49 | The block size of the file system in bytes. | |
50 | .TP 10 | |
51 | .B \-f frag-size | |
52 | The fragment size of the file system in bytes. | |
53 | .TP 10 | |
54 | .B \-t #tracks/cylinder | |
55 | .TP 10 | |
56 | .B \-c #cylinders/group | |
57 | The number of cylinders per cylinder group in a file system. | |
58 | The default value used is 16. | |
59 | .TP 10 | |
60 | .B \-m free space % | |
61 | The percentage of space reserved from normal users; the minimum | |
62 | free space threshhold. The default value used is 10%. | |
63 | .TP 10 | |
64 | .B \-r revolutions/minute | |
65 | The speed of the disk in revolutions per minute (normally 3600). | |
66 | .TP 10 | |
67 | .B \-S sector-size | |
68 | The size of a sector in bytes (almost never anything but 512). | |
69 | .FILES | |
70 | /etc/disktab for disk geometry and file system partition information | |
71 | .br | |
72 | /etc/mkfs to actually build the file system | |
73 | .br | |
74 | /usr/mdec for boot strapping programs | |
75 | .SH "SEE ALSO" | |
76 | fs(5), | |
77 | fsck(8), | |
78 | format(8) | |
79 | .PP | |
80 | McKusick, Joy, Leffler; "A Fast File System for Unix", | |
81 | Computer Systems Research Group, Dept of EECS, Berkeley, CA 94720; | |
82 | TR #7, September 1982. | |
83 | .SH BUGS | |
84 | Should figure out the type of the disk without the user's help. |