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 NOTE: file systems are normally created with the newfs(8) command. Mkfs constructs a file system by writing on the special file special. Special must have been previously formatted with scsifmt(8) or its equivalent in the Stand-Alone Utilities Package. 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. The default value of 8192 is preferred for performance reasons. 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 small files. It must be a power of two currently selected from the range 512 to 8192, and must not be less than one eighth of blksize. The default value of 1024 is preferred. ncpg Specifies the number of disk cylinders per cylinder group. This number must be in the range 1 to 32. The default value is 20. Printed 4/6/89 1
MKFS(8) COMMAND REFERENCE MKFS(8) 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 disk blocks. The default value is 10%. rps If a disk does not revolve at 60 revolutions per second (3600 RPM), this parameter should give the rotational speed in revolutions per second. nbpi The number of file system bytes per inode. It is used to calculate the number of inode blocks per cylinder group. The default value of 2048 means that there will be enough inodes in each cylinder group to handle an average file size of 2048 bytes. 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. SEE ALSO fs(5), dir(5), fsck(8), newfs(8), and tunefs(8). Printed 4/6/89 2
%%index%% na:240,82; sy:322,764; de:1086,1172; op:2258,1614;4184,892; rv:5076,665; se:5741,201; %%index%%000000000119