Helping people with computers... one answer at a time.
Sometimes the best approach to resolving an issue, be it a virus or simply software rot, is reformat and reinstall. We'll review the steps.
In many of your answers you talk about "reformat and reinstalling Windows". What is that? How do I do that, exactly?
•
"Reformat and reinstall" is the computer's equivalent of erasing the chalkboard and starting over.
And I do want to emphasize the "erasing" part.
It's conceptually very easy, but also somewhat time consuming.
And if not done with the proper preparation, you could lose absolutely everything on your computer.
•
Reformatting and reinstalling is pretty much exactly what it sounds like:
Reformatting is the process of initializing a hard disk to an empty state. This step deletes everything on your hard drive. Everything.
Reinstalling is the process of copying Windows back on to your hard drive and reconfiguring it to your needs. It also encompasses the fact that you'll also need to reinstall all the application software you use, as well as restoring all the data you might want to continue to have available.
If you have an existing computer that you're about to reformat and reinstall, there's a very important first step:
Back Up
I don't care how - be it an image backup of the entire machine (my preference), or a careful backup of all the files and any other data that you want to keep - but you must do this before you begin. The process we're about to embark on will erase everything from your hard drive.
You'll also need all the installation media for everything you plan to install, including your original Windows installation disk and its product key.
•
There are two basic approaches:
Reformat or erase the disk, and then run Windows setup
Just run Windows Setup, and let it reformat the disk
I'll spend most of my time on the second option, since it's all that most people need.
The first option gets complicated since you can't reformat or completely erase a hard disk that's in use - i.e. if you've booted from it. If you want to take this two-step approach then my tool of choice to erase a hard disk that's been in use is DBAN. Boot from that, erase the disk, and then boot from your Windows installation media to reinstall Windows from scratch.
As it turns out, the Windows setup program can be used to erase or format the hard disk as well; it's just not obvious where in the setup process you can do so. We'll examine it both for Windows Vista, and Windows XP, since they're quite different.
•
Window Vista
Step one is to simply boot from the Windows installation DVD and eventually the Windows Vista Setup program will begin:

You'll then walk through a series of configuration pages:
You'll finally come to this page:

Regardless of whether or not "Upgrade" is available to you, choose Custom.
After a few minutes of examining your system, Windows Vista Setup will then display this page:

This is where you tell Windows Setup on which drive you want Windows installed. Note that the list of drives on your system will likely be different than seen here.
Click on Drive options (advanced):

Note that several additional options are now visible.
First: Make sure to click on the drive or partition you want to erase and on which you want to install windows.
Second: click on Format.

Heed the warning: "If you format this partition, all data stored on it will be permanently deleted."
Press OK, and Windows Setup will format the hard disk partition that you've selected.
After the format is done, you're returned to the drive selection page, where you can click on Next to continue the installation.

•
Window XP
Step one is to simply boot from the Windows installation CD and eventually the Windows XP Setup program will begin:

After accepting the EULA you'll be presented with a list of prior Windows installations:

We want to install a fresh copy of Windows XP, so press the Escape key (ESC).
The next screen shows us the available drives and partitions:

In order to force a reformat, we're going to delete the destination partition and recreate it.
Click on the drive that you want to install to, and press "D":

Press Enter to confirm that you want to delete the partition. Since this is a destructive operation (all information on the partition will be erased), Windows XP Setup asks again, just to be sure:

Press "L" to delete the partition.
Now you've got an unpartitioned hard disk. Windows XP Setup now presents you with the list of drives and partitions again:

Select the unpartitioned space, and type "C" to create a partition. You'll then be asked to enter the size of the new partition:

The default value should be the maximum appropriate for that partition, so simply press ENTER to continue.
Setup returns you to the partition selection screen:

This time what was the unpartitioned space is now "Partition1 [New (Raw)]". Select that and press ENTER.
Windows XP Setup notices that your destination partition is not formatted:

The default is to format using NTFS, which is just fine for more situations. Press ENTER to let the format begin.
Once the formatting is complete, Windows Setup then automatically begins copying files to the newly formatted partition and continues with additional options and selections related to how you would like your new installation to be configured.
Article C3889 - October 14, 2009 « »
January 15, 2011 10:28 AM
Thanks Leo. I have a question though. On the computer I want to reformat and reinstall XP, the disc drive doesn't work. Can I copy the installation CDs onto an external drive and follow the above instructions from there? Can I boot from the external drive? And I assume that the drive's installation files would be deleted from the main hard drive... but I'm not sure what effect this would have.
Thanks for your help!
16-Jan-2011
June 14, 2011 6:36 PM
Thank you Leo
(1) for the helpful answer (2) for constantly reminding us to back up our data in SOME way
I wanted to share a bit about my experience in case it helps someone else, and ask a question...
On April 1st, for some reason (virus?), I was not able to boot Windows XP after a restart--I would get my DELL screen, then my computer would hang on a black screen with just a blinking cursor on the top left. My only options were to hit F2 or F12 before the blank screen, so I eventually decided to re-install Windows using my Dell XP Reinstallation CD. I couldn't even get a DOS prompt, so to avoid getting stuck on the blank screen, I changed the boot sequence to boot from the CD first. From there, I was able to follow the directions in your article.
Question: When I got to the part where I had to delete the drive, I had four items to choose from, and wasn't sure if I should delete all of them. In your article, it says, "Click on the drive that you want to install to and press 'D'." What if there is more than one available drive or partition? How do I know which one to delete? I think I saw drives C, E, and F, (one said "[FAT 32]"). I figured I had nothing to lose, so I reluctantly deleted all of them except for the unpartitioned space. From my description, can you tell me why I had those additional partitions that are not on your screen shots? Was it a bad idea to delete them all, or is that what I was supposed to do?
Fortunately, my computer is running again. The bad news is that I wiped out everything--it was strange to see the ADD/REMOVE programs empty!--but since I had made copies of my personal files, it was actually nice to have a fresh start for my old computer and to be able to add only the programs I wanted.
Anyway, thanks to your constant reminders, I did not permanently lose my files, emails, and projects, and I was able to bring my computer back to life by myself! I read through several solutions online, but it was your explanation and screen shots that made the most sense to me and made me feel comfortable that I was on the right track. Thanks again!
January 11, 2012 6:21 PM
Dear Leo i do not understand Partition is this a seperate part of the disk which will contain the O.S is it really needed ?
Thank you for your excellent article , You are the best Regards Burt
13-Jan-2012
February 28, 2012 8:29 PM
Leo,
I've reformatted numerous times with XP. This week my brother wanted me to upgrade some stuff on his newly acquired (but used) xp machine and I requested the CD to reformat it. He came back to say that another well known computer tech guy (that I highly respect) had said that reformatting wasn't really good because he'd gotten many, many machines that "wanna be" computer techs had reformatted only to cause huge problems on the machine. I don't know of ever having caused any problems with the ones I've done and I've never heard of reformatting being so terribly complicated that most people completely screw it up. Is there really a significant danger of having messed up a system if it appears correct after a reformat/reinstall?? Are there hidden, not so obvious, things that get messed??
Please advise... Thanks!
February 15, 2013 1:46 AM
For some reason my PC crashed: stating it has lost windows root\system32\hal.dll. file. I have the windows XP recovery CD, but cant get it to run. Is there a way to recover those files? If not how to I go about erasing the hard drive and reinstalling windows XP? Theres no data on the hard drive I care about.:)
•
Comments on this entry are closed.
If you have a question, start by using the search box up at the top of the page - there's a very good chance that your question has already been answered on Ask Leo!.
If you don't find your answer, head out to http://askleo.com/ask to ask your question.