Wipeout: Erase HD Data Securely with Linux


I wrote the way to erase data in hard disk with Linux commands.

To completely erase hard disk data, we can use not only DESTROY or わいぷたん, but also Live CD Linux.

Using Live CD Linux, erase data with command. In advance, I tried erasing data with Lubuntu of 1 CD. It is really convenience that we can erase data with only 1 CD Lunux.

Wipe out with dd

With dd, we can erase data of a device.

Fill the Disk with Zero Data

if, of is required.

status is recommended. It can indicates to show the progress. If you don’t added status, you should wait on silent screen until the command execution is finished.

The output will be like the following.

And, iflag, oflag may make the command fast.

Fill the Disk with Random Data

Assign if /dev/urandom.

The output will be like below.

Wipe out with shred

I don’t strongly recommend, but we can erase data with shred.

The above command writes random values into the hard disk. -v indicates to show the progress.

次のような出力になります。 一部省略していますが、 -v をつけると進捗状況が順次新しい行として表示されていきます。

The Reason Why I Don’t Recommend

However, even shredding devices is not always completely reliable. For example, most disks map out bad sectors invisibly to the application; if the bad sectors contain sensitive data, shred won’t be able to destroy it.

Yes, if sensitive data exists in bad sector, shred don’t erase it.