mke2fs command: create ext2 file system

The following content comes from the study and arrangement of network resources. If there is any infringement, please inform and delete it.

use format

mke2fs [options] [设备名称] [区块数]

options and meaning

  • -c: Check for corrupt blocks.
  • -F: Force mke2fs regardless of the specified device.
  • -M: Record the last mounted directory.
  • -q: Do not display any information during execution.
  • -r: Specifies the version of the ext2 file system to be created.
  • -S: Only write superblock and group descriptors without changing inode able inode bitmap and block bitmap.
  • -v: Display verbose information while executing.
  • -V: Display version information.
  • [-b <block size>]: Specifies the block size in bytes.
  • [-f <discontinuous segment size>]: Specifies the size of the discontinuous segment in bytes.
  • [-i <bytes>]: Specifies the "bytes/inode" ratio.
  • [-N <number of inodes>]: Specify the number of inodes to be created.
  • [-l <file>]: From the specified file, read the information of the damaged block in the file.
  • [-L <label>]: Set the label name of the file system.
  • [-m <percentage value>]: The proportion of blocks reserved for administrators, the default is 5%.
  • [-R=<number of blocks>]: Set disk array parameters.

Guess you like

Origin blog.csdn.net/oqqHuTu12345678/article/details/129767345