Section: Maintenance Commands (8)
Updated: January 2006
mkntfs [options] device [number-of-sectors]
mkntfs [ -C ] [ -c cluster-size ] [ -F ] [ -f ] [ -H heads ] [ -h ] [ -I ] [ -L volume-label ] [ -l ] [ -n ] [ -p part-start-sect ] [ -Q ] [ -q ] [ -S sectors-per-track ] [ -s sector-size ] [ -T ] [ -U ] [ -V ] [ -v ] [ -z mft-zone-multiplier ] [ --debug ] device [ number-of-sectors ]
mkntfs is used to create an NTFS file system on a device (usually a disk partition) or file. device is the special file corresponding to the device (e.g /dev/hdXX). number-of-sectors is the number of sectors on the device. If omitted, mkntfs automagically figures the file system size.
Below is a summary of all the options that mkntfs accepts. Nearly all options have two equivalent names. The short name is preceded by and the long name is preceded by -. Any single letter options, that don't take an argument, can be combined into a single command, e.g. -fv is equivalent to -f -v. Long named options can be abbreviated to any unique prefix of their name.
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).
<TABLE BORDER> <TR> <TD> <TABLE> <TR VALIGN="top| <TD CLASS="c1|MFT zone</TD> <TD>MFT zone size
</TD> </TR> <TR VALIGN="top| <TD CLASS="c1|multiplier</TD> <TD>(% of volume size)
</TD> </TR> <TR VALIGN="top| <TD ALIGN="center|1</TD> <TD>12.5% (default)
</TD> </TR> <TR VALIGN="top| <TD ALIGN="center|2</TD> <TD>25.0%
</TD> </TR> <TR VALIGN="top| <TD ALIGN="center|3</TD> <TD>37.5%
</TD> </TR> <TR VALIGN="top| <TD ALIGN="center|4</TD> <TD>50.0%
</TD> </TR> </TABLE> </TD> </TR> </TABLE> :
When applying chkdsk to a file system, it sometimes throws a warning "Correcting errors in the uppercase file." 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.
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.
If you find a bug please send an email describing the problem to the development team:
mkntfs is part of the ntfs-3g package and is available from:
Tutoriais de Tecnologia Web