Linux "mkfs" Command Line Options and Examples
build a Linux filesystem

This mkfs frontend is deprecated in favour of filesystem specific mkfs.<type> utils. mkfs is used to build a Linux filesystem on a device, usually a hard disk partition.


mkfs [options] [-t type] [fs-options] device [size]

Command Line Options:

Specify the type of filesystem to be built. If not specified, the default filesystem type (currently ext2) is used.fs-optionsFilesystem-specific options to be passed to the real filesystem builder.
mkfs -t ...
Produce verbose output, including all filesystem-specific commands that are executed. Specifying this option more than onceinhibits execution of any filesystem-specific commands. This is really only useful for testing.
mkfs -V ...
Display help text and exit.BUGSAll generic options must precede and not be combined with filesystem-specific options. Some filesystem-specific programs do notautomatically detect the device size and require the size parameter to be specified.AUTHORSDavid Engel ( N. van Kempen ( Sommeling ( manual page was shamelessly adapted from Remy Card's version for the ext2 filesystem.
mkfs -h ...