LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   erase hard drive (http://www.linuxquestions.org/questions/linux-newbie-8/erase-hard-drive-809839/)

invader44 05-24-2010 02:20 PM

erase hard drive
 
Hello,

I am looking to erase some hard drives. Would the best tool to use be cfdisk or is there something else out there? I have 300 hard drives to erase.
Thanks in advance,

Vadder

catkin 05-24-2010 02:22 PM

What do you want to achieve by erasing them? Do you have to comply with specific standards such as are published by the military for example? cfdisk is a very weak option.

AlucardZero 05-24-2010 02:23 PM

Depending on how you're doing it.. DBAN? Or dd if=/dev/urandom ...

spampig 05-24-2010 02:31 PM

If they are post 2001 drives I'd not mess around with anything slow like DBAN. I'd set up a chassis to do it and use secure erase:

http://cmrr.ucsd.edu/people/Hughes/SecureErase.shtml

It's a direct command built into the ata specification of post 2001 drives and takes a fraction of the time of other methods.

HTH

onebuck 05-24-2010 02:36 PM

Hi,

Quote:

Originally Posted by invader44 (Post 3979682)
Hello,

I am looking to erase some hard drives. Would the best tool to use be cfdisk or is there something else out there? I have 300 hard drives to erase.
Thanks in advance,

Vadder

A little more information would help!

If you use 'DBAN' as suggested then the time spent would be high for each drive depending on the size.

You did not say the hdd type or how you plan on connecting each. If IDE then use a IDE-USB interface, SCSI that's fixed but a SATA is doable. But you need to give us a better view of what your project is.

You could use 'dd' but that to will be dictated by connection and type along with disconnect methods.

:hattip:

Joe of Loath 05-24-2010 02:38 PM

For 300 hard drives I'd go for the not so elegant 'Huge Magnet' method. A couple of swipes with a big enough magnet will render them 'owned', for want of a better word.

spampig 05-24-2010 02:40 PM

Quote:

Originally Posted by Joe of Loath (Post 3979703)
For 300 hard drives I'd go for the not so elegant 'Huge Magnet' method. A couple of swipes with a big enough magnet will render them 'owned', for want of a better word.

Don't do this - you are likely to damage the heads/actuator/coils. If it was this easy, people would do it this way.

onebuck 05-24-2010 02:49 PM

Hi,

Quote:

Originally Posted by Joe of Loath (Post 3979703)
For 300 hard drives I'd go for the not so elegant 'Huge Magnet' method. A couple of swipes with a big enough magnet will render them 'owned', for want of a better word.

Not a good suggestion.

Let me know how many hdd that you successfully performed such action. The rails/heads are not the only possible issue but the mechanics period.

Not a wise thing to do. Maybe for floppy disks but not for hdd.

:hattip:

brucehinrichs 05-24-2010 02:59 PM

If the drives just need to be wiped clean before they're disposed of, then the 'big magnet' approach is certainly viable, if not preferable. If, however, they are to be reused, then one of the other suggested methods should be used.

EDIT: I worked for a large German firm that shall remain nameless (sounds like a bodily fluid) that required all hard drives be physically cut in half with a band saw before disposal.

Joe of Loath 05-24-2010 03:00 PM

Quote:

Originally Posted by onebuck (Post 3979717)
Hi,



Not a good suggestion.

Let me know how many hdd that you successfully performed such action. The rails/heads are not the only possible issue but the mechanics period.

Not a wise thing to do. Maybe for floppy disks but not for hdd.

:hattip:

Really? It's worked for me and other people I've recommended it to before, but they were older drives, sub 20gb, and I hear they're supposed to have shielding now, although with a magnet so strong that you can us it to pick a 2lb hammer off the floor I thought it wouldn't matter.

catkin 05-24-2010 03:07 PM

Quote:

Originally Posted by Joe of Loath (Post 3979724)
Really? It's worked for me and other people I've recommended it to before ...

How did you prove that data could not be recovered from the wiped drives? There's a difference between trying to reformat them and having a sophisticated data recovery workshop. That's why I asked if the erasure had to comply with specific standards.

hilyard 05-24-2010 03:10 PM

SystemRescueCD 1.3.4 is live. At first prompt, type <dban> which will bring up a light blue screen and prompt, at this, tye <autonuke> and let it do its thing -- wiping the HD by writing zeros to it -- via Marsenne Twister! Unplug monitor, mouse & keyboard, plug in your second mahine and do th same with another HD (or go back online for more fun). 'Nuff said.

invader44 05-24-2010 04:00 PM

Hello,

The hard drives are IDE. I am just looking to wipe the OS off of them. They don't contain any information. I was looking for something faster than dban. That is why I though cfdisk would be suffice, just to delete the partion. Or is using dban my only option?

thanks,
vadder

hilyard 05-24-2010 04:07 PM

What OS was/is on the IDE HDs now?

catkin 05-24-2010 04:08 PM

Quote:

Originally Posted by invader44 (Post 3979799)
Hello,

The hard drives are IDE. I am just looking to wipe the OS off of them. They don't contain any information. I was looking for something faster than dban. That is why I though cfdisk would be suffice, just to delete the partion. Or is using dban my only option?

thanks,
vadder

cfdisk would be fine if you only want to ensure that the OSes on them are not accidentally booted and there are no confidentiality/security issues but it would be faster (single command, no interaction) to wipe the partition table with dd if=/dev/zero of=/dev/sd<whatever> count=1 bs=1M


All times are GMT -5. The time now is 02:41 AM.