1

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.

user53118
  • 111

2 Answers2

1

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

LawrenceC
  • 75,182
0

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
dns13
  • 1,155