Linux mke2fs Command

Linux 命令大全Linux Command Encyclopedia

The Linux mke2fs command is used to create an ext2 file system.

Syntax

mke2fs [-cFMqrSvV][-b <区块大小>][-f <不连续区段大小>][-i <字节>][-N <inode数>][-l <文件>][-L <标签>][-m <百分比值>][-R=<区块数>][ 设备名称][区块数]

Parameters:

  • -b<block size> Specify the block size, in bytes.
  • -c Check for damaged blocks.
  • -f<fragment size> Specify the fragment size, in bytes.
  • -F Force mke2fs to run regardless of the specified device.
  • -i<bytes> Specify the "bytes/inode" ratio.
  • -N<inode count> Specify the number of inodes to create.
  • -l<file> Read information about damaged blocks in the file from the specified file.
  • -L<label> Set the label name of the file system.
  • -m<percentage value> Specify the percentage of blocks reserved for the administrator; the default is 5%.
  • -M Record the directory of the last mount.
  • -q Do not display any information during execution.
  • -r Specify the version of the ext2 file system to create.
  • -R=<block count> Set disk array (RAID) parameters.
  • -S Only write the superblock and group descriptors, without changing the inode table, inode bitmap, and block bitmap.
  • -v Display detailed information during execution.
  • -V Display version information.

Linux 命令大全Linux Command Encyclopedia

Other Extensions