]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/mkfs.8
docs: remove obsolete and unneeded comments from man-page files
[thirdparty/util-linux.git] / disk-utils / mkfs.8
CommitLineData
232dc924 1.TH MKFS 8 "June 2011" "util-linux" "System Administration"
6dbe3af9 2.SH NAME
c181c31d 3mkfs \- build a Linux filesystem
6dbe3af9 4.SH SYNOPSIS
726f69e2 5.B mkfs
f49ccec2 6[options]
449a215f 7.RB [ \-t
4ec32f6a 8.IR type "] [" fs-options ] " device " [ size ]
6dbe3af9 9.SH DESCRIPTION
4459245f
KZ
10.B This mkfs frontend is deprecated in favour of filesystem specific mkfs.<type> utils.
11.PP
726f69e2 12.B mkfs
c181c31d
BS
13is used to build a Linux filesystem on a device, usually
14a hard disk partition. The
15.I device
16argument is either the device name (e.g.
7eda085c 17.IR /dev/hda1 ,
039f3531 18.IR /dev/sdb2 ),
c181c31d 19or a regular file that shall contain the filesystem. The
63ab9524 20.I size
c181c31d 21argument is the number of blocks to be used for the filesystem.
6dbe3af9
KZ
22.PP
23The exit code returned by
726f69e2
KZ
24.B mkfs
25is 0 on success and 1 on failure.
6dbe3af9
KZ
26.PP
27In actuality,
726f69e2 28.B mkfs
c181c31d 29is simply a front-end for the various filesystem builders
039f3531 30(\fBmkfs.\fIfstype\fR)
6dbe3af9 31available under Linux.
c181c31d 32The filesystem-specific builder is searched for in a number
449a215f 33of directories, like perhaps
7eda085c
KZ
34.IR /sbin ,
35.IR /sbin/fs ,
36.IR /sbin/fs.d ,
37.IR /etc/fs ,
38.I /etc
2b6fc908 39(the precise list is defined at compile time but at least
7eda085c
KZ
40contains
41.I /sbin
42and
43.IR /sbin/fs ),
44and finally in the directories
48d7b13a 45listed in the PATH environment variable.
c181c31d 46Please see the filesystem-specific builder manual pages for
6dbe3af9
KZ
47further details.
48.SH OPTIONS
49.TP
449a215f
BS
50.BR \-t , " \-\-type " \fItype\fR
51Specify the \fItype\fR of filesystem to be built.
c181c31d 52If not specified, the default filesystem type
5c36a0eb 53(currently ext2) is used.
6dbe3af9 54.TP
039f3531 55.I fs-options
c181c31d 56Filesystem-specific options to be passed to the real filesystem builder.
6dbe3af9 57.TP
449a215f 58.BR \-V , " \-\-verbose"
c181c31d 59Produce verbose output, including all filesystem-specific commands
63ab9524
SK
60that are executed.
61Specifying this option more than once inhibits execution of any
c181c31d 62filesystem-specific commands.
63ab9524 63This is really only useful for testing.
6dbe3af9 64.TP
449a215f
BS
65.BR \-V , " \-\-version"
66Display version information and exit. (Option \fB\-V\fR will display
c181c31d 67version information only when it is the only parameter, otherwise it
449a215f 68will work as \fB\-\-verbose\fR.)
6dbe3af9 69.TP
449a215f 70.BR \-h , " \-\-help"
b4362b6f 71Display help text and exit.
6dbe3af9
KZ
72.SH BUGS
73All generic options must precede and not be combined with
c181c31d 74filesystem-specific options.
b5ab5bec 75Some filesystem-specific programs do not automatically
726f69e2 76detect the device size and require the
449a215f 77.I size
726f69e2 78parameter to be specified.
6dbe3af9
KZ
79.SH AUTHORS
80David Engel (david@ods.com)
81.br
920d44f5 82Fred N.\& van Kempen (waltje@uwalt.nl.mugnet.org)
6dbe3af9 83.br
726f69e2
KZ
84Ron Sommeling (sommel@sci.kun.nl)
85.br
6dbe3af9 86The manual page was shamelessly adapted from Remy Card's version
c181c31d 87for the ext2 filesystem.
6dbe3af9 88.SH SEE ALSO
920d44f5 89.na
7eda085c
KZ
90.BR fs (5),
91.BR badblocks (8),
726f69e2 92.BR fsck (8),
7eda085c
KZ
93.BR mkdosfs (8),
94.BR mke2fs (8),
63cccae4 95.BR mkfs.bfs (8),
726f69e2 96.BR mkfs.ext2 (8),
63cccae4 97.BR mkfs.ext3 (8),
26b4e7a5 98.BR mkfs.ext4 (8),
7eda085c
KZ
99.BR mkfs.minix (8),
100.BR mkfs.msdos (8),
63cccae4 101.BR mkfs.vfat (8),
556c9c48 102.BR mkfs.xfs (8)
920d44f5 103.ad
86d62711 104.SH AVAILABILITY
601d12fb
KZ
105The mkfs command is part of the util-linux package and is available from
106ftp://ftp.kernel.org/pub/linux/utils/util-linux/.