Clean a drive?

chp_lock_binary.jpg

I'm retiring a really old PC and still have a drive in it containing sensitive data.  (Sensitive to me anyway, not like the drives that the government loses with millions of social security numbers...)  I'd like to give the PC away to a nearby charity, but want to ensure that the data is gone.  It turns out that the best way to clean a drive is simply to overwrite it with zeros, ones, or randomness. 

The easiest way is zeros, just:

dd if=/dev/zero of=/dev/sda1

Or whatever your device is.  If you want ones, it's a bit trickier since there isn't a /dev/one device:

cat /dev/zero | tr '\000' '\001' | dd of=/dev/sda1
 

Supposedly, you are supposed to write and rewrite over the drive or some hacker can figure out how to recover the data.  This is not true.  In fact, there has been a competition out for some time to reward any company who can perform this feat.  It has never been taken.


Recent Entries

  • Drake Attack

    Here's an episode of me trying to watch TV....   And I ask myself...I'm going to have two of these?? ...

  • Funniest thing I read today...

    If you say the words 'beer can' in a British accent, it sounds like you're saying 'bacon' in a Jamaican accent. </blockquote...

  • My favorite thing today....

    Anyone want to buy a dollar for $0.25?...

  • Antigravity

    This weekend, Roger and I hit the NJ Rock Gym to test our mettle against their obstacles.  I can't say that the rock wall won,...

  • Hello, World!

    Cara Rose Kiser Born 8:25AM on October 22, 2009 weighing in at 7 lbs 1.6 ozWho knew that Rus could be involved in creating...

Close