May 282012

If you have a Linux box ready (or live cd) and you want to erase the data on your harddrive before you sell it on Ebay, you may want to run:

shred -v -n 1 /dev/sdX

where X is your drive. You can set the iterations to a higher number than 1, but as my drive was encrypted anyway, I thought 1 is enough.