Chapter 35: Troubleshooting Windows XP
Returning Your System to a Predefined State with System Restore Many people run into trouble with Windows right after they install a new program, upgrade a program to a newer version, or upgrade to a new version of Windows itself. When new program files interfere with the operation of other programs, you may wish that you could undo the installation and put your system back the way it was. Another common occurrence is that Windows' operation and performance degrades over time, and you may wish that you could return it to the way it ran a few weeks or months ago.
Windows XP contains a utility called System Restore, introduced in Windows Me. This program watches your system as you work, noting when program files are installed, changed, or deleted. It keeps a log of these changes for the last one to three weeks (depending on how many changes you make). You can also tell it to take a "snapshot"--a restore point--of the state of the system and store it away. For example, you might want to take a snapshot right after you have installed Windows from scratch, along with all the applications you rely on. Later, if you decide that an installation or some other fault has irreparably damaged your computer's stability, you can tell System Restore that you'd rather return your system to the way it was when you took the restore point snapshot.
When you tell System Restore to create a restore point, it makes copies of the critical files that define how the system works and what applications it is registered to use (the Registry, Windows program files, and other program files). It stores these copies, which are used later to restore the system to that state, in another location on your hard drive.
Not all files are copied, only program files. Your documents aren't stored--System Restore does not take the place of regular backups of the files you create and edit. System Restore does not take your computer back in time, as a product called GoBack from Adaptec (http://www.adaptec.com) claims to do. Under System Restore, all of the nonsystem changes and additions you make will still be there. Even an offending application will still have all of its files available. The important thing is that the system files, including most of the Registry, the central repository for all configuration settings in Windows, are returned to a state prior to the bad change. System Restore restores programs, not documents. It doesn't restore Word documents, Excel spreadsheets, Access databases, text files, Web pages, or files in the My Documents folder.
If you want to make sure that restoring from a restore point won't affect a file, move the file to the My Documents folder. To protect against major damage to your files, be sure to make regular backups. If you use Windows XP Professional, also consider making a Automated System Recovery floppy disk, which can help in restoring your hard disk if Windows is too damaged to run System Restore.
Automatic Restore Points System Restore creates a number of restore points automatically:
- Initial system checkpoint Created the first time you start your computer after installing Windows XP.
- System checkpoints Created every 10 hours that Windows is running or every 24 hours (or as soon thereafter as you run Windows again).
- Program installation checkpoints Created when you install a new program, it records the state of the system just before the installation.
- Windows automatic update restore points Created when you install an update to Windows, it records the state of the system just before the installation.
In addition, you can create a restore point whenever you like, as described in the next two sections.
Running System Restore System Restore is installed and running behind the scenes by default all the time that Windows is running. You can do only two things with it directly:
- Create a restore point for the current state of your system
- Return your system to a previously recorded restore point
To run the System Restore program, choose Start | All Programs | Accessories | Systems Tools | System Restore. You can also run it by choosing Start | Help And Support and clicking Undo Changes To Your Computer With System Restore in the right column (under Pick A Task). If you happen to have the System Information window open (as shown in Figure 35-1), choose Tools | System Restore. No matter how you start it, you see the System Restore window, with two options: Restore My Computer To An Earlier Time and Create A Restore Point. If you've restored your system to a restore point recently, a third option also appears: Undo My Last Restoration.
Configuring System Restore Although System Restore is running all the time by default, you can turn it off. To do so, to make sure that it's turned on, or to change its configuration, follow these steps:
- Click Start, right-click My Computer, and choose Properties from the menu that appears. You see the System Properties window.
- Click the System Restore tab, as shown in Figure 35-4.
Figure 35-4: Configuring System Restore
- 2.Click the Turn Off System Restore On All Drives check box until it contains a check mark if you don't want to be able to use System Restore. Click it until it is empty if you want System Restore runs in the background all the time, creating restore points to which you can return. (We recommend that you leave it running--leave the check box blank.)
- You can control how much space System Restore uses for its restore points. Click a drive in the Available Drives box and click the Settings button to display the Disk Space Usage slider for that drive. Move the slider to specify how much of your hard disk (the disk on which the Windows program file is stored, if you have more than one) may be used to store restore points.
If you have a dual-boot computer and one disk or partition is used only for the program files of another version of Windows, turn off System Restore for that disk or partition. When you are running Windows XP, you shouldn't be changing the files on that disk or partition.
- Click OK on both dialog boxes to save any changes.
System Restore won't run if you have less than 200MB free on your hard disk (the hard disk that contains the Windows system folder, if you have more than one hard disk). It notifies you of the problem and offers to run Disk Cleanup.
Creating a Restore Point You can create a restore point any time you think you are about to make a change to the system that might be risky. It's a good idea to create a restore point when everything is working fine, so you can get your Windows system back to that state again later. A restore point you create is called a manual checkpoint. To create a restore point of your own, follow these steps:
- Choose Start | All Programs | Accessories | Systems Tools | System Restore.
- Select Create A Restore Point and click Next.
- Enter a description of the save point for future reference. If you are installing software immediately after creating the save point, make note of it.
- Click Next. System Restore creates the restore point and asks you to confirm the information about it.
- Read the description to make sure you haven't missed anything. Click Back if you want to change the description you entered. Click OK.
That's it. You've finished. If you need to access System Restore when there's a serious problem that prevents you from restarting your computer normally, reboot into Safe Mode.
Restoring Your System to a Restore Point If your system starts acting strangely, if you get a virus, or if you delete a program file by accident, you can return the program files on your system to the way they were when System Restore created a restore point. Follow these steps:
- Choose Start | All Programs | Accessories | Systems Tools | System Restore.
- Select Restore My Computer To An Earlier Time and click Next.
- You see a calendar of the current month. Days for which there is a restore point appear highlighted. Click a date to see a list of the restore points created on that day (as shown in Figure 35-5).
Figure 35-5: System Restore shows the restore points you can choose from.
- Click the restore point to which you want to return your system and click Next.
- System Restore reminds you to close all other programs before continuing. Do so and click OK.
- System Restore shows the date, time, and description of the restore point you chose for your confirmation. Click Next. The restoration may take a few minutes and includes restarting Windows. When Windows is running again, you see the System Restore window, reporting whether the restore was successful.
- Click OK.
Another way to return your system to a restore point is by starting your computer in Safe Mode. After you log in and before you see the Windows desktop, Windows asks whether you want to run System Restore.
Undoing a Restoration If you return your system to a restore point and it doesn't solve the problem you were facing, you can undo the restoration by following these steps:
- Choose Start | All Programs | Accessories | Systems Tools | System Restore.
- Choose Undo My Last Restoration and click Next.
- System Restore prompts you to close all other programs and confirm the operation that you want to undo. In the process of undoing the restoration, it restarts Windows.