On CBS MoneyWatch: 20 Things to Know About College Freshmen
BNET Business Network:
BNET
TechRepublic
ZDNet

May 1st, 2007

How to REALLY erase a hard drive

Posted by Robin Harris @ 8:44 pm

Categories: Disk drives

Tags: IDE, Hard Drive, Disk, BIOS, Disk Drive, Serial ATA, Robin Harris

You may already know that “deleting” a file does nothing of the sort. But did you know that your disk drive has a built-in system for the secure erasure of data?

No? Then read on.

What do you mean “delete” doesn’t delete?
File information is maintained in a directory so your operating system can find it. All that “delete” does is erase the file’s reference information. Your OS can’t find it, but the data is still there.

That’s what those “file recovery” programs look for: data in blocks that the directory says aren’t in use.

You really want to do this
If you keep business, medical, or personal financial information on disks, simple deletion isn’t enough to protect the data when disposing of the equipment.

Besides identity theft, data loss may leave you or your company liable under federal laws such as HIPAA, Sarbanes-Oxley, Graham-Leach-Bliley or other state laws. Criminal penalties include fines and prison terms up to 20 years. Not to mention the civil suits that can result.

So what’s the magic?
Something called Secure Erase, a set of commands embedded in most ATA drives built since 2001. If this is so wonderful, why haven’t you heard of it before? Because it’s been disabled by most motherboard BIOSes.

Secure Erase is a loaded gun aimed right at your data. And Murphy’s Law is still in force. But hey, if you’re smart enough to read Storage Bits, you’re smart enough to not play with Secure Erase until you need to.

How does Secure Erase work?
Secure Erase overwrites every single track on the hard drive. That includes the data on “bad blocks”, the data left at the end of partly overwritten blocks, directories, everything. There is no data recovery from Secure Erase.

Says who?
The National Security Agency, for one. And the National Institute for Standards and Testing (NIST), who give it a higher security rating than external block overwrite software that you’d have to buy. Update: There is an open source external block overwrite utility called Boot and Nuke that is free.

Secure Erase is approved for complying with the legal requirements noted above.

UCSD’s CMRR to the rescue
The University of California at San Diego hosts the Center for Magnetic Recording Research. Dr. Gordon Hughes of CMRR helped develop the Secure Erase standard.

Download his Freeware Secure Erase Utility, read the ReadMe file and you’re good to go.

To use it you’ll need to know how to create a DOS boot disk - in XP you can do it with the “Format” option after you right-click the floppy icon in My Computer.

August 2009 Update: The NSA is no longer supporting Dr. Hughes research, so he and his grad students can no longer support the software. However it still works. I also updated the link above. End update.

Update: Some folks have commented that I didn’t actually say how to use the utility, leaving that to the readme. For those of you who’d like to judge how tricky this is - and it is definitely not for newbies - here’s a quote from the instructions:

Instructions for using HDDerase.exe
—————————————-
Copy the downloaded file, HDDerase.exe onto the created floppy/CD-ROM bootable DOS disk. Boot the computer in DOS using the bootable disk. Make sure to set the correct boot priority setting in the system BIOS. Type “hdderase” at system/DOS prompt to run HDDerase.exe. All ATA hard disk drives connected to the main system board will be identified and their information displayed. Make sure that the jumpers on the hard disk drives are correctly configured. Avoid setting the jumpers to CS (cable select) on the hard disk drives. Master or slave jumper setting is preferred.

There’s more, but if this is more than you want to deal with then Secure Erase isn’t for you. Update II: A late commenter says “Floppy boot does not understand SATA drives and thus the method described does not work.” I don’t know if it is true or not, but if it is it is worth knowing. Maybe someone well-versed in Windows floppy booting can confirm.

Update III: Well, it appears that bad information can be found on the web. Who knew? This just in from Daniel Commins, a grad student in the CMRR program:

SATA drives can be erased after being booted from a Windows XP MS-DOS startup disk using our software, with over a dozen such drives from various manufacturers I have tested as proof. Another excerpt from the FAQ section of the readme file:

Q: Can HDDerase.exe be used to erase my onboard SATA drive?

A: Yes, but some BIOS configuration may be required. Since hdderase.exe only
detects drives on the primary and secondary IDE channels (P0, P1, S0, S1) the
BIOS must be configured so that the SATA drive is detected one of these channels.
This can be done by switching the SATA drive from “enhanced mode” to
“compatibility mode” in BIOS (compatibility mode is sometimes called “native mode”
or “IDE mode”). E.g. BIOS >> IDE configuration >> onboard IDE operate mode >>
compatibility mode. Note - not all BIOSs support this feature.

Thanks for setting the record straight, Daniel.

The Storage Bits take
Protecting data sometimes means erasing it. With this utility every storage pro has another tool to protect confidential information.

PS. Mac users already have a similar option under the Finder: “Secure Empty Trash”. And with Disk Utility you can perform a secure erase of all drive free space.

Comments welcome.
Another August 2009 update: Laptop users should have charged batteries and preferably wall power. If power fails during a secure erase the “. . . the drive will be in a locked state, preventing all I/O access.” Since a large drive can take 2-3 hours to erase, I recommend plugging in wall power for all notebook machines. End update.

Robin HarrisRobin Harris has been messing with computers for over 30 years and selling and marketing data storage for over 20 in companies large and small. See his full profile and disclosure of his industry affiliations.


Email Robin Harris

Subscribe to Storage Bits via Email alerts or RSS.

Related Discussions on TechRepublic

Did you know you can take part in these discussions with your ZDNet membership?

  • Talkback
  • Most Recent of 291 Talkback(s)
RE: How to REALLY erase a hard drive
Hmmm. Somehow I think I will continue to sleep better at night when I do this:

Roast the drives on a really, really hot BBQ for a good while and then use a pair of tongs to plunge em in ice water.... (Read the rest)
Posted by: wsmith@... Posted on: 12/30/09 You are currently: a Guest | | Terms of Use
You've got to be kidding, right?  tecopa03 | 05/01/07
Boot & Nuke is technically and legally inferior  R HarrisZDNet Moderator | 05/02/07
Message has been deleted.  tecopa03 | 05/02/07
DBAN vs. Secure Erase  tech3@... | 05/02/07
I have to agree...  muzhik | 05/02/07
More secure way.  Peconet Tietokoneet-21703818799325819467806990363298 | 05/14/07
Please be polite  krisaustinse@... | 05/02/07
Rightful observation  professordnm | 05/02/07
You really should READ an article before you begin to slam it.  friedcow | 05/02/07
I used to work for the Department of Defense  Dr_Zinj | 05/02/07
Too true...  bixbyru@... | 05/02/07
Turned into DRMO  swattz101 | 05/02/07
386?  bixbyru@... | 05/02/07
Sandpaper and Elbow-Grease  CiberWulf | 05/03/07
Degausse and done  Silverbow | 05/07/07
Repeat: Boot & Nuke is inferior. Get over it.  R HarrisZDNet Moderator | 05/02/07
Repeat: Boot & Nuke is inferior. Get over it.  DBOYCE | 05/03/07
Dumbest comments...  rob.elm@... | 05/03/07
MHDD, etc.  alper83 | 05/07/07
SE IS NIST certed  jwhoover | 06/01/07
Most simple method  JGehrken | 06/19/07
Do you have a link?  JCitizen | 12/31/07
It feels funny to reply to a deleted message  lamp299 | 05/02/07
You're right - my bad  R HarrisZDNet Moderator | 05/02/07
A good article  Information_z | 06/07/07
Secure Erase Blows  rob.elm@... | 05/03/07
a question...  alper83 | 05/06/07
some people would argue it's worse for easing data off of SCSI drives and o  jwhoover | 06/01/07
Legal matters !!!  PokeyJoe | 12/27/07
But What About?  wjkahlssmd@... | 05/02/07
"Secure Empty Trash"  shoktai@... | 05/02/07
You are correct - and  R HarrisZDNet Moderator | 05/02/07
Just a question  Joerobyte | 05/02/07
Yeah, no problem  j.m.galvin | 05/02/07
not toast  cuba_pete@... | 05/03/07
wipe from cd  stigg101 | 01/03/08
I do...  bixbyru@... | 05/02/07
What about for a whole drive?  Wolfpup | 05/02/07
Well...  bixbyru@... | 05/02/07
Random Subject  Wolfpup | 05/02/07
Can you boot with Linux?  muzhik | 05/02/07
powerpc macs can boot yellow dog linux  impala_sc | 05/02/07
Mac Secure Erase  swattz101 | 05/02/07
Start from CD or DVD  j.m.galvin | 05/02/07
A hardware erasing device....  arminw | 12/28/07
Your title is misleading.  ShadeTree | 05/02/07
Come again?  bixbyru@... | 05/02/07
Average user? You got the easy part  lamp299 | 05/02/07
Ah, but that's the point  voska | 05/03/07
techie  cuba_pete@... | 05/03/07
Just wondering...  pmshah@... | 05/03/07
Sarbanes, Oxley, and HIPPA  D-T-Schmitz | 05/03/07
Put it under a ShadeTree  Ole Man | 05/02/07
I agree  voska | 05/03/07
on point  tommystuddard@... | 02/22/08
Hit it with a hammer  wmpierro@... | 05/02/07
The hammer won't, but the blaster will...  mdavidson59@... | 05/02/07
No chances...  Michael Of Atlanta | 05/02/07
I prefer...  jboutot@... | 05/02/07
no better way than  RainMaker_AMK | 05/02/07
90%? What happen to the less than 10%  lamp299 | 05/02/07
rocket  swattz101 | 05/02/07
Thermite is my favorite...  JCitizen | 05/03/07
recover  cuba_pete@... | 05/03/07
I think the object of this post was to erase it  intrepi@... | 05/02/07
Drive value not enough  jheine | 11/14/07
Poor Man's way - cipher.exe command  RobertSeattle | 05/02/07
used?  cuba_pete@... | 05/03/07
cp /dev/random /dev/hda  davidr69 | 05/02/07
So what about this situation?  erm@... | 05/02/07
VHS Tape Earaser or degausser / Super strong magnet  jhimes | 05/02/07
Bulk Tape Eraser  bonafide49 | 05/02/07
No, you can't  bixbyru@... | 05/02/07
Yep....no easy erasing  ShoreLeave | 05/02/07
No need for an MRI  nECrO_z | 05/04/07
Not quite...  bixbyru@... | 05/04/07
On another note...  bixbyru@... | 05/04/07
Erasing Drives  burtoni | 05/02/07
Nope  bixbyru@... | 05/02/07
Use a disk degausser  Bamaro | 05/09/07
Same thing happened to a friend  RIMMAN.Larry@... | 05/02/07
Hmmm...  bixbyru@... | 05/02/07
This would not stop professional recovery  intrepi@... | 05/02/07
Read and heed before you make a (stupid) comment  bixbyru@... | 05/02/07
Huh?  bixbyru@... | 05/02/07
anything else bothering you ?  intrepi@... | 05/02/07
..you nailed it right...  searching55@... | 05/02/07
Uh huh.  bixbyru@... | 05/03/07
Get some perspective  Bozzer | 05/05/07
WHat would actually be useful...  erm@... | 05/02/07
Again...  bixbyru@... | 05/02/07
Depends on what you want to do ?  intrepi@... | 05/02/07
situation...  cuba_pete@... | 05/03/07
Undoing that stuff  bcunning@... | 05/02/07
Undoing that stuff  d_j_owen2002@... | 05/02/07
confusing article  petem@... | 05/02/07
True, but...  seal@... | 05/02/07
I didn't find this confusing  intrepi@... | 05/02/07
How to enable the function  wayne.wong@... | 05/02/07
Function is available on drive itself  muzhik | 05/02/07
Hmmm... interesting  bixbyru@... | 05/02/07
SUN has something similar, BUT  impala_sc | 05/02/07
Hmmm...?  bixbyru@... | 05/03/07
What do you have that's floppy?  jrcooperjr | 05/02/07
Bootable CD  muzhik | 05/02/07
Bootable Disk  swattz101 | 05/02/07
If anything  pmshah@... | 05/03/07
Why doesn't Windows XP format a bootable CD?  davidsf@... | 06/18/07
There IS Such a Beast--Just Not from Microsoft  dumptux | 06/18/07
ATA Drives? Hmm...  Neuromage | 05/02/07
READme, ATA drives  techrep@... | 05/02/07
you want to talk about "old" drive tech  ShoreLeave | 05/02/07
What about...  bixbyru@... | 05/02/07
memories  ShoreLeave | 05/02/07
Indeed...  bixbyru@... | 05/03/07
remember when....  impala_sc | 05/02/07
yes, I can  ShoreLeave | 05/02/07
Well, Actually....  psomerset@... | 05/03/07
I doubt  pmshah@... | 05/03/07
uhh no  danwat1234 | 05/02/07
I doubt that too  pmshah@... | 05/03/07
ATA = IDE/EIDE/SATA !!!  alper83 | 05/06/07
cd-r boot  stigg101 | 01/03/08
Maybe  seal@... | 05/02/07
SAMSUNG  erm@... | 05/02/07
Weak Effort  wekiva@... | 05/02/07
A magnet won't do it...  bixbyru@... | 05/02/07
A strong magnetic field will work  wekiva@... | 05/02/07
Nope.  bixbyru@... | 05/03/07
Yep  nECrO_z | 05/04/07
Floppy Drive?  ChaGeek | 05/02/07
Floppy Drive???  already_in_use | 05/02/07
Exactly that  pmshah@... | 05/03/07
erasing hard drive  stargate1121@... | 05/02/07
Formatting Doesn't Clean the Drive  andy101 | 05/02/07
Secure Erase isn't formatting  R HarrisZDNet Moderator | 05/02/07
MY GOD!!!  bmerc | 11/13/07
I disagree.  pmshah@... | 05/03/07
'Fraid not  muzhik | 05/02/07
Quick format  bixbyru@... | 05/02/07
I believe you have to delete all partitions  intrepi@... | 05/02/07
Overkill  bixbyru@... | 05/02/07
Full format will not do the same thing  intrepi@... | 05/02/07
All I said...  bixbyru@... | 05/02/07
Overkill is a matter of personal opionion  intrepi@... | 05/02/07
Want to bet?  professordnm | 05/02/07
Full Format  swattz101 | 05/02/07
Deleting partitions won't work  orthocross | 05/02/07
Formatting HD  prairie_dog5 | 05/09/07
Wow  mikeholli | 05/02/07
That'll work!  R HarrisZDNet Moderator | 05/02/07
Okay Robin  mikeholli | 05/02/07
NIST defines three levels of disk data destruction  R HarrisZDNet Moderator | 05/02/07
Reading that  mikeholli | 05/02/07
Reading that  mikeholli | 05/02/07
But how many end users...  KWierso | 05/02/07
Cheaper Yet!  already_in_use | 05/02/07
BUT!.!.!.!.  mikeholli | 05/02/07
Right on!  bixbyru@... | 05/03/07
I think the point was to erase the hard drive  intrepi@... | 05/02/07
What?  bixbyru@... | 05/02/07
Better yet. It is fast and greener.  osreinstall | 05/02/07
Defrag a drive  burtoni | 05/02/07
defrag  boomchuck1 | 05/02/07
I recollect  pmshah@... | 05/03/07
Just like my blog  pingu@... | 05/02/07
I hate to tell you...BUT  mikeholli | 05/02/07
You are wrong  pingu@... | 05/02/07
Nothing on the HD?  boomchuck1 | 05/02/07
I thought so!  pingu@... | 05/02/07
Are Eraser Programs a fake then?  cigsas@... | 05/02/07
puzzle time  mikeholli | 05/02/07
DoD 5220.22-M is an old standard  R HarrisZDNet Moderator | 05/02/07
NO not fake as there are different methods  intrepi@... | 05/02/07
Hammer method  mikeholli | 05/02/07
Guess again  bixbyru@... | 05/02/07
Repartition, format using Fat 16  intrepi@... | 05/02/07
What feels greater?  Shadetree Engineer | 05/02/07
Magnets!  boomchuck1 | 05/02/07
Great Idea  burtoni | 05/02/07
Cool idea  Shadetree Engineer | 05/02/07
Excellent!  mikeholli | 05/02/07
News Letter?  Shadetree Engineer | 05/02/07
Will a Cutting Torch Work? Reusability is NOT a requirement. (NT)  Update victim | 05/02/07
Sure  mikeholli | 05/02/07
What will 6000 degrees do?  Shadetree Engineer | 05/02/07
Like a charm!!! Did it....  btljooz | 06/07/07
44mag is the only way - shoot it  waynearcelectcom | 05/02/07
I'll stick with my secure erase methods -  nix_hed | 05/02/07
Belt sander happy  rregier@... | 05/02/07
WEAR A MASK!  muzhik | 05/02/07
Almost, but not quite  jedi105@... | 05/02/07
Total Physical Destruction, YES!  Ron_007 | 05/02/07
Hmmm, bad blocks  TripleII | 05/02/07
...this accomplishes nothing  cornfreak | 05/02/07
Molten Slag!  Shadetree Engineer | 05/02/07
If I have 30 hour Ill do this  rammaramara@... | 05/02/07
So, What about single files and Free Space?  normjr@... | 05/02/07
Secure delete single files  Ron_007 | 05/02/07
Free Space and Thanks,  normjr@... | 05/03/07
Because it?s been disabled by most motherboard BIOSes.  BALTHOR | 05/02/07
If you are really concerned about the security of your data  pingu@... | 05/02/07
Don't Bet the farm on it!  normjr@... | 05/02/07
Sounds like a business oppertunity for the enterprising posters  pingu@... | 05/02/07
Or just keep all your old drives...  KWierso | 05/02/07
If folks really knew about drive geometry...  jdhoechlin@... | 05/02/07
Active@killdisk  RoninV | 05/02/07
Typical  bumberfsck | 05/02/07
Low level format the drive  Pyrotech_z | 05/02/07
This is from the Western Digital DataLifeguard tools  pingu@... | 05/02/07
Looks like the [pre} tag doesn't work?? Re previous post  pingu@... | 05/02/07
Simple way to erase the deleted files  brad@... | 05/02/07
Hard Drive Erase  chuckotto | 05/02/07
Just like I wrote last July  drwebber | 05/02/07
Really Possible??  cardinal33 | 05/02/07
Try Encryption  i.adair@... | 05/02/07
Secure or Insane?  Headspin | 05/02/07
I'd agree, but...  KWierso | 05/02/07
According to circumstances.  miyojim | 05/05/07
I prefer a single jack hammer  home electrical | 05/02/07
I have observed many PC users just rip some DVDs to overwrite the disk  ralphrides | 05/02/07
Disk Space  damonbartn | 05/02/07
RE: Disk Space  techsand | 05/02/07
Wouldn't it be easier  HappyAsLarry | 05/02/07
Reformatting is insufficient  muzhik | 05/03/07
Reformatting not sufficient  HappyAsLarry | 05/05/07
The method does not work for SATA drives  ytosa@... | 05/02/07
Doh..  Fairway | 05/02/07
SECURE SOFTWARE BEWARE !!!!!  ryk@... | 05/02/07
audit log?  alper83 | 05/06/07
simpler erase  jperl@... | 05/03/07
Technicality  psomerset@... | 05/03/07
Why Not Just Reformat with another File Type?  Kalki_Avatar | 05/03/07
How to REALLY erase a hard drive  The_Quietman | 05/03/07
Securing data for the last time  dwpenn@... | 05/03/07
HDDERASE doesn't depend on floppy  muzhik | 05/03/07
Floppy and DOS not needed?  dwpenn@... | 05/03/07
Haven't read all the threads here / dd  D-T-Schmitz | 05/03/07
Network standards  shulland | 05/03/07
used?  cuba_pete@... | 05/03/07
I tried it and it does not work  AxleMunshine | 05/03/07
read the FAQ section  alper83 | 05/10/07
Why Trust What You Can't See?  bobhog | 05/03/07
How to Certifiably (Reheheeally) Erase a Hard Drive with Knoppix CD  D-T-Schmitz | 05/04/07
You're method, step 2  D-cat | 05/04/07
Erase a hard drive  mjd420nova | 05/04/07
Faraday Effect  D-cat | 05/04/07
erase hard drives the cheap way  andrewmrfixit@... | 05/05/07
Floppy, what floppy. How retro!  Steve*1* | 05/05/07
When in doubt, a bulk eraser works....  allen.childress@... | 05/07/07
A bit of history on how the DD-19 and DD-29 drives were erased.  Old Timer 8080 | 05/07/07
Why not Just get the free program Sure Delete?  shellyf@... | 05/08/07
standards and security  stemcellphone | 05/08/07
SECURE ERASE PROOF AND REFERENCES  ryk@... | 09/14/07
The author is such a bozo, didn't get his facts right .  david@... | 05/09/07
A question and a link  djdawson | 05/09/07
A question and a link  djdawson | 05/09/07
your facts are not not quite right either...  alper83 | 05/09/07
RE:Erase Drives  ITEngineerGuy | 05/09/07
have fun  ITEngineerGuy | 05/09/07
No, File Shredder Software is not fake  mireth | 05/11/07
Dosen't access secure erase  Wolfpup | 05/16/07
Pieces o' Eight  FiOS-Dave | 06/07/07
Magnets...  Information_z | 06/07/07
no more Floppy Disk in new Computers  gbeauchamp@... | 06/09/07
Topic Creep  Jambalaya Breath | 06/19/07
E-SATA erasure  citizenandy@... | 07/31/07
Hard Drives  bigspegie | 08/09/07
What about Linux?  rcugini@... | 11/12/07
Correction to article...  jmiller1978 | 12/27/07
KillDisK  Brewer@... | 12/27/07
RE: How to REALLY erase a hard drive  ZenaPrincess | 12/27/07
What if BIOS Prohibits Use?  doug@... | 12/27/07
I found a product called "Wipe"...  mikifinaz1@... | 12/27/07
RE: How to REALLY erase a hard drive  mhmallory@... | 12/27/07
Co-lo host data  joe@... | 12/27/07
bad link to the download  woftbo@... | 12/27/07
Alternative link...  Oh Boy! | 12/27/07
I can't get the checksum to verify on that file;  JCitizen | 12/31/07
RE: How to REALLY erase a hard drive  winddrift03 | 12/27/07
RE: How to REALLY erase a hard drive  Oh Boy! | 12/27/07
How about "Windows Washer"  simplifried | 12/27/07
How about "Windows Washer"  simplifried | 12/27/07
Use Cipher.exe /w  dnof | 12/28/07
RE: How to REALLY erase a hard drive  lmukoro | 04/11/08
RE: How to REALLY erase a hard drive  rezadoosti | 06/25/08
From what I understand...  JCitizen | 06/30/08
RE: How to REALLY erase a hard drive  grendel25 | 12/04/08
RE: How to REALLY erase a hard drive  kimlung | 04/14/09
Message has been deleted.  qi.xinyan163.com | 05/12/09
RE: How to REALLY erase a hard drive  wsmith@... | 12/30/09

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

Click Here
advertisement

Recent Entries

advertisement

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads

SmartPlanet

Click Here