BSD 4_2 development
[unix-history] / usr / man / man8 / mkfs.8
CommitLineData
e26f5261
C
1.TH MKFS 8 "10 May 1981"
2.UC 4
3.SH NAME
4mkfs \- construct a file system
5.SH SYNOPSIS
6.B /etc/mkfs
7special size
8[ nsect ]
9[ ntrack ]
10[ blksize ]
11[ fragsize ]
12[ ncpg ]
13[ minfree ]
14[ rps ]
15.SH DESCRIPTION
16.B N.B.:
17file system are normally created with the
18.IR newfs (8)
19command.
20.PP
21.I Mkfs
22constructs a file system
23by writing on the special file
24.I special.
25The numeric size specifies the number of sectors in the file system.
26.I Mkfs
27builds a file system with a root directory and a
28.I lost+found
29directory.
30(see
31.IR fsck (8))
32The number of i-nodes is calculated as a function of the file system size.
33No boot program is initialized by
34.I mkfs
35(see
36.IR newfs (8).)
37.PP
38The optional arguments allow fine tune control over the
39parameters of the file system.
40.B Nsect
41specify the number of sectors per track on the disk.
42.B Ntrack
43specify the number of tracks per cylinder on the disk.
44.B Blksize
45gives the primary block size for files on the file system.
46It must be a power of two, currently selected from 4096 or 8192.
47.B Fragsize
48gives the fragment size for files on the file system.
49The
50.B fragsize
51represents the smallest amount of disk space that will be allocated to a file.
52It must be a power of two currently selected from the range 512 to 8192.
53.B Ncpg
54specifies the number of disk cylinders per cylinder group.
55This number must be in the range 1 to 32.
56.B Minfree
57specifies the minimum percentage of free disk space allowed.
58Once the file system capacity reaches this threshold, only
59the super-user is allowed to allocate disk blocks. The default
60value is 10%.
61If a disk does not revolve at 60 revolutions per second, the
62.B rps
63parameter may be specified.
64Users with special demands for their file systems are referred to
65the paper cited below for a discussion of the tradeoffs in using
66different configurations.
67.SH "SEE ALSO"
68fs(5),
69dir(5),
70fsck(8),
71newfs(8),
72tunefs(8)
73.PP
74McKusick, Joy, Leffler; "A Fast File System for Unix",
75Computer Systems Research Group, Dept of EECS, Berkeley, CA 94720;
76TR #7, September 1982.
77.SH BUGS
78There should be some way to specify bad blocks.