Linux "ntfswipe" Command Line Options and Examples
overwrite unused space on an NTFS volume

ntfswipe clears all or part of unused space on an NTFS volume by overwriting with zeroes or random bytes..


Usage:

ntfswipe [options] device






Command Line Options:

-a
Wipe all unused space. This may take significant time. If the option --unused-fast (or -U) is alsopresent, the faster wiping method is used.
ntfswipe -a ...
-b
Define the allowed replacement bytes which are drawn randomly to overwrite the unused space. BYTE-LISTis a comma-separated list of values in range 0-255 expressed in octal, decimal or hexadecimal base.
ntfswipe -b ...
-c
Define the number of times the unused space is to be overwritten. If both options --bytes and --countare set, the space is repeatedly overwritten this number of times by each of the values in the list.
ntfswipe -c ...
-d
Wipe all the directory indexes, which may contain names of deleted files.
ntfswipe -d ...
-f
This will override some sensible defaults, such as not using a mounted volume. Use this option withcaution.
ntfswipe -f ...
-h
Show a list of options with a brief description of each one.
ntfswipe -h ...
-i
Display details about unused space, without wiping anything.
ntfswipe -i ...
-l
Overwrite the logfile (update journal).
ntfswipe -l ...
-m
Overwrite the unused space in the MFT (main file table, which contains the file names, and the contentsof short files).
ntfswipe -m ...
-n
Executes the wiping process without writing to device.
ntfswipe -n ...
-p
Overwrite the Windows swap space.
ntfswipe -p ...
-q
Suppress some debug/warning/error messages.
ntfswipe -q ...
-s
Overwrite the space which had been allocated to a file which has been deleted recently and is stillundeletable. This option is not compatible with --bytes and the replacement bytes are random ones ortaken from a standard list.
ntfswipe -s ...
-t
Overwrite the space at the end of files which is unused, but allocated because the allocations arealways done by full clusters.
ntfswipe -t ...
-u
Overwrite the space which is currently not allocated to any file (but may have been used in the past).
ntfswipe -u ...
-U
Overwrite the space which is currently not allocated to any file, trying not to overwrite the space notwritten to since the previous wiping.
ntfswipe -U ...
-v
Display more debug/warning/error messages. This option may be used twice to display even more messages.
ntfswipe -v ...
-V
Show the version number, copyright and license of ntfswipe.EXAMPLESWipe out all unused space in an NTFS volume.ntfswipe -a /dev/sda1Wipe out all deleted file names from an NTFS volume.ntfswipe -dms /dev/sda1BUGSThere are no known problems with ntfswipe. If you find a bug please send an email describing the problem tothe development team:ntfs-3g-devel@lists.sf.netAUTHORSntfswipe was written by Richard Russon, Anton Altaparmakov and Yura Pakhuchiy. It was ported to ntfs-3g byErik Larsson.AVAILABILITYntfswipe is part of the ntfs-3g package and is available from:http://www.tuxera.com/community/
ntfswipe -V ...