177 lines
4.5 KiB
HTML
177 lines
4.5 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of MKFS</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>MKFS</H1>
|
|
Section: System Administration (8)<BR>Updated: June 2011<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
mkfs - build a Linux filesystem
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>mkfs</B>
|
|
|
|
[options]
|
|
[<B>-t</B>
|
|
|
|
<I>type</I>] [<I>fs-options</I>]<I> device </I>[<I>size</I>]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>This mkfs frontend is deprecated in favour of filesystem specific mkfs.<type> utils.</B>
|
|
|
|
<P>
|
|
|
|
<B>mkfs</B>
|
|
|
|
is used to build a Linux filesystem on a device, usually
|
|
a hard disk partition. The
|
|
<I>device</I>
|
|
|
|
argument is either the device name (e.g.
|
|
<I>/dev/hda1</I>,
|
|
|
|
<I>/dev/sdb2</I>),
|
|
|
|
or a regular file that shall contain the filesystem. The
|
|
<I>size</I>
|
|
|
|
argument is the number of blocks to be used for the filesystem.
|
|
<P>
|
|
|
|
The exit code returned by
|
|
<B>mkfs</B>
|
|
|
|
is 0 on success and 1 on failure.
|
|
<P>
|
|
|
|
In actuality,
|
|
<B>mkfs</B>
|
|
|
|
is simply a front-end for the various filesystem builders
|
|
(<B>mkfs.</B><I>fstype</I>)
|
|
available under Linux.
|
|
The filesystem-specific builder is searched for via your PATH
|
|
environment setting only.
|
|
Please see the filesystem-specific builder manual pages for
|
|
further details.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-t</B>,<B> --type </B><I>type</I>
|
|
|
|
<DD>
|
|
Specify the <I>type</I> of filesystem to be built.
|
|
If not specified, the default filesystem type
|
|
(currently ext2) is used.
|
|
<DT id="2"><I>fs-options</I>
|
|
|
|
<DD>
|
|
Filesystem-specific options to be passed to the real filesystem builder.
|
|
<DT id="3"><B>-V</B>,<B> --verbose</B>
|
|
|
|
<DD>
|
|
Produce verbose output, including all filesystem-specific commands
|
|
that are executed.
|
|
Specifying this option more than once inhibits execution of any
|
|
filesystem-specific commands.
|
|
This is really only useful for testing.
|
|
<DT id="4"><B>-V</B>,<B> --version</B>
|
|
|
|
<DD>
|
|
Display version information and exit. (Option <B>-V</B> will display
|
|
version information only when it is the only parameter, otherwise it
|
|
will work as <B>--verbose</B>.)
|
|
<DT id="5"><B>-h</B>,<B> --help</B>
|
|
|
|
<DD>
|
|
Display help text and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
All generic options must precede and not be combined with
|
|
filesystem-specific options.
|
|
Some filesystem-specific programs do not automatically
|
|
detect the device size and require the
|
|
<I>size</I>
|
|
|
|
parameter to be specified.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
David Engel (<A HREF="mailto:david@ods.com">david@ods.com</A>)
|
|
<BR>
|
|
|
|
Fred N. van Kempen (<A HREF="mailto:waltje@uwalt.nl.mugnet.org">waltje@uwalt.nl.mugnet.org</A>)
|
|
<BR>
|
|
|
|
Ron Sommeling (<A HREF="mailto:sommel@sci.kun.nl">sommel@sci.kun.nl</A>)
|
|
<BR>
|
|
|
|
The manual page was shamelessly adapted from Remy Card's version
|
|
for the ext2 filesystem.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+fs">fs</A></B>(5),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+badblocks">badblocks</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+fsck">fsck</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mkdosfs">mkdosfs</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mke2fs">mke2fs</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mkfs.bfs">mkfs.bfs</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mkfs.ext2">mkfs.ext2</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mkfs.ext3">mkfs.ext3</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mkfs.ext4">mkfs.ext4</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mkfs.minix">mkfs.minix</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mkfs.msdos">mkfs.msdos</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mkfs.vfat">mkfs.vfat</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mkfs.xfs">mkfs.xfs</A></B>(8)
|
|
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>AVAILABILITY</H2>
|
|
|
|
The mkfs command is part of the util-linux package and is available from
|
|
<A HREF="https://www.kernel.org/pub/linux/utils/util-linux/.">https://www.kernel.org/pub/linux/utils/util-linux/.</A>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="9"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="10"><A HREF="#lbAF">BUGS</A><DD>
|
|
<DT id="11"><A HREF="#lbAG">AUTHORS</A><DD>
|
|
<DT id="12"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="13"><A HREF="#lbAI">AVAILABILITY</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:13 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|