man-pages/man8/mkntfs.8.html
2021-03-31 01:06:50 +01:00

405 lines
9.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of MKNTFS</TITLE>
</HEAD><BODY>
<H1>MKNTFS</H1>
Section: Maintenance Commands (8)<BR>Updated: January 2006<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
mkntfs - create an NTFS file system
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>mkntfs</B>
[<I>options</I>] <I>device </I>[<I>number-of-sectors</I>]
<P>
<B>mkntfs</B>
[
<B>-C</B>
]
[
<B>-c</B>
<I>cluster-size</I>
]
[
<B>-F</B>
]
[
<B>-f</B>
]
[
<B>-H</B>
<I>heads</I>
]
[
<B>-h</B>
]
[
<B>-I</B>
]
[
<B>-L</B>
<I>volume-label</I>
]
[
<B>-l</B>
]
[
<B>-n</B>
]
[
<B>-p</B>
<I>part-start-sect</I>
]
[
<B>-Q</B>
]
[
<B>-q</B>
]
[
<B>-S</B>
<I>sectors-per-track</I>
]
[
<B>-s</B>
<I>sector-size</I>
]
[
<B>-T</B>
]
[
<B>-U</B>
]
[
<B>-V</B>
]
[
<B>-v</B>
]
[
<B>-z</B>
<I>mft-zone-multiplier</I>
]
[
<B>--debug</B>
]
<I>device</I>
[
<I>number-of-sectors</I>
]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>mkntfs</B>
is used to create an NTFS file system on a device (usually a disk partition)
or file.
<I>device</I>
is the special file corresponding to the device (e.g
<I>/dev/hdXX</I>).
<I>number-of-sectors</I>
is the number of sectors on the device. If omitted,
<B>mkntfs</B>
automagically figures the file system size.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
Below is a summary of all the options that
<B>mkntfs</B>
accepts. Nearly all options have two equivalent names. The short name is
preceded by
<B>-</B>
and the long name is preceded by
<B>--</B>.
Any single letter options, that don't take an argument, can be combined into a
single command, e.g.
<B>-fv</B>
is equivalent to
<B>-f -v</B>.
Long named options can be abbreviated to any unique prefix of their name.
<A NAME="lbAF">&nbsp;</A>
<H3>Basic options</H3>
<DL COMPACT>
<DT id="1"><B>-f</B>, <B>--fast</B>, <B>-Q</B>, <B>--quick</B><DD>
Perform quick (fast) format. This will skip both zeroing of the volume and bad
sector checking.
<DT id="2"><B>-L</B>, <B>--label</B> STRING<DD>
Set the volume label for the filesystem.
<DT id="3"><B>-C</B>, <B>--enable-compression</B><DD>
Enable compression on the volume.
<DT id="4"><B>-n</B>, <B>--no-action</B><DD>
Causes
<B>mkntfs</B>
to not actually create a filesystem, but display what it would do if it were
to create a filesystem. All steps of the format are carried out except the
actual writing to the device.
</DL>
<A NAME="lbAG">&nbsp;</A>
<H3>Advanced options</H3>
<DL COMPACT>
<DT id="5"><B>-c</B>, <B>--cluster-size</B> BYTES<DD>
Specify the size of clusters in bytes. Valid cluster size values are powers of
two, with at least 256, and at most 2097152 bytes (2MB) per cluster. If omitted,
<B>mkntfs</B>
uses 4096 bytes as the default cluster size.
<P>
Note that the default cluster size is set to be at least equal to the sector
size as a cluster cannot be smaller than a sector. Also, note that values
greater than 4096 have the side effect that compression is disabled on the
volume (due to limitations in the NTFS compression algorithm currently in use
by Windows).
<DT id="6"><B>-s</B>, <B>--sector-size</B> BYTES<DD>
Specify the size of sectors in bytes. Valid sector size values are 256, 512,
1024, 2048 and 4096 bytes per sector. If omitted,
<B>mkntfs</B>
attempts to determine the
<I>sector-size</I>
automatically and if that fails a default of 512 bytes per sector is used.
<DT id="7"><B>-p</B>, <B>--partition-start</B> SECTOR<DD>
Specify the partition start sector. The maximum is 4294967295 (2^32-1). If
omitted,
<B>mkntfs</B>
attempts to determine
<I>part-start-sect</I>
automatically and if that fails or the value is oversized, a
default of 0 is used. The partition is usable despite a wrong value,
however note that a correct
<I>part-start-sect</I>
is required for Windows to be able to boot from the created volume.
<DT id="8"><B>-H</B>, <B>--heads</B> NUM<DD>
Specify the number of heads. The maximum is 65535 (0xffff). If omitted,
<B>mkntfs</B>
attempts to determine the number of
<I>heads</I>
automatically and if that fails a default of 0 is used. Note that
<I>heads</I>
is required for Windows to be able to boot from the created volume.
<DT id="9"><B>-S</B>, <B>--sectors-per-track</B> NUM<DD>
Specify the number of sectors per track. The maximum is 65535 (0xffff). If
omitted,
<B>mkntfs</B>
attempts to determine the number of
<I>sectors-per-track</I>
automatically and if that fails a default of 0 is used. Note that
<I>sectors-per-track</I>
is required for Windows to be able to boot from the created volume.
<DT id="10"><B>-z</B>, <B>--mft-zone-multiplier</B> NUM<DD>
Set the MFT zone multiplier, which determines the size of the MFT zone to use
on the volume. The MFT zone is the area at the beginning of the volume reserved
for the master file table (MFT), which stores the on disk inodes (MFT records).
It is noteworthy that small files are stored entirely within the inode;
thus, if you expect to use the volume for storing large numbers of very small
files, it is useful to set the zone multiplier to a higher value. Note, that
the MFT zone is resized on the fly as required during operation of the NTFS
driver but choosing a good value will reduce fragmentation. Valid values
are 1, 2, 3 and 4. The values have the following meaning:
<TABLE BORDER><TR><TD><TABLE>
<TR VALIGN=top><TD><B>MFT zone</B></TD><TD><B>MFT zone size</B><BR></TD></TR>
<TR VALIGN=top><TD><B>multiplier</B></TD><TD><B>(% of volume size)</B><BR></TD></TR>
<TR VALIGN=top><TD ALIGN=center>1</TD><TD>12.5% (default)<BR></TD></TR>
<TR VALIGN=top><TD ALIGN=center>2</TD><TD>25.0%<BR></TD></TR>
<TR VALIGN=top><TD ALIGN=center>3</TD><TD>37.5%<BR></TD></TR>
<TR VALIGN=top><TD ALIGN=center>4</TD><TD>50.0%<BR></TD></TR>
</TABLE></TABLE>
<P>
<DT id="11"><B>-T</B>, <B>--zero-time</B><DD>
Fake the time to be 00:00:00 UTC, Jan 1, 1970 instead of the current system
time. This is only really useful for debugging purposes.
<DT id="12"><B>-U</B>, <B>--with-uuid</B><DD>
Generate a random volume UUID.
<DT id="13"><B>-I</B>, <B>--no-indexing</B><DD>
Disable content indexing on the volume. (This is only meaningful on
Windows 2000 and later. Windows NT 4.0 and earlier ignore this as they do
not implement content indexing at all.)
<DT id="14"><B>-F</B>, <B>--force</B><DD>
Force
<B>mkntfs</B>
to run, even if the specified
<I>device</I>
is not a block special device, or appears to be mounted.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H3>Output options</H3>
<DL COMPACT>
<DT id="15"><B>-q</B>, <B>--quiet</B><DD>
Quiet execution; only errors are written to stderr, no output to stdout
occurs at all. Useful if
<B>mkntfs</B>
is run in a script.
<DT id="16"><B>-v</B>, <B>--verbose</B><DD>
Verbose execution.
<DT id="17"><B>--debug</B><DD>
Really verbose execution; includes the verbose output from the
<B>-v</B>
option as well as additional output useful for debugging
<B>mkntfs.</B>
</DL>
<A NAME="lbAI">&nbsp;</A>
<H3>Help options</H3>
<DL COMPACT>
<DT id="18"><B>-V</B>, <B>--version</B><DD>
Print the version number of
<B>mkntfs</B>
and exit.
<DT id="19"><B>-l</B>, <B>--license</B><DD>
Print the licensing information of
<B>mkntfs</B>
and exit.
<DT id="20"><B>-h</B>, <B>--help</B><DD>
Show a list of options with a brief description of each one.
</DL>
<A NAME="lbAJ">&nbsp;</A>
<H2>KNOWN ISSUES</H2>
When applying chkdsk to a file system, it sometimes throws a warning
&quot;Correcting errors in the uppercase file.&quot; The uppercase file is created
while formatting and it defines the mapping of lower case characters to
upper case ones, as needed to sort file names in directories. The warning
means that the uppercase file defined on the file system is not the same as
the one used by the Windows OS on which chkdsk is running, and this may
happen because newer versions of Windows take into account new characters
defined by the Unicode consortium.
<P>
Currently, mkntfs creates the uppercase table so that no warning is thrown
by Windows Vista, Windows 7 or Windows 8. A warning may be thrown by
other Windows versions, or if chkdsk is applied in succession on different
Windows versions.
<A NAME="lbAK">&nbsp;</A>
<H2>BUGS</H2>
If you find a bug please send an email describing the problem to the
development team:
<BR>
<A HREF="mailto:ntfs-3g-devel@lists.sf.net">ntfs-3g-devel@lists.sf.net</A>
<A NAME="lbAL">&nbsp;</A>
<H2>AUTHORS</H2>
<B>mkntfs</B>
was written by Anton Altaparmakov, Richard Russon, Erik Sornes and Szabolcs Szakacsits.
It was ported to ntfs-3g by Erik Larsson and Jean-Pierre Andre.
<A NAME="lbAM">&nbsp;</A>
<H2>AVAILABILITY</H2>
<B>mkntfs</B>
is part of the
<B>ntfs-3g</B>
package and is available from:
<BR>
<A HREF="http://www.tuxera.com/community/">http://www.tuxera.com/community/</A>
<A NAME="lbAN">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?8+badblocks">badblocks</A></B>(8),
<B><A HREF="/cgi-bin/man/man2html?8+ntfsprogs">ntfsprogs</A></B>(8)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="21"><A HREF="#lbAB">NAME</A><DD>
<DT id="22"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="23"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="24"><A HREF="#lbAE">OPTIONS</A><DD>
<DL>
<DT id="25"><A HREF="#lbAF">Basic options</A><DD>
<DT id="26"><A HREF="#lbAG">Advanced options</A><DD>
<DT id="27"><A HREF="#lbAH">Output options</A><DD>
<DT id="28"><A HREF="#lbAI">Help options</A><DD>
</DL>
<DT id="29"><A HREF="#lbAJ">KNOWN ISSUES</A><DD>
<DT id="30"><A HREF="#lbAK">BUGS</A><DD>
<DT id="31"><A HREF="#lbAL">AUTHORS</A><DD>
<DT id="32"><A HREF="#lbAM">AVAILABILITY</A><DD>
<DT id="33"><A HREF="#lbAN">SEE ALSO</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>