Insider Power Techniques for Microsoft Windows XP (Bpg-Other)

Ideally, solving a problem will require a specific tweak to the system: a registry setting change, a driver upgrade, a program uninstall. But sometimes you need to take more of a “big picture” approach that reverts your system to some previous state in the hope that you’ll leap past the problem and get your system working again. Windows XP offers four tools that enable you to try this approach: Last Known Good Configuration, System Restore, Recovery Console, and reinstalling Windows XP, which should be used in that order. The next four sections discuss these tools.

Booting Using the Last Known Good Configuration

Each time Windows XP starts successfully in normally mode, the system makes a note of which control set (the system’s drivers and hardware configuration) was used. Specifically, it enters a value in the following registry key:

HKLM\SYSTEM\Select\LastKnownGood

For example, if this value is 1, it means that control set 1 was used to start Windows XP successfully:

HKLM\SYSTEM\ControlSet001

If you make driver or hardware changes and then find that the system won’t start, you can have Windows XP load using the control set that worked the last time (that is, the control set that doesn’t include your most recent hardware changes). This is called the Last Known Good Configuration, and the theory is that by using the previous working configuration, your system should start since it’s bypassing the changes that caused the problem. Here’s how to start Windows XP using the last known good configuration:

  1. Restart your computer.

  2. When the OS Choices menu appears, press F8 to display the Windows Advanced Options menu. (If your system doesn’t display the OS Choices menu, press F8 immediately after your system finishes the Power-On Self Test, which is usually indicated by a single beep.)

  3. Select the Last Known Good Configuration option.

Recovering Using System Restore

The Last Known Good Configuration is most useful when your computer won’t start and you suspect that a hardware change is causing the problem. You might think that you can also use the Last Known Good Configuration if Windows XP starts but is unstable, and you suspect a hardware change is causing the glitch. Unfortunately, that won’t work because once you start Windows XP successfully in normal mode, the hardware change is added to the Last Known Good Configuration. To revert the system to a previous configuration when you can start Windows XP successfully, you need to use the System Restore feature.

We show you how to use System Restore to set restore points in Chapter 12. Remember, too, that Windows XP creates automatic restore points each day and when you perform certain actions (such as installing an uncertified device driver). To revert your system to a restore point, follow these steps:

  1. Select Start, All Programs, Accessories, System Tools, System Restore.

  2. Make sure the Restore My Computer To An Earlier Time option is selected and click Next. The Select A Restore Point window appears, as shown in Figure 13-2.

    Figure 13-2: Use the Select A Restore Point window to choose the restore point you want to revert to.

  3. Use the calendar to click the date on which the restore point was made. System Restore displays that day’s restore points in a box to the right of the calendar.

  4. Click the restore point you want to restore. (Note that the System Checkpoint items are the restore points created automatically.)

  5. Click Next. System Restore asks you to close all open programs and warns you not to do anything with your computer until the restoration is done.

  6. Click Next. System Restore begins reverting to the restore point. When it’s done, it restarts your computer and displays the Restoration Complete window.

  7. Click OK.

    Insider Secret

    System Restore is available in safe mode. So if Windows XP won’t start properly, and if using the Last Known Good Configuration doesn’t work, perform a safe mode startup and run System Restore from there.

Recovering Using the Recovery Console

If Windows XP won’t start normally, your first troubleshooting step is almost always to start the system in safe mode. Once you make it to Windows XP, you can then investigate the problem and make the necessary changes (such as disabling or rolling back a device driver). But what if your system won’t even start in safe mode?

Your next step should be booting with the Last Known Good Configuration. And if that doesn’t work either? Don’t worry, there’s still hope in the form of the Recovery Console, a command-line tool that enables you to launch recovery tools, stop and start services, access files, and replace corrupted system files. Here’s how to use it:

  1. Insert the Windows XP Professional CD-ROM.

  2. Restart your computer. If your system prompts you to boot from the CD, press the required key or key combination.

    Tip

    If your system won’t boot from the Windows XP CD, you need to adjust the system’s BIOS settings to allow this. Restart the computer and look for a startup message that prompts you to press a key or key combination to modify the BIOS settings (which might be called Setup or something similar). Find the boot options and either enable a CD-based boot or make sure the option to boot from the CD comes before the option to boot from the hard disk. Note that many Intel motherboards designed for the P4 processor require that you open the computer and move a jumper to enable access to the BIOS settings. (However, most of these machines will allow you to choose a boot device from a list of supported devices if you hold down the F8 key during the BIOS self-check during boot.)

  3. When the Windows XP Professional Setup, Welcome To Setup screen appears, press R to choose the To Repair A Windows XP Installation Using Recovery Console option. The Recovery Console displays a list of the Windows installations on your computer.

  4. Type the number that corresponds to your main Windows XP installation and press Enter. The Recovery Console prompts you to enter the Administrator password.

  5. Type the password and press Enter. The Recovery Console command-line prompt appears.

The Recovery Console is similar to the Windows XP command prompt, but it offers only limited access to the files and folders: the %SystemRoot% folder; the root folder of any partition; and the contents of any floppy disk, CD-ROM, or other removable disk.

Here are some troubleshooting notes to bear in mind when working at the Recovery Console:

Reinstalling Windows XP

If you can’t get Windows XP back on its feet using the Recovery Console, you may be able to fix things by reinstalling Windows XP over the existing installation. This won’t affect your data or any personal settings you’ve adjusted, but it may cure what’s ailing Windows XP either by reverting the system to its default settings or by installing fresh copies of corrupted system files. Here are the steps to follow to reinstall Windows XP:

  1. Insert the Windows XP Professional CD-ROM.

  2. Restart your computer. If your system prompts you to boot from the CD, press the required key or key combination.

  3. When the Windows XP Professional Setup, Welcome To Setup screen appears, press Enter to choose the To Set Up Windows XP Now option.

  4. When the Licensing Agreement appears, press F8 to accept it. Setup then displays a list of Windows XP installations on your computer.

  5. If you have more one Windows XP installation, select the one you want to fix.

  6. Press R to choose the To Repair The Selected Windows XP Installation option.

Recovering Using Automated System Recovery

If nothing can get Windows XP up and running again, you have no choice but to start with a clean slate. This means either formatting the %SystemDrive% partition or, if hard disk errors are the culprit, replacing your hard disk. This will be less catastrophic if you followed our advice and used the Automated System Recovery Preparation Wizard to make backups of your system files (see Chapter 12). If so, here are the steps to follow to recover your system:

  1. Insert the Windows XP Professional CD-ROM.

  2. Restart your computer. If your system prompts you to boot from the CD, press the required key or key combination. Watch the bottom of the screen for the following prompt:

    Press F2 to run Automated System Recovery (ASR)...

  3. Press F2. Setup asks you to insert the ASR disk.

  4. Insert the disk and then press any key. Setup continues the Windows XP installation. Note that, along the way, Setup automatically formats the %SystemDrive% partition.

From here, the Setup program proceeds normally, except that it uses the information on the ASR disk to restore your system files and settings from the backup you made using the ASR Preparation Wizard. If you also backed up your application and data files, use the Backup Utility to restore those now.

Категории