Ask Leo!

How should I erase my hard drive before I give it away?

Home » Hardware » Disks and Mass Storage

Summary: Erasing your hard drive before you give it away is important. Exactly how thorough an erase you need depends on your data and level of paranoia.

I would like to clear off/erase all the programs on my hard drive and clean it up so that it's available for donation. What's the best/simplest way to do this?

To begin with, good on you, not only for your donation but for thinking to do this. All too frequently we hear of computers donated by banks, hospitals, or other institutions turning up with all sorts of private information that should have been erased first.

The best way? Well ... how paranoid are you?

Conventional wisdom is that reformatting your disk is the right thing to do. And I agree with that, if done properly.

What do I mean by "properly"?

Windows (all versions), and even MS-DOS before it, has the option to perform what's called a "quick format". In reality, a quick format does very little except create an empty root directory on the hard disk and possibly add a label. The rest of the disk is actually assumed to be properly formatted already and left alone. That's why it's quick.

And that's why it's insecure. Since the rest of the disk is left untouched, any data that may already have been there will remain. Many commonly available disk recovery tools will be able to recover data from a "quick" formatted disk.

So the basic and common answer is to reformat the disk, making sure to specify "unconditional" format. Depending on the version of Windows or MS-DOS you have that's typically a "FORMAT /U" at the command line, or making sure that "Perform a Quick Format" is not checked when using disk management tools.

And that's my general recommendation.

But... here's where paranoia sets in.

It's theoretically possible to recover data even after a disk has been unconditionally formatted. It's not easy and may require special tools (both hardware and software). In general it's a very expensive process. But it may be possible.

It's a common recommendation to use a big heavy magnet to really erase a hard disk. My advice: forget it. Any magnets you're likely to have around the house, even your big speaker magnets, are unlikely to affect your hard disk in any significant way.

An alternate approach is to do that unconditional format several times. Not a bad idea, and if you can I'd also alternate filesystem types, allocation sizes, and whatever other parameters you have control over between successive formats. It's not bullet-proof, but it will make that difficult potential recovery even more difficult.

But to really, positively, and permanently destroy your data you need to physically destroy the disk. Personally, if I care enough to go this far I use a drill press and drill a few holes all the way through the hard drive casing, through the disk platters, and out the other side. (OK, ok ... even then it's possible for some data recovery by a seriously dedicated, and seriously well financed, expert ... but it's very much like taking a bucket of shredded documents and trying to put them back together - one heck of a lot of work.)

Unfortunately, that level of destruction also makes your gift significantly less useful.

I'd stick with reformatting.

More articles about: Disks and Mass Storage

Article Useful? Link to it from your own website; just copy/paste this HTML:

Article 949 | Posted December 26, 2004

Recent Comments

I have a maxtor hard drive that crashed. Need to send back to Dell. Will not work to format or erase files. Where do I drill the small holes in the drive(DiamondMax Plus 9). I have read the article.

Posted by: Paul Vanderver at June 5, 2008 01:33 AM

very nice article about how to erase your hard drive permanently. formatting can erase disk but not permanently as you said data recovery software recover these files. SO in this situation you could try drive wipe software which rewrite and overwrite the data by special algorithm so that it couldn't be recovered by any recovery software.

More information: http://www.drive-wipe.com

Posted by: vish at June 5, 2008 05:18 AM

Look for DBAN... by far the best nuke program I've ever seen. I don't know anyone that's been able to recover data off a DBAN'd drive. And trust me, I know "social engineering" people who do it all the time on weak reformats.

Posted by: Mobius at June 7, 2008 04:26 PM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

DBAN is Darik's Boot and Nuke available at
http://dban.sourceforge.net/ - and yes, it's another good
solution.

Leo


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFIS17QCMEe9B/8oqERAhAIAJ9IGqq07FyUC8WVPpdMCQLAiOrwgQCfWM/0
OWGaJrKs/z1l7ZCSL4JY/6I=
=1ajY
-----END PGP SIGNATURE-----

Posted by: Leo at June 7, 2008 09:24 PM

can I ask a question. I had a new hard drive with new bios put in. If I erase the HD will the BIOS be left so I can reinstall the OS.
Thanks

Posted by: Amanda Stephen at June 8, 2008 03:19 PM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Erasing your hard disk does NOT erase your BIOS.

Leo


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFITLFlCMEe9B/8oqERAhFRAJ9y3NuoBYxOlcPHe5lmL66mn8uDVQCfXxQv
/5HrFQO+WSA1ml+UV9sTqcg=
=i1HT
-----END PGP SIGNATURE-----

Posted by: Leo at June 8, 2008 09:28 PM

I have a hp with recover in my computer will doing a format erase so I can not reinstall factory settings?

Posted by: Robert Schrubbe at June 10, 2008 02:35 PM

What about encrypting the data? then I would think it could (in many cases) become an impossible task to decrypt the data, from the partly recovered data you get from the drive.

As long a you've chosen a strong passphrase, and as long as you're certain that the unencrypted data was never temporarily outside of your encrypted container (like, say, the Windows swap file or a temporary file) then yes, encryption could be a viable solution.

Specifically I think if you used whole drive encryption from day one on the drive you might be ok.

But if you're suggesting to encrypt just prior to disposal, I'd just format instead. Or break out my drill press. :-)

-Leo

Posted by: Simon at July 29, 2008 04:32 AM

>Amanda Stephen:
>can I ask a question. I had a new hard drive with >new bios put in. If I erase the HD will the BIOS >be left so I can reinstall the OS.

The Bios isn't saved on the hard drive. It's normally saved on a chip on your motherboard. This chip can be overwritten or in some cases physically replaced. Without a bios a normal PC is useless, because is can't load an operating system and thereby can't be operated ;-)

Posted by: Simon at July 29, 2008 04:46 AM

Why erasing hard drive is required ?

Get your answer here...

http://www.eraseharddrivedata.com/wiping-hard-drive-process.php

Posted by: Erase hard drive data at August 1, 2008 12:00 AM

Post a comment on "How should I erase my hard drive before I give it away?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

New!

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

Please wait. Your comment is being processed ...


Ask Your Question:


ask-leo.com
Web

Archives

By Category
By Date

Advertisers

Advertise on Ask Leo!

««   »»

Question? - Ask Leo!
Who is Leo?
Link to Leo!

Terms, Conditions & Privacy