1 .TH MKFS 8 "June 2011" "util-linux" "System Administration"
3 mkfs \- build a Linux filesystem
8 .IR type "] [" fs-options ] " device " [ size ]
10 .B This mkfs frontend is deprecated in favour of filesystem specific mkfs.<type> utils.
13 is used to build a Linux filesystem on a device, usually
14 a hard disk partition. The
16 argument is either the device name (e.g.
19 or a regular file that shall contain the filesystem. The
21 argument is the number of blocks to be used for the filesystem.
23 The exit code returned by
25 is 0 on success and 1 on failure.
29 is simply a front-end for the various filesystem builders
30 (\fBmkfs.\fIfstype\fR)
31 available under Linux.
32 The filesystem-specific builder is searched for via your PATH
33 environment setting only.
34 Please see the filesystem-specific builder manual pages for
38 .BR \-t , " \-\-type " \fItype\fR
39 Specify the \fItype\fR of filesystem to be built.
40 If not specified, the default filesystem type
41 (currently ext2) is used.
44 Filesystem-specific options to be passed to the real filesystem builder.
46 .BR \-V , " \-\-verbose"
47 Produce verbose output, including all filesystem-specific commands
49 Specifying this option more than once inhibits execution of any
50 filesystem-specific commands.
51 This is really only useful for testing.
53 .BR \-V , " \-\-version"
54 Display version information and exit. (Option \fB\-V\fR will display
55 version information only when it is the only parameter, otherwise it
56 will work as \fB\-\-verbose\fR.)
59 Display help text and exit.
61 All generic options must precede and not be combined with
62 filesystem-specific options.
63 Some filesystem-specific programs do not automatically
64 detect the device size and require the
66 parameter to be specified.
68 David Engel (david@ods.com)
70 Fred N.\& van Kempen (waltje@uwalt.nl.mugnet.org)
72 Ron Sommeling (sommel@sci.kun.nl)
74 The manual page was shamelessly adapted from Remy Card's version
75 for the ext2 filesystem.
93 The mkfs command is part of the util-linux package and is available from
94 https://www.kernel.org/pub/linux/utils/util-linux/.