← 返回命令列表

Linux command

mkfs.ntfs 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Example

sudo mkfs.ntfs [/dev/sdXY]

Example

sudo mkfs.ntfs -L [volume_label] [/dev/sdXY]

Example

sudo mkfs.ntfs -U [/dev/sdXY]

Example

sudo mkfs.ntfs -f [/dev/sdXY]

Example

sudo mkfs.ntfs -C [/dev/sdXY]

Example

sudo mkfs.ntfs -c [4096] [/dev/sdXY]

Simulate

sudo mkfs.ntfs -n [/dev/sdXY]

说明

mkfs.ntfs (also known as mkntfs) creates an NTFS filesystem on a device or file. NTFS is the primary filesystem used by Windows NT and later versions, supporting features like file permissions, compression, encryption, and large volumes. The utility automatically determines filesystem size if sector count is omitted. It creates the Master File Table (MFT), system files, and directory structures required by NTFS. The tool is part of the ntfs-3g package.

参数

-f, -Q, --fast, --quick
Perform quick format; skips zeroing volume and bad sector checking
-L, --label _string_
Set volume label for the filesystem
-C, --enable-compression
Enable filesystem-level compression
-U, --with-uuid
Generate random volume UUID
-c, --cluster-size _bytes_
Set cluster size from 256 to 2,097,152 bytes; default is 4096
-s, --sector-size _bytes_
Set sector size: 256, 512, 1024, 2048, or 4096 bytes
-p, --partition-start _sector_
Specify partition start sector
-H, --heads _num_
Number of heads; required for Windows boot capability
-S, --sectors-per-track _num_
Sectors per track; required for Windows boot capability
-z, --mft-zone-multiplier _num_
MFT zone size multiplier (1-4); affects fragmentation behavior
-I, --no-indexing
Disable content indexing on the volume
-n, --no-action
Simulate formatting without writing changes
-q, --quiet
Suppress non-error output
-v, --verbose
Enable verbose output

FAQ

What is the mkfs.ntfs command used for?

mkfs.ntfs (also known as mkntfs) creates an NTFS filesystem on a device or file. NTFS is the primary filesystem used by Windows NT and later versions, supporting features like file permissions, compression, encryption, and large volumes. The utility automatically determines filesystem size if sector count is omitted. It creates the Master File Table (MFT), system files, and directory structures required by NTFS. The tool is part of the ntfs-3g package.

How do I run a basic mkfs.ntfs example?

Run `sudo mkfs.ntfs [/dev/sdXY]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, -Q, --fast, --quick do in mkfs.ntfs?

Perform quick format; skips zeroing volume and bad sector checking