🌑

Linhost.info

Securely Erase A Drive With Shred

The reason why tools like Shred exist is because we don’t like the tough of our files ending in the hands of the wrong people and if it’s within our reach to prevent such an occurrence then why not take the steps. Shred accomplishes its goal by repeatedly overwriting the target with specific data patterns in order to make recovery of the data contained within the drive impossible. As long as the system can see the drive Shred should have no problem erasing the contents. Keep in mind that erasing a drive will take a considerable amount of time. The simple version of shred would be.

shred /dev/sda2

This would erase the second partition in /sda using default options. But we are geeks and the defaults just wont do, if you like you can opt to use different parameters as explained below.

shred -fzv /dev/sdb

f = If necessary override file permission and overwrite z = final overwrite with zeros to hide shredding process, you don’t want the drive to stand out v = Display operation progress By default Shred will overwrite the target three times if you think the default is too much or too little you can change the default by adding the -n # parameter to change the overwrite amount.

shred -fzv -n 1 /dev/sdb

Shred will not save you from the XKCD five dollar wrench recovery method. XKCD Five Dollar Wrench

, , — Mar 12, 2012