Go to main content

man pages section 8: System Administration Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

ntfscmp(8)

Name

ntfscmp - compare two NTFS file systems and report the differences

Synopsis

ntfscmp [options] device1 device2

Description

The ntfscmp utility compares all aspects of two NTFS file systems and reports all differences it finds. The file systems can be on block devices or in image files. ntfscmp can be used for volume verification. However, its primary purpose is to be an efficient development tool, used to quickly locate, identify, and check the correctness of the metadata changes made to NTFS.

If one is interested only in the NTFS metadata changes, it can be useful to compare the metadata images created by using the –-metadata option of ntfsclone(8) to eliminate the usually uninteresting timestamp changes.

The terse output of ntfscmp is intentional, because the provided information is sufficient to determine exact differences. More copious output can be obtained by using diff(1) to compare the verbose output of ntfsinfo(8) for each reported inode.

Options

Supported options are listed below. Options have both single-letter and full-name forms.

–h, –-help

Display help and exit.

–P, –-no-progress-bar

Do not show progress bars.

–v, –-verbose

Display more debug, warning, and error messages.

Exit Status

The exit code is 0 on success, non-zero otherwise.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/file-system/ntfsprogs
Interface Stability
Uncommitted

See Also

diff(1), attributes(7), ntfscat(8), ntfsclone(8), ntfsinfo(8), ntfsprogs(8), parted(8)

Authors

ntfscmp was written by Szabolcs Szakacsits.