How to completely erase hard drive? [duplicate]

Solution 1:

The tool named wipe deletes data permanently on HDD. To install it using terminal

sudo apt-get install wipe

To wipe out all data within a whole HDD type in terminal.

sudo wipe /dev/sdaX

where X is your partition.

Solution 2:

Would this be something you'd be looking for?

sudo -i
shred -f -n 5 -z [Location of drive]

If you want to make shred do more distortion-application, then bring up shred's help:

shred --help

or

man shred