Possible Duplicates:
Hard drive wiping?
Erasing data before selling a computer

I'm going to be selling a few old hard drives and was wondering what is the correct way to wipe these hard drives clean so that no information could be recovered from them..

I'm using Ubuntu Linux 10.

link|improve this question
feedback

closed as exact duplicate by Sathya, Doug Harris, random Oct 22 '10 at 0:10

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

2 Answers

Download a Darik's Boot and Nuke .iso; it's exactly what you are looking for.

link|improve this answer
Thanks for the suggestion.. link doesn't seem to work though! I will try again later – user53118 Oct 21 '10 at 21:07
the link is working greatly for me – schöppi Oct 21 '10 at 21:11
feedback

Copy a stream from /dev/zero or /dev/random to your harddrive using dd.

dd if=/dev/zero of=/dev/hda bs=1M

Where if is the stream you copy from, and of your harddrive you want to wipe off.

hda is primary master, hdb primary slave, hdc secondary master, sda is the first SCSI drive etc...

bs is the block size used.

To check that it really worked use:

dd if=/dev/sda | hexdump -C | head
link|improve this answer
thanks, will try that later! – user53118 Oct 21 '10 at 21:13
feedback

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