mkfs.ntfs - mkntfs - create an NTFS file system - NTFS file system creation

mkfs.ntfs - mkntfs - the Create AN NTFS File System - NTFS file system creation

Documentation
https://docs.oracle.com/en/

Oracle Solaris 11.2 Information Library (Simplified Chinese)
https://docs.oracle.com/cd/E56344_01/

Man pages section 1M: System Administration Commands
https://docs.oracle.com/cd/E56344_01/html/E54077/index.html

mkntfsIS Used to Create AN the NTFS File System ON A Device (usually A Disk Partition) or File. deviceIS The Special File the Corresponding to The Device (EG /dev/hdXX). number-of-sectorsIS The Number of sectors ON The Device. the If Omitted, mkntfsautomagically Figures The File System size .
mkntfsutility is used on a device (usually a disk partition or files) to create NTFS file system. deviceSpecial file corresponding to the device, for example /dev/hdXX. number-of-sectorsIs the number of blocks on the device. If omitted, mkntfsthe system automatically calculates the size of the file.

All Options have have TWO equivalent in a Nearly names. At The Short name preceded by IS -and IS at The Long name preceded by --. The Any SINGLE Letter Options, the Take that do not AN argument, CAN BE INTO A SINGLE the Command Combined, EG -fvIS equivalent to -f -v. Long named options can be abbreviated to any unique prefix of their name.
most options have a single letter and the full name of the two forms. Single-letter option does not accept a plurality of parameters may be grouped together. For example, -fvequivalent -f -v. Full name option can be abbreviated to their unique prefix name.

1. Basic options - Basic Options

-f, --fast, -Q, --quick
Perform quick (fast) format. This will skip both zeroing of the volume and bad sector checking.
Quick format. This option skips the volume of zeroing and check for bad sectors.

-L, --label STRING
Set the volume label for the filesystem.
The volume label of the file system is set to string.

-C, --enable-compression
Enable compression. On the volume
compression is enabled on the volume.

-n, --no-action
Causes mkntfs 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.
So mkntfsdo not actually create the file system, but display it creates work will be performed when a file system. Will perform all formatting steps, but do not actually written to disk.

2. Advanced options - Advanced Options

-U, --with-uuid
Generate a random volume UUID.

3. Output options - Output options

-q, --quiet
Execution Quiet; only errors are written to stderr, to the Output NO stdout. Occurs Useful IF AT All mkntfs. IS A RUN in Script
error will be written to stderr, not to stdoutwrite any output. If you run the script mkntfs, this option is useful.

-v, --verbose
Verbose execution.
Execution in verbose mode.

--debug
Verbose Execution for Really; Includes at The verbose at The the Output from -vthe Option Additional AS Well AS the Output Useful for the debugging mkntfs.
Including those from -vthe detailed output options for debugging and mkntfsother useful output.

4. Help options - help options

-V, --version
Print the version number of mkntfs and exit .
Display mkntfsversion number and exit.

-l, --license
Print the licensing information of mkntfs and exit .
Display mkntfslicense information and exit.

-h, --help
Of with a brief description of each one . Options Show a list
display a brief description of each option and a list of options.

volume ['vɒljuːm]:n. 体积,量,卷,容积

5. sudo mkntfs -f /dev/sdc2

strong@foreverstrong:~$ sudo mkntfs -f /dev/sdc2
[sudo] password for strong: 
The partition start sector was not specified for /dev/sdc2 and the automatically determined value is too large (5859375104). It has been set to 0.
Cluster size has been automatically set to 4096 bytes.
To boot from a device, Windows needs the 'partition start sector', the 'sectors per track' and the 'number of heads' to be set.
Windows will not be able to boot from this device.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
strong@foreverstrong:~$ 
strong@foreverstrong:~$ sudo mkntfs -f /dev/sdc3
The partition start sector was not specified for /dev/sdc3 and the automatically determined value is too large (11718750208). It has been set to 0.
Cluster size has been automatically set to 4096 bytes.
To boot from a device, Windows needs the 'partition start sector', the 'sectors per track' and the 'number of heads' to be set.
Windows will not be able to boot from this device.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
strong@foreverstrong:~$ 
strong@foreverstrong:~$ sudo mkntfs -f /dev/sdc4
The partition start sector was not specified for /dev/sdc4 and the automatically determined value is too large (17578125312). It has been set to 0.
Cluster size has been automatically set to 4096 bytes.
To boot from a device, Windows needs the 'partition start sector', the 'sectors per track' and the 'number of heads' to be set.
Windows will not be able to boot from this device.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
strong@foreverstrong:~$

Quick format - -fparameters

sudo mkntfs -f /dev/sdc1
sudo mkntfs -f /dev/sdc2
sudo mkntfs -f /dev/sdc3
sudo mkntfs -f /dev/sdc4

References

http://manpages.ubuntu.com/manpages/xenial/en/man8/mkntfs.8.html
http://manpages.ubuntu.com/manpages/bionic/en/man8/mkntfs.8.html
https://docs.oracle.com/cd/E56344_01/html/E54077/mkntfs-1m.html

发布了505 篇原创文章 · 获赞 1805 · 访问量 107万+

Guess you like

Origin blog.csdn.net/chengyq116/article/details/104709426