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

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 of the programs on my hard drive and clean it up before I donate my computer to a worthy cause. 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 being donated by banks, hospitals, or other institutions and then turning up with all sorts of private information that should have been erased first. The best way? Well … how paranoid are you?

Not an option: Leaving anything

Quite often, I get this question with an additional caveat – how to remove all of your personal information while leaving Windows installed.

You can’t.

The problem is that even after removing all of your data – even if you remember to  remove every scrap and even after removing every single application – some of your personal information will still be left on the machine.

Well … how paranoid are you?

If nothing else, there’s likely to be random information left in the Windows registry, and unless you take additional steps, all of those files that you carefully deleted could potentially be recovered.

What’s worse, of course, are the people that do nothing and leave everything on the machine. It’s not uncommon to hear stories of second-hand machines containing a wealth of personal and private information from the previous user.

Let’s not do that.

Basic precaution: Format the drive

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, have 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 also insecure. Because the rest of the disk is left untouched, any data that is already 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.

Unfortunately, if that’s your C: drive, you won’t be able to format the drive if you’ve booted from it and are running Windows from it. You’ll need to either install the disk in a different machine to be able to reformat it or boot from something else.

For the later, I have just the thing…

A safe, practical approach: DBAN

DBAN (which stands for “Darik’s Boot And Nuke”) is a free utility designed to do exactly what we’re talking about by living up to its name: it’s a CD that you boot from that then “nukes” the information on the drive.

Download the DBAN CD image, burn it to a CD, and then boot from the CD. I need to be really clear on what happens next:

DBAN will automatically and completely delete the contents of any hard disk that it detects.

DBAN does this not by simply deleting files, but by performing a careful overwrite of the entire hard disk surface. When it’s done, everything is erased.


In fact, DBAN has options to overwrite/erase the hard disk multiple times, so as to prevent any possibility of future data recovery. DBAN is now my recommendation when you’re about to dispose of a hard disk or give a computer away.

Over the top: Physical destruction

Disk DriveIt’s a common recommendation to use a big heavy magnet to really erase a hard disk. My advice is to forget it. Any magnets that you’re likely to have around the house, even your big speaker magnets, are unlikely to affect your hard disk in any significant way. I believe that there have been studies that show that even some exceptionally large magnets still leave the contents of hard disks in a recoverable state.

Another approach to really, positively, and permanently destroy your data is to physically destroy the disk.

Personally, DBAN is more than enough for me, but 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.

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

If you want to leave Windows on the machine…

As I said before, it’s common to want to leave Windows installed as part of your gift.

That may or may not be legal (it depends on the terms of the license for your particular copy of Windows). To keep it at least ethical, it means you would no longer keep or use that copy of Windows yourself.

The right and safe way to transfer Windows in this case is to, after running DBAN, reinstall Windows from scratch using your original installation media. If your system didn’t come with installation media, then you could try the restore media that you received or you could restore to an image backup that you took immediately after receiving the machine.

And part of your gift would be to include the product key that activated that copy of Windows.

A product key that, as I said, you would no longer use yourself, having given it away.

(This is an update to an article originally published December 24, 2004.)


  1. Yes, there are various utilities out there that will do varying degrees of data “wiping” to help decrease the chances that the data can be recovered. And if an unconditional Format isn’t enough for you, then they might be worth checking out. But remember that there are few guarantees … they only decrease the probability of recovery, not neccessarily eliminate it. Format takes care of the 99% case … the rest of you need to decide how much trouble you want to take.

  2. Frank

    If you want to erase your hard disk, simply throw it into an incinerator. That way, theres no freakin way thanyone will ever get to your stuff.

    oh yeah!!

  3. Jonathan E

    My sister inlaw gave me her comp. but it has a virus on it that i cant get rid of. I was wondering if i could erase or reformat my hardrive to reinstall WindowsXP without the hard drive still having the virus on it. Im not to sure what kind of virus it is, but im pretty sure its some kind of spyware or adware.Your comments would greatly be appreciated

  4. Brent Anderson

    I’ve used the Web-deployable and found it to be an efficient and effective method of conducting a three-time disk overwrite and verification pass. The software automatically produces a Certificate of Data Erasure – guaranteeing success of hard drive erasure. I tried three off-the-shelf data recovery programs and could find no trace of data. I liked the fact that the software was Web-deployable so that I could erase the drive immediately and did not have to download an .exe file nor did I have to wait for a CD to arrive in the mail. Quick, convenient and obviously effective.

  5. Ashish Tyagi

    I format hard disk by command (format c:/q/u/s)
    after that i loss my data can you suggest me any process for recovery data

  6. Leo

    That’s what formating does … it erases your disk.

    You can try googling for “unformat”, and you may find some tools that can help, but I would not be hopefull.

  7. k

    at the risk of looking like i didn’t read the above comments (I did)…I gave away the desktop monitor years ago and kept my compaq hard drive out of fear of data security…it was purchased in ’99 and has a very old Windows on it…there’s no chance of buying or using any of the cleaning software – so are you saying the rumor of strong magnets won’t work? I live in an apt, I’mnot about to be drilling into anything…HELP! Anyone know of companies that come take away and clean hard drives???someone once said tat HP had a day when people could drop off old machines but I’ve never seen it advertized. What can a paranoid do with an old drive lying around the apt that htey are dying to ditch???

  8. Leo

    Yeah, a strong magnet won’t. It’s pretty amazing, really – I’ve seen some interesting examples on TV of things that you would expect to be demagnetized by a high powered magnet that just keep on working.

    It depends on how paranoid you are about the old data. Putting the drive into a machine and simply performing an unconditional format would be enough for most. Otherwise, anything that you can do to destroy the disk physically (open the case, bend the platters, whatever) would be the near-ultimate.

  9. Paul Chapman

    I want to agree with leo it is all about how paranoid you are. If you know that you have something on there you shouldn’t. Or are worried about someone finding it out. Then my advice is just get a 5 puond sledge hammer from home depot and beat the living crap out of it on the side walk. However if you just want to donate a computer. Get partition magic 8 and delete the partitions and recreate them, then use a 98 boot disc to format the drive and format it 5 times in a row. If anyone can recover your data after that, they worked hard enough for it I say let them have it. In all seriousness most people don’t know how to access the data on their computer that wasn’t erased. So don’t freak out I am the lead PC Tech for a Circuit City located in Countryside,IL. You would be amazed at how little the average person knows. Data Retrieval is not even in there vocabulary. So format it or smash it if you are that worried, Otherwise you could leave everything on there and for the most part no one would find anything anyways.

    Just my opinion, I could be wrong

    PC Tech

  10. PWard

    Both ‘DriveScrubber’ and ‘KillDisk’ have functional demos for download- the file you download creates a bootable floppy disk that will overwrite the entire surface of whatever drive you choose-erasing data, partitions, etc. You would then have to create and format a new partition. It would take special hardware to retrieve any data after that. Takes about 2-1/2 minutes per GB on an average HD/machine.

  11. Bill Tkach

    IBM has a free (Anyone can download and use it) software program that you can download from their website called “IBM(R) Secure Data Disposal (SDD) Version 1.2.”. It runs from a boot disk/CD, and a will wipe out your drive by copying, sectory by sector, track by track, random data onto the hard drive. It will overwrite everything that is there, as many times as you want. So there would be no chance of someone every reading what was on your disk drive.
    Caveat – doesn’t work with RAID systems very well, since it needs drivers to read them.

    Bill Tkach
    System Administrator

  12. Hyipo Network

    I would recommend using a Overwriting software.

    That’s what Leo should have mention is Erase a hard drive using a Boot-Up Hard Drive Erasing Software (like Active Killdisk, etc etc.), erase it Guttmann method, then erase it with other methods, then when your done you erase with One Pass Zeros so it looks like you never erased, or written data.

    Then after that Reformat, then install the Operating System (95,98,XP,2000,2003,Vista) not to mention you overwite when you reinstall your Operating System too.

    Now you know how to erase everything without destroying the hard drive. I need to have a data erasing service. Maybe computer repair shops can have a erasing service and make some $$$.

    Another way to destroy data from recovery is to put all data in a (Strong 128-Bit) or more encrypted container and reformat-it because you can recover files but never destroyed strong encrypted files from a deleted encrypted container. That’s the reason why Strong Cryptology is Banned in certain countries.

    Don’t use magnets, don’t destroy you Hard drive. It’s not nessisary.

  13. VICTOR

    I inadvertently formatted my hard drive with the system rescue disk. THE GEEK SQUAD assures me they can have all my photos and videos rescued by a level three retrieval.

    A level 2 is $500, but a level three in a clean room is $1500. I this even possible, or am I getting ripped off?

  14. MP

    My request to format the hard drive is met with “Format cannot run because the volume is in use by another porcess” I have nothing else open or running. Any idea why I am getting this response?

  15. bearded_oneder

    DBAN (Darik’s Boot and Nuke) is a free, easy to use tool, that performs hard drive wipes up to DoD (Department of Defense) specifications. It’s similar to the technique used to destroy data on computers that store secret defense information. Just run the boot disk builder utility, stick the disk in the drive of the computer in question, reboot and follow the on screen instructions. You can download it here …

  16. Dan

    Here’s some advice on using geek squad if you’re computer literate enough to be posting and reading comments on this web site. Don’t. And as for their use of “clean rooms”, most of their techs don’t even bother with discharging electricity.

  17. Thor West

    I read your comment about a large magnet not being effective at erasing a hard drive. I have one of those “lift an outboard motor” magnets. I was hoping it would erase a notebook drive I have to return to H.P. because it failed. Because it had failed I was unable to use a program to erase it. I obviously can’t damage it because they want it back (or I pay for a new one – even though the in-warranty replacement they sent was apparently used (scratched). I have a lot of pesonnal info on it so I’ll try the magnet anyway – and hope for the best.
    Thank you,

  18. Gordon

    With regards to using magnets to erase your files. Even if you have a powerful degausser, if you want to give the drive away or have it usable afterwards, don’t use a magnet. The manufacturer stores important data on the disk for the drive itself to function. Erasing that will render the drive unusable.

    Also, it takes a strong magnetic field inside the drive to actually erase the data on the disk. Even magnets that you or I consider very strong typically don’t project the magnetic field strongly enough far away from it’s surface. And by far away, I mean about half an inch.

  19. Greg D

    Empty your trash bin and the space will then show up on your pie chart. When you delete something, it doesn’t free up your space until you empty the recycle bin.

    • Jack Rodgers

      Emptying the trash only removes the addresses of the files in the trash. The files remain on the hard drive just as they were. This is why recovery programs can recover ‘deleted’ files. Also, bits and pieces of files may be left behind in the sectors used by new files.

      Emptying the trash is a superficial method of making files disappear from the folders and their space available for storing new data.

      True deletion of the data is the purpose of this web page and making deleted data unrecoverable by anyone.

  20. Sean

    quote”what is about the DD command, “
    if you’re using dd, it’d be better to use urandom rather than null as you input file and do it a few of times

  21. digo

    Here is what I do, to delete my Ex: nakedPic.jpg: Before deleting it, I look for an innocent picture like: tree.jpg and I rename it nakedPic.jpg.The system tell me that that name already exist and if I want to replace it. I click yes. Now, if I open nakedPic.jpg, I will see a tree instead of my wife’s naked body. Now I delete it. If somebody recover this picture, all they see is a tree. No trace of other picture. You can replace an important doc,txt,jpg,mp3,… for a insignificant doc,txt,jpg,mp3,… save it and delete it after.

    • Jack Rodgers

      I think that you should reconsider your technique. All you do is change the pointer of the file name, you do not overwrite any existing data. Eventually new data might overwrite some or all of that file.

      After deleting that newly named file, it and the first file still are on your hard drive since the OS does not overwrite data when it deletes the address in the directory, it only deletes the directory entry. Both files can be recovered unless their data has been overwritten.

  22. Leo A. Notenboom

    Hash: SHA1

    For the record, it’s quite possible to reconstruct the
    original picture even after you’ve “deleted” it the way you
    describe. The actual data on the hard disk has not been
    erased by your actions. It’s not easy to recover, but to
    someone dedicated enough to the task it might be.


    Version: GnuPG v1.4.7 (MingW32)


  23. Bob

    I tried to run format c:/u and it’s asking me for the volume label for drive c but I do not know what that is. How do I find it?

  24. Leo A. Notenboom

    Hash: SHA1

    Before you do the format do a “Dir C:” – the result will
    start with something like this:

    Volume in drive C is XXXXXX

    where XXXXXX is replaced by the volume label for that drive.


    Version: GnuPG v1.4.7 (MingW32)


  25. Leo A. Notenboom

    Hash: SHA1

    Yes and no. But 99.99999% yes :-)

    The “problem” is that seriously advanced, expensive and time
    consuming techniques could, perhaps, recover data everywhere
    there’s not a hole in the disk platters. It’s HIGHLY
    UNLIKELY – more like the stuff of spy movies and bad TV
    shows – but remotely possible.

    For all practical purposes, though, drilling a few holes
    works just great. :-)


    Version: GnuPG v1.4.7 (MingW32)


  26. Gordon Ashe

    It’s easy to securely erase your hard drive. First, simply perform an erase on the entire drive (no need to really erase anything – just makes the allocation table identify everything as unused space) then copy other information that you don’t care about onto the drive until it is full). And the simplest way to do this, is to copy very large files, I would recommend movie files (ATI, WMV, MPG etc etc) and you can even copy the same file many times provided you give it a different name, otherwise it will just keep overwriting the same disk space. If you are still paranoid, then do this

    (1) do a full, low-level format
    (2) fill the disk up with junk
    (3) do another full, low-level format

  27. Leo

    Hash: SHA1

    There’s a space between format and /c.


    Version: GnuPG v1.4.7 (MingW32)


  28. vish

    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:

  29. Mobius

    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.

  30. Leo

    Hash: SHA1

    DBAN is Darik’s Boot and Nuke available at – and yes, it’s another good


    Version: GnuPG v1.4.7 (MingW32)


  31. 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.

  32. Leo

    Hash: SHA1

    Erasing your hard disk does NOT erase your BIOS.


    Version: GnuPG v1.4.7 (MingW32)


  33. Simon

    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. :-)


  34. Simon

    >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 😉

  35. Tim Carter

    To erase the data on my old hard drives, I strip out the hard drive from the computer and then use a screwdriver to open the hard-drive case. I then light up my acetylene torch and cook the actual platter.

    Within a few moments, it’s melted and virtually destroyed. I can’t believe for a second that any data is still there.

    I also have a giant magnet that weighs about 20 pounds. I’ve often wondered what might happen if I put it in contact with the platter.

    Yep, like I said in this article, I’m partial to a drill press myself. (Though I recently posted a new article recommending DBAN – Darik’s Boot And Nuke, a tool for securely erasing hard drive contents without actually destroying the drive.

    (BTW: Tim’s a friend, and posts less destructive home-improvement tips over at Ask The Builder.)

    – Leo
  36. sandy

    I have gone to c: and put in “format/u”. It keeps telling me I have wrong or missing parameters… Please help I am trying to erase a hard drive so that I may give the computer to someone else. Thanks

    You must tell it what drive to format: “Format D: /u” for example.

    – Leo
  37. Barrh

    Does formatting the hard-drive during reinstallation of the operating system via the original CD (vista or XP) adequately erase the HD

    Depends on what you consider “adequate”. I consider it enough, as long as it’s not a “quick” format.

    – Leo
  38. Sethgo

    Hi! I have a failing external hard drive that I want to give to a local computer recycling center. I want to do this safely and I’m wondering if I can use a bulk eraser – the kind that radio stations used to use to erase reels of audio tape? Thanks.

    I wouldn’t. The hard disk media is more protected – by its case if nothing else – than bulk audio tape. Those magnets are still not strong enough to penetrate the case and layers of platters in the drive.

    – Leo
  39. Ed

    Dear Leo,
    Great info here about wiping a drive. I’ve got two older HP laptops I’d like to sell, but they don’t work, so I have to either sell ’em without the HD, or wipe the drives by other means. I have access to some huge magnets (think “MRI”)and I’ll do it that way. I know it might not be enough, and I know that I won’t even be able to know that, but I’ll take the risk (I’m not too paranoid)
    My question: Assuming I can successfully scramble the drive, should that drive be able to be reformated by the new owner?


  40. Jeff

    Now that I have erased my HDD how do I get the new OS to install?
    When I insert the Windows or Linux install disc, it gives disc error and will not load. I have used a partition floppy to install a MBR partition but the OS will not start.

  41. Brian

    I am trying to wipe my hard drive as i have a worm and my comp is shutting down every half hour or so i tried to format it and reboot from windows disc but nothing works i have tried webroot washer also but nothing seems to boot when i switch on can you help please

  42. James

    Formatting Doesn’t Erase the Data,it can still be recovered.Use a Program called “Dban” which Overwrites the data with Random data several times…rendering it USELESS!!!
    It’s an Iso Image file,so you have to get a free program like “BurnAware” and burn the file to a Cd-r or Dvd-r.And boot it from System Start up.
    This goes to Jeff,the System might be too infected to just format,you might want to wipe the drive all together and then try to re-install Windows.


  43. renardo

    WHEN I TrY TO FORMAT THE HARD DRIVE, I GET A Message that” says format cannot run because the volume is in use by another process , format may run if this volume is dismounted first, would you like to force a dismount” Then “cannot lock the drive volume is still in use”

  44. Nancy Johnson

    Formatting and deleting the data from the hard drive does not removes the data completely from the hard drive. It can be recovered easily using any recovery software, so removing the data in that manner will not be safe.

    So, to remove the data completely from the hard disk any special softwre is required and Wipe Mac is simply perfect which I used as well. It removes the data at changes the hard disk format in its native state that is to 0 and 1. I am sure it will help you out as well.

  45. cjwolfer

    ya i would use dban’s boot and nuke which will render anything that was on on the hard drive useless and plus all u have to do is put it on a disk boot off the disk confirm that you really wana get rid of everything and let it do its thing

  46. Patti

    i have a laptop that the screen is broken on. i want to erase the hard drive, but cant see anything to do it. i used to work at a drs office that has an MRI, if i have them put it in the room while its one will it do the trick? if so, how long should it be in there and how close? thanx!

    I think you risk damaging the MRI (there’s a reason they say NO METAL). I’d remove the drive and perhaps use another machine to wipe it.


  47. Seth Brown

    Long-time fan, first time caller . ..

    If you are looking to erase and recycle your laptop, we offer a free and secure service at

    Please support our goal of keeping laptops and smartphones out of landfills. Our goal is to be sure your personal information is completely erased in the process.

    Thanks for the great article and many years of excellent computer advice Leo, you are a legend!

  48. james kingston

    Yeah it is very imp to delete all the sensitive data b4 u get rid of ur hard drive.The simplest way to do this is by formattng the drive…but that too may not delete all the data and there are always chances to recover them.I can suggest you 1 tool that will remove all ur data permanently forever and no other tool can also be able to recover it.Advanced System Optimizer…there is this tool named Secure Delete in ASO that does the permanent deletion of the data…but be cautious once the data removed can not be recovered anyhow.
    its free version is also available at cnet

  49. Chris Hansen

    I had reformatted a hard drive for someone and reinstalled windows xp. Then my friend tells me his wife wanted music and pictures on it. I could not retrieve them. So, after some researching I bought a program for $70.00 called Power Data Recovery that retrieved all formatted data to an external hard drive as long as the original data was not rewritten over. I was able to retrieve all her pictures and music. Then I burned them all to 2 DVD’s for her (or it would have been like 6 cdr’s). So,yes, it is possible with the right tools to retrieve data unless it is completely rewritten over with a data destroying program.

  50. C Gebele

    I removed the hard drive, the mother board is fried, what can be discovered on the RAM?
    We are selling it with full disclosure. We figure the buyers want the parts, screen, etc. We were suprised that anyone wants this stuff, but happy to keep it out of a landfill.

    Nothing. RAM is completely erased within seconds of removing the power to the machine.


  51. Jimmy G

    While I enjoy taking power tools to my redundant electronics (who doesn’t?!), I can recommend this company’s Data Destruction services for anyone who needs it done in a more sustainable fashion.


  52. ashish

    its is very easy to recover data even after it is format. most secure way is to download a software which provide complete delete.

  53. Albert Shurgalla

    Formatting a drive will NOT I repeat will NOT destroy files on the drive even if it is an unconditional format.

    The proper way is to overwrite each and every sector on the drive with random data. Once is enough for all but perhaps an intelligence agency to recover BUT there is a defense department method that uses rewriting seven times with different data that will ensure even the NSA won’t be able to do it.

    A free software that does all of the above is available here:

  54. Rick S

    I am NOT an expert it’s just a hobby to me.
    A fellow brought is hard drive to me and said I could have it if I did a complete format infront of him. I did the complete format then overwrote it with a large Linux OS then formatted it again then overwrote it with a different OS then formatted it again. Then I installed an OS system on it so I don’t think anybody is going anything off that thing. Besides nobody knows where the thing is. Not even me, It’s in somebody’s computer and I don’t keep track of that stuff. Poor mans method. lol. PS. Make sure you overwrite the WHOLE hard drive.

  55. menja

    Just Reinstall windows

    Unfortunately that won’t overwrite the entire disk, and thus will leave things potentially recoverable from the free space that remains after the installation.


  56. guest1

    If you are *really* concerned, a secure way to do this would be to encrypt it before reformatting it. This will make it impossible to recover the information. This is what I would do:

    1. install truecrypt from

    2. encrypt your entire hard drive using twofish, Serpent and AES and a 65 character password

    3. use a strong password like this: NGeiiyQvCzUkgbDUhH@MKorEgD&j%$XHNDJlSKxN!Q#ZhGGBLg$vfrRPTxAu#a&xn

    4. reformat the hard drive

    5. burn piece of paper you wrote the password on

    I know that is overkill but if you are concerned with the data being recovered after holes are drilled in it, this should technically be more secure.

    • a

      i think you would have to run the encryption app from a liveboot OS (liveUsb, LiveCD, etc) or booting an OS from another drive.

      However, i suspect encrypting the whole target drive costs a larger processing expense than writing random data over the whole target drive.
      I also think that technically, encryption produces data that possesses a pattern (some meaning, in the philosophical sense). And even large ‘key’ and ‘password’ is finitely crackable.
      Writing random data produces data that is patternless (meaningless) in its essence.

      Comparing… random write-over seems cheaper and more effective.

  57. Abraham

    If you want to really destroy the information, you dissasemble the HD, take out the disks, and pass some sand paper on them…

  58. Wade K Waldron

    What about using fdisk? does win 95+ (98-win 8) still have it> Will that work (not as good as drill press) but still work than reformat?
    I used to use Fdisk then format then install whatever I could and do it again about 3 times then just fdisk and install the basic OS.

  59. Ken B

    It goes without saying (okay, it _should_ go without saying, but I’ll say it anyway), but…

    If you don’t have original install media, see if you can make an install/recovery set of media _before_ you nuke the drive. In fact, even if you _do_ have media, see if there is a way to make an additional set.

    Also, if it’s not printed on the side of the computer (and sometimes Windows has been upgraded to a version other than the one on the sticker), you should use a utility such as Belarc Advisor — — which can tell you the key for not only Windows itself, but most applications you have installed. Again, once you’ve nuked the drive, this information is gone.

    Finally, make sure you have backups of anything you might want to keep and/or move to a new computer.

  60. Ralph

    What ever happened to the bios format? I remember on older machines the Bios setup used to have a format. It doesn’t anymore it seems.

    I don’t recall BIOS’s ever having a format option.


  61. Tom Dees

    I have donated many PC’s/laptops over the years and my philosophy is this, simply remove your drive and install a NEW one! Hard drives are cheap. Maybe not so much for laptop drives depending on the size. But for piece of mind it’s well worth the added expense. I also would like to think that what I donate is not merely a worn out piece of junk but a machine that someone can rely on for a reasonable amount of time. One last point regarding computer donations and perhaps the most important. Know who you are donating to so you know your donation is not just being resold for profit. Especially in the case of laptops! We started a program at my church to recycle computers and I was stunned at the number of machines which started coming in. We started out with several of us getting together once a month to go through the machines. However there were so many we couldn’t keep up. So we recruited the youth groups to help. It gives these kids hands on hardware experience and they also teach us old farts a thing or two. It has been a very rewarding experience and everybody wins!

  62. Art Yaffe

    On a paranoia scale of 1 to 5, you’re a 5 if you overwrite the entire drive several times, then disassemble it, saw the platters into several pieces, and discard the pieces one every month over a large geographic area so they’re not all in the same landfill.

    I am a 2 on that paranoia scale. I use a run-from-cd version of linux to erase the data.

    >dd if=/dev/zero of=/dev/xxx bs=1M
    (xxx represents the drive id, usually sda but not always.)

    This leaves the drive more empty than when it was shipped from the factory, but the manufacturer’s low-level drive info (like the serial number) is still there and the drive is formattable and usable. Theoretically, data could be recovered from the drive using hi-tech sophisticated forensics, but not by the average computer user or even a tech-geek like me, and the folks who could do it wouldn’t waste their time recovering my data.

  63. Mark J

    When I sold a laptop on ebay, I formatted it (full format from a live Windows CD). Then I reinstalled the OS from the original recovery disk that came with the computer.

  64. Bill Wright

    The way Leo writes it, “DBAN will automatically and completely delete the contents of any hard disk that it detects.”, once you boot from your DBAN CD, it will erase every hard drive on your system! Let’s hope he doesn’t mean this, and that DBAN asks you which drive to erase. Meantime, though, I would not yet dare to try DBAN. As a constructive further comment, if you have replaced (say) a flakey C-drive, and want to erase it after replacing it with a new one, put the old drive in a USB enclosure (e.g. NexStar-CX, about $50) and (assuming DBAN lets you select the drive) erase it in there.

    I was actually quoting the DBAN web site. There is, in fact, an option to do exactly that: automatically erase everything it finds.

  65. Anice King

    I want to donate my old computer,I used Gutton eraser and it ran for 48 hours. I was told that it also erased the windows vista ,and it wouldn’t be any good.And i don’t have the windows cd.would that be true.I thought you could use a pc monitor with any cpu My knowledge of computer is limited,so not sure if the man was telling me the truth.

    • a

      AFAIK, on most big brand computers, Vista and later has a “run once” program to backup Windows (of the the new computer) to 2 or 3 DVDs.

      Normally, at any time, you can restore Windows from a “recovery partition”.
      If you wiped the whole drive, you wiped the recovery partition too.

  66. Connie

    Certainly seems likely that the eraser program deleted everything off the disk, including the operating system. It’s unfortunate that you do not have the re-installation media. The computer is still good though. It’s just that the new owner will have to get an operating system going on it, and find any necessary drivers.

    One thing that many people do is install a non-microsoft operating system in a case like this. Ubuntu is a good choice. So go ahead and give away the computer, and refer them to this article on Ask Leo!

    should I convert to Linux?

  67. Ken in San Jose

    7 years ago after buying a new HP notebook the drive died after just 6 months. The people at HP talked me through trouble shooting the drive and decided it had died, and sent me a new drive, free. I only needed to return the dead drive. Not being able to format the drive, I took a strong magnet and sat it on the drive for several hours. I don’t know if this worked, but it was the best solution I could come up with.

  68. Mark Jacobs

    That magnet probably did nothing, but if you haven’t had any problems 7 years later you’re probably OK. HP probably immediately destroyed the drive pretty quickly anyway. It’s unlikely they would go to the expense of trying to recover the data as it would have no value to them. Sometimes, unfortunately, we’re forced to trust the people who fix our computers. Our data is exposed whenever we bring our computer to a tech for repairs. If you have sensitive data you might want to think about using Truecrypt. Otherwise, after the fact, as Leo said, drilling through the drive may be our best alternative.

  69. Jeff R

    Do you know if a degaussing coil has sufficient strength to erase date on a hard drive? I worked in TV repair years ago and used this regularly to degauss(or rearrange) the magnetic properties of
    old CRTs? I am looking for a quick fix obviously, but this may determine whether I donate or recycle. Thanks!

    To the best of my knowledge degausing coils (and large magnets) do not have sufficient power to erase today’s hard disks. Reformat or use a tool like DBaN to erase the hard drive before donating.

  70. Michael

    I’m looking to sell an alienware computer, which has the hard drive formatted for RAID (I’m still not entirely sure what this means). Anyway, I tried to use Dban and RAID hard drives aren’t supported. I’ve already used my alienware respawn disks just to get the ball rolling. How can I completely erase all my personal information and get by this unsupported Dban problem?

  71. James

    It’s probably too late now but you need to open the BIOS and change the SATA mode to IDE then erase each disk. You can then change it back to RAID in the BIOS to reinstall using recovery disk or system image but you may need to recreate the RAID.

  72. Rihana.

    Can anyone help me urgently? I had some sensitive data in pendrive, that i have overwritten now but i am scared by the recovery tools that pretend to recover even overwritten data. So should i also use Dban?? I am giving pendrive to someone, please help me. If i only want to use Dban for USB flash drive, not for hard disk, would it work?? Please answere my few questions , i want to wipe pendrive permanently so that nothing can be recovered.

  73. Mark Jacobs

    Dban isn’t for wiping a pen drive. Dban nukes all of the drives attached to your computer, so it would also wipe out your hard drive. A good program for wiping an external drive such as a pen drive is CCleaner. On CCleaner’s tool menu there is a function to wipe an entire drive.
    Ask Leo! article on CCleaner

  74. Jani Lehtinen

    ErAce is good software to shred hard drive to meet even strict security standards. It can be found free from

    • It’s easy to overlook that encrypting needs to be done from day 1 – meaning that sensitive data should always have been encrypted. It’s unclear whether taking a drive that is 100% full of sensitive unencrypted data, and then encrypting it all before securely erasing would actually sidestep the problem. Also worth noting that traditional magnetic hard drives don’t have this issue. A traditional multi-pass wipe should work. Encryption of course adds an additional layer of security. (And it’s pretty bizarre that SSDs do what they do – I’m still not sure I totally “get” it.)

      And finally, for most people a standard secure wipe will do. Unless someone is taking forensic tools to your data it’s rarely an issue as long as you just format or wipe the drive, even once.

  75. amybaby

    I need to return a faulty laptop for refund in next few days. It is only 3 mths old and recently had motherboard replaced. The only sensitive data would be some passwords. Should I wipe the HD? If I do, will I be liable for any charges if I leave no OS. I do not have any disks so wouldnt be able to reinstall windows and not sure I would know how.

    • Because the article also includes this line: “(This is an update to an article originally published December 24, 2004.)”

  76. jensson

    I have used low cost ErAce. It lets you to determine overwrite times. And works on any Windows computers. It also works on SATA, IDE, SCSI, USB drives

  77. Victor Oliveira

    Hello Leo,
    My name is Victor, 45 y/o, Portuguese. Don’t know if you have anything published about flash drives security. I would like to know your opinion (if you have one) on this. I work with very sensitive info and I’m always afraid that if I lose any of my pen drives, falls in competition hands and they find my password… I’m (sort to speak) doomed….
    I’m thinking to purchase the “Ironkey D80” that seems to be… if the access fails it automatically overwrite the full existing content. The reason of my contact is because I’m not too sure that this will be so effective as they say and would like to know if you have any option about this or can recommend better solution. I apologize if you already have a thread posted about this, if this is the case I’ll be happy to receive the link.
    Thank you for your attention,
    Kindest regards,
    Victor Oliveira
    17H17 GMT

  78. ojiako promise

    please sir i need the answer now. what happens to a DVD disk drive when when its content is erased and replaced with another

  79. Virginia Lee

    I took the hard drive out of my HP laptop computer. I want to do this because before I donate the laptop. Will some get it and put in a hard drive and see my files? The computer crashed so I cannot delete anything at this time.

    Thank you

    • Connie

      Your files are on the hard drive, so there is no way anyone can access them if the hard drive is gone. However, do keep in mind that if you give the computer away without a hard drive or operating system it is not much use to the person you are giving it to. They might not want it then. So you should explore a few different options before moving forward.

  80. Jess

    Hello ok I didn’t see this question I apologize if it was there. I need to deep clean my lenovo y430 laptop it came with vista installed is there anyway I can do this and keep vista on there? I am not giving it away or getting rid of it so it doesn’t have to be wiped yet but alot of programs on it and its slower than molasses.

    • It depends on what you mean by “deep clean”. You can try a repair reinstall, but a true deep clean means a real reinstall which would wipe everything and you’d need to reinstall all your programs.

Leave a reply:

Before commenting please:

  • Read the article. Seriously. You'd be shocked at how many people make comments that prove they didn't.
  • Comment only on the article. If you have a new, unrelated question start with the search box at the top of the page.
  • Don't post personal information. Email addresses, phone numbers and such will be removed.

VERY IMPORTANT: because of a rise in comment spam that's making it through our filters any comments that do not add to the discussion - typically off topic or content-free comments - run a very high risk of being flagged as spam and removed.

If you have a new question unrelated to the article above, ask it on the Ask Leo! ask-a-question page.

Your email address will not be published. Required fields are marked *