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.


Usage:

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






Command Line Options:

-t
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 ...
-V
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 ...
-h
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 (david@ods.com)Fred N. van Kempen (waltje@uwalt.nl.mugnet.org)Ron Sommeling (sommel@sci.kun.nl)The manual page was shamelessly adapted from Remy Card's version for the ext2 filesystem.
mkfs -h ...