Linux mke2fs command
The Linux mke2fs command is used to create an ext2 file system.
Syntax
mke2fs [-cFMqrSvV][-b <区块大小>][-f <不连续区段大小>][-i <字节>][-N ][-l <文件>][-L <标签>][-m <百分比值>][-R=<区块数>][ 设备名称][区块数]
Parameters:
- -b
Specify the block size, in bytes. - -c Check for damaged blocks.
- -f
Specify the fragment size, in bytes. - -F Force execution of mke2fs regardless of the specified device.
- -i
Specify the "bytes/inode" ratio. - -N
Specify the number of inodes to create. - -l
Read information about damaged blocks in the file system from the specified file. - -L
- -m
Specify the proportion of blocks reserved for the administrator, default is 5%. - -M Record the last mounted directory.
- -q Do not display any information during execution.
- -r Specify the version of the ext2 file system to create.
- -R=
Set the disk array parameters. - -S Write only the superblock and group descriptors, without changing the inode table, inode bitmap, or block bitmap.
- -v Display detailed information during execution.
- -V Display version information.
Linux Command Reference