Securely remove files from an NTFS drive?
I have an external NTFS drive, and I want to securely remove some files from it. SRM is no longer available in Sierra. I tried to install SRM with Homebrew, and did install it successfully, but when I apply the command to an external drive I get an error: "Segmentation fault: 11" What can I do?
I do not use software like Paragon NTFS to enable write on the drive. Instead I do this in Terminal:
sudo nano /etc/fstab
Add the following line to nano, replacing “NAME” with the label of your NTFS drive:
LABEL=NAME none ntfs rw,auto,nobrowse
Ctrl+O then the Enter key, then Ctrl+X to close nano.
Solution 1:
Use gshred. Install homebrew if not installed from www.brew.sh. Then do
brew install coreutils
to remove files, do
gshred -u <file1> <file2>
Solution 2:
You can use rm
with the -P
option which will overwrite the file prior to deleting it.
From the man page:
Overwrite regular files before deleting them. Files are overwritten three times, first with the byte pattern 0xff, then 0x00, and then 0xff again, before they are deleted
It's not a DoD 7 pass wipe, but fairly secure nonetheless. So, your command would be:
rm -P /path/to/foo.bar
And it will do a triple overwrite before removal.