Linux mke2fs Command
The Linux mke2fs command is used to create an ext2 file system.
Syntax
mke2fs [-cFMqrSvV][-b <block size>][-f <fragment size>][-i <bytes>][-N <inode count>][-l <file>][-L <label>][-m <percentage>][-R=<blocks>][device name][block count]
Parameters:
-b <block size> Specifies the block size, in bytes.
-c Checks for bad blocks.
-f <fragment size> Specifies the fragment size, in bytes.
-F Forces mke2fs to execute regardless of the device specified.
-i <bytes> Specifies the "bytes/inode" ratio.
-N <inode count> Specifies the number of inodes to create.
-l <file> Reads information about bad blocks from the specified file.
-L <label> Sets the label name for the file system.
-m <percentage> Specifies the percentage of blocks reserved for the administrator, default is 5%.
-M Records the last mounted directory.
-q Executes without displaying any messages.
-r Specifies the ext2 file system version to create.
-R=<blocks> Sets the RAID parameters.
-S Writes only the superblock and group descriptors, without modifying the inode table, inode bitmap, and block bitmap.
-v Executes with verbose information.
-V Displays version information.