Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
Name
mke2fs
Synopsis
mke2fs [options] device [blocks]
mkfs.ext2 [options] device [blocks]
Description
System administration command. Format device as a Linux Second Extended Filesystem. You may specify the number of blocks on the device or allow mke2fs to guess.
Options
- -b block-size
Specify block size in bytes.
- -c
Scan device for bad blocks before execution.
- -f fragment-size
Specify fragment size in bytes.
- -i bytes-per-inode
Create an inode for each bytes-per-inode of space. bytes-per-inode must be 1024 or greater; it is 4096 by default.
- -l filename
Consult filename for a list of bad blocks.
- -m percentage
Reserve percentage percent of the blocks for use by privileged users.
- -q
Quiet mode.
- -v
Verbose mode.
- -S
Write only superblock and group descriptors; suppress writing of inode table and block and inode bitmaps. Useful only when attempting to salvage damaged systems.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access