Preventing recovery of deleted files


Recommended Posts

Some of my disks had some sensitive documents with personal info on them. The disks were not and are not encrypted. I deleted the files some time back. I'd like to assure they aren't recoverable in the case of theft, drive sales, etc. All the disks in my array are hard drives. From reading around, what I should have done was used shred to overwrite them instead of just deleting them, but I wasn't thinking that far ahead.

 

So I was thinking that filling the empty space on the disk with zeros would accomplish the same task, albeit not very efficiently.

Would something like this work? Or will unraid interfere with this in some way I'm missing?

 

dd if=/dev/zero of="/mnt/disk1/filler" bs=10485760
dd if=/dev/zero of="/mnt/disk1/filler1" bs=1
rm /mnt/disk1/filler
rm /mnt/disk1/filler1

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.