📄 mkfs.8
字号:
.\" SCCSID: @(#)mkfs.8 8.2 9/27/90.TH mkfs 8.SH Namemkfs \- construct a file system.SH Syntax.B /etc/mkfs[ \fI-N\fP ]\fIspecial size\fP[ \fInsect\fP ][ \fIntrack\fP ][ \fIblksize\fP ].br[ \fIfragsize\fP ][ \fIncpg\fP ][ \fIminfree\fP][ \fIrps\fP ][ \fInbpi\fP ][ \fIopt\fP ].SH Description.NXR "mkfs command".NXR "file system" "constructing prototype".NXA "mkfs command" "newfs command".NXA "mkfs command" "tunefs command"File systems are normally created with the.MS newfs 8command..PPThe \fI-N\fP option is used to run.PN mkfsin no update mode. In this mode, .PN mkfswill not write to.PN special ..PPThe.PN mkfscommand constructs a file systemby writing on the special file.I special.The numeric size specifies the number of sectors in the file system.The.PN mkfscommand builds a file system with a root directory and a.I lost+founddirectory.For further information, see .MS fsck 8 .The number of i-nodes is calculatedas a function of the file system size.No boot program is initialized by.PN mkfs .For further information, see .MS newfs 8 ..PPWhen the on-disks inodes of the file system are written, each containsa unique number in its generation number field. This number uniquelyidentifies each inode in a file system..PPThe optional arguments allow fine tune control over theparameters of the file system.The.I nsectargument specifies the number of sectors per track on the disk.The.I ntrack argument specifies the number of tracks per cylinder on the disk.The.I blksize argument 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.I fragsizeargument gives the fragment size for files on the file system.The.I fragsizeargument represents the smallest amount of disk spacethat will be allocated to a file.It must be a power of two currently selected from the range 512 to 8192.The.I ncpgargument specifies the number of disk cylinders per cylinder group.This number must be in the range 1 to 32.The.I minfreeargument specifies the minimum percentage of free disk space allowed.Once the file system capacity reaches this threshold, onlythe superuser is allowed to allocate disk blocks. The defaultvalue is 10%.If a disk does not revolve at 60 revolutions per second, the.I rpsparameter may be specified.Users with special demands for their file systems are referred to``A Fast File System for UNIX'' in the.I "ULTRIX Supplementary Documents, Volume 3: System Manager"for a discussion of the tradeoffs in using different configurations.The.I nbpiargument specifies the number (ratio) of bytes per inode. The default is 2048 bytes. The.I optargument is used to indicate the whether the file system should optimize forspace or time.The.I optargument can be assigned a value of s or t..SH RestrictionsIf .PN /bin/mkfsis invoked without arguments, the RISC machines dump core instead of returning an error..SH See Alsodir(5), fs(5), fsck(8), newfs(8), tunefs(8).br"A Fast File System for UNIX",\fISupplementary Documents, Volume 3: System Manager\fP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -