Linux command
ntfsclone 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Clone NTFS partition to an image file
ntfsclone --output [clone.img] [/dev/sda1]
Save as space-efficient special image format
ntfsclone --save-image --output [clone.img] [/dev/sda1]
Restore from special image to a partition
ntfsclone --restore-image --output [/dev/sda1] [clone.img]
Clone metadata only (for debugging)
ntfsclone --metadata --output [meta.img] [/dev/sda1]
Clone to stdout and compress with gzip
ntfsclone --save-image -o - [/dev/sda1] | gzip -c > [clone.img.gz]
Rescue a failing disk (continue on read errors)
ntfsclone --rescue --output [rescue.img] [/dev/sda1]
说明
ntfsclone efficiently clones an NTFS filesystem to a sparse file, special image, device, or standard output. It works at the cluster level and only copies used data, making it much faster and more space-efficient than sector-level tools like dd. The special image format (--save-image) encodes unused space with control codes rather than storing it, producing significantly smaller backup files. These images can only be restored with ntfsclone --restore-image and are not directly mountable. The --rescue mode is designed for dying disks, reading data with minimal stress on the hardware and filling unreadable sectors with zeros.
参数
- -o, --output _FILE_
- Output file or device. Use - for standard output.
- -O, --overwrite _FILE_
- Overwrite an existing file or device (required for writing to partitions).
- -s, --save-image
- Save to the special ntfsclone image format (only copies used clusters).
- -r, --restore-image
- Restore from a special ntfsclone image.
- -m, --metadata
- Clone only NTFS metadata (for debugging; result is still mountable).
- --rescue
- Continue on disk read errors, filling bad sectors with zeros.
- --ignore-fs-check
- Ignore the result of the filesystem consistency check.
- -f, --force
- Force cloning even if the volume is marked dirty.
- --help
- Display help information.
FAQ
What is the ntfsclone command used for?
ntfsclone efficiently clones an NTFS filesystem to a sparse file, special image, device, or standard output. It works at the cluster level and only copies used data, making it much faster and more space-efficient than sector-level tools like dd. The special image format (--save-image) encodes unused space with control codes rather than storing it, producing significantly smaller backup files. These images can only be restored with ntfsclone --restore-image and are not directly mountable. The --rescue mode is designed for dying disks, reading data with minimal stress on the hardware and filling unreadable sectors with zeros.
How do I run a basic ntfsclone example?
Run `ntfsclone --output [clone.img] [/dev/sda1]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o, --output _FILE_ do in ntfsclone?
Output file or device. Use - for standard output.