Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How can I securely erase a USB hard drive?
How to delete file(s) in secure manner?

I am looking for software/script/whatever that can completely destroy data on hard drive. By destroy I mean beyond recovery(even with special software). Is there any way to do this? Thanks.

share|improve this question

marked as duplicate by belacqua, Takkat, jokerdino, hhlp, Jorge Castro Oct 27 '12 at 15:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

See the accepted answer to this question:… – user68186 Oct 26 '12 at 15:12

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.

share|improve this answer
Do I have to use wipe from live-cd to format my main hard-drive where my OS is installed? – zuberuber Oct 26 '12 at 15:19
How do I figure out my Partition? – jack Oct 9 '14 at 4:07

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


man shred
share|improve this answer
Do I have to use shred from live-cd to format my main hard-drive where my OS is installed? – zuberuber Oct 26 '12 at 15:23
That would be best, since if you're running off a dual-boot, you would shred the "disk" file that Ubuntu is running from. – Omio Oct 26 '12 at 15:26

DBAN is commonly used for that purpose, it is an iso image which you burn to a CD (or other media), boot, and write random data over the disk multiple times (depending on settings).

Somewhat similar to something like

dd if=/dev/urandom of=#disk path#

Though I presume DBAN might have more options and a nicer interface

share|improve this answer
dd if=/dev/zero of=/dev/DRIVEDEVICE is faster. – Noah Spurrier Apr 4 '15 at 1:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.