MKFS(8) COMMAND REFERENCE MKFS(8)
NAME
mkfs - construct a file system
SYNOPSIS
/etc/mkfs special size [ nsect [ ntrack [ blksize [ fragsize
[ ncpg [ minfree [ rps [ nbpi ]]]]]]]]
DESCRIPTION
N.B.: file systems are normally created with the newfs(8)
command.
Mkfs constructs a file system by writing on the special file
special. The numeric size specifies the number of sectors in
the file system. Mkfs builds a file system with a root
directory and a lost+found directory. (see fsck(8)) The
number of inodes is calculated as a function of the file
system size. No boot program is initialized by mkfs (see
newfs(8)).
Mkfs must be run as super-user, since it must open special
for reading.
OPTIONS
The optional arguments allow fine tune control over the
parameters of the file system.
nsect
Specifies the number of sectors per track on the disk.
ntrack
Specifies the number of tracks per cylinder on the disk.
blksize
Gives the primary block size for files on the file
system. It must be a power of two, currently selected
from 4096 or 8192.
fragsize
Gives the fragment size for files on the file system.
The fragsize represents the smallest amount of disk
space that will be allocated to a file. It must be a
power of two currently selected from the range 512 to
8192.
ncpg
Specifies the number of disk cylinders per cylinder
group. This number must be in the range 1 to 32.
minfree
Specifies the minimum percentage of free disk space
allowed. Once the file system capacity reaches this
threshold, only the super-user is allowed to allocate
Printed 10/17/86 1
MKFS(8) COMMAND REFERENCE MKFS(8)
disk blocks. The default value is 10%.
rps If a disk does not revolve at 60 revolutions per second,
the rps parameter may be specified.
nbpi
Specifies the number of inode blocks per cylinder group.
RETURN VALUE
[NO_ERRS] Command completed without error.
[USAGE] Incorrect command line syntax. Execution
terminated.
[NP_WARN] An error warranting a warning message
occurred. Execution continues.
[NP_ERR] An error occurred that was not a system
error. Execution terminated.
[P_ERR] A system error occurred. Execution
terminated. See intro(2) for more
information on system errors.
CAVEATS
There is no way to specify bad blocks.
SEE ALSO
fs(5), dir(5), fsck(8), newfs(8), tunefs(8).
Printed 10/17/86 2
%%index%%
na:72,66;
sy:138,508;
de:646,832;
op:1478,1349;2971,299;
rv:3270,621;
ca:3891,95;
se:3986,174;
%%index%%000000000128