142 lines
3.6 KiB
HTML
142 lines
3.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of MKFS.MINIX</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>MKFS.MINIX</H1>
|
|
Section: System Administration (8)<BR>Updated: June 2015<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.minix - make a Minix filesystem
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>mkfs.minix</B>
|
|
|
|
[options]
|
|
<I>device</I>
|
|
|
|
[<I>size-in-blocks</I>]
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>mkfs.minix</B>
|
|
|
|
creates a Linux MINIX filesystem on a device (usually a disk partition).
|
|
<P>
|
|
The
|
|
<I>device</I>
|
|
|
|
is usually of the following form:
|
|
<P>
|
|
<PRE>
|
|
<DL COMPACT><DT id="1"><DD>/dev/hda[1-8] (IDE disk 1)
|
|
/dev/hdb[1-8] (IDE disk 2)
|
|
/dev/sda[1-8] (SCSI disk 1)
|
|
/dev/sdb[1-8] (SCSI disk 2)
|
|
</DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
The device may be a block device or an image file of one, but this is not
|
|
enforced. Expect not much fun on a character device :-).
|
|
<P>
|
|
|
|
The
|
|
<I>size-in-blocks</I>
|
|
|
|
parameter is the desired size of the file system, in blocks.
|
|
It is present only for backwards compatibility.
|
|
If omitted the size will be determined automatically.
|
|
Only block counts strictly greater than 10 and strictly less than
|
|
65536 are allowed.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="2"><B>-c</B>, <B>--check</B><DD>
|
|
Check the device for bad blocks before creating the filesystem. If any
|
|
are found, the count is printed.
|
|
<DT id="3"><B>-n</B>, <B>--namelength</B> <I>length</I><DD>
|
|
Specify the maximum length of filenames. Currently, the only allowable
|
|
values are 14 and 30 for file system versions 1 and 2. Version 3 allows
|
|
only value 60. The default is 30.
|
|
<DT id="4"><B>-i</B>, <B>--inodes</B> <I>number</I><DD>
|
|
Specify the number of inodes for the filesystem.
|
|
<DT id="5"><B>-l</B>, <B>--badblocks</B> <I>filename</I><DD>
|
|
Read the list of bad blocks from
|
|
<I>filename</I>.
|
|
|
|
The file has one bad-block number per line. The count of bad blocks read
|
|
is printed.
|
|
<DT id="6"><B>-1</B>
|
|
|
|
<DD>
|
|
Make a Minix version 1 filesystem. This is the default.
|
|
<DT id="7"><B>-2</B>,<B> -v</B>
|
|
|
|
<DD>
|
|
Make a Minix version 2 filesystem.
|
|
<DT id="8"><B>-3</B>
|
|
|
|
<DD>
|
|
Make a Minix version 3 filesystem.
|
|
<DT id="9"><B>-V</B>, <B>--version</B><DD>
|
|
Display version information and exit. The long option cannot be combined
|
|
with other options.
|
|
<DT id="10"><B>-h</B>, <B>--help</B><DD>
|
|
Display help text and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXIT CODES</H2>
|
|
|
|
The exit code returned by
|
|
<B>mkfs.minix</B>
|
|
|
|
is one of the following:
|
|
<DL COMPACT>
|
|
<DT id="11">0<DD>
|
|
No errors
|
|
<DT id="12">8<DD>
|
|
Operational error
|
|
<DT id="13">16<DD>
|
|
Usage or syntax error
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+fsck">fsck</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mkfs">mkfs</A></B>(8),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+reboot">reboot</A></B>(8)
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AVAILABILITY</H2>
|
|
|
|
The mkfs.minix 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="14"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="15"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="16"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="17"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="18"><A HREF="#lbAF">EXIT CODES</A><DD>
|
|
<DT id="19"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
<DT id="20"><A HREF="#lbAH">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>
|