You are here: Home » Linux » How to properly wipe a hard drive prior to resale?

How to properly wipe a hard drive prior to resale?

0 votes

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

Hello,

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.

Thanks for the help!

1 votes

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

Answered by ultrasawblade on October 21, 2010.

Thanks for the suggestion.. link doesn't seem to work though! I will try again later - on October 21, 2010

the link is working greatly for me - schöppi on October 21, 2010

0 votes

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

Answered by schöppi on October 21, 2010. Last Edited on October 21, 2010.

thanks, will try that later! - on October 21, 2010

Content from Superuser of Stack Exchange. Original article at Superuser.


Related Tags

Linux 5376
Hard Drive 1115
Security 713