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