Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

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.

2 Answers 2

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

share|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

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
share|improve this answer
    
thanks, will try that later! –  user53118 Oct 21 '10 at 21:13

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