ProblemYour Windows XP computer fails to boot and displays some error messages. You need a way to get it back to life. SolutionIf switching to Safe Mode does not help you solve your startup problem, the next-best solution is to use the Recovery Console. There are two ways to invoke Recovery Console: either boot up Windows XP using the installation CD and choose the option to repair a Windows XP installation, or install the Recovery Console as a boot-up option. The former approach is more common, as users generally do not prepare for disasters. For the latter approach, insert your Windows XP installation disk and issue the following command: > D:\i386\winnt32.exe /cmdcons where D is the CD-ROM drive letter. This will install the Recovery Console as another item in the boot-selection menu that is displayed when you boot up your computer. Once the Recovery Console is invoked, you will see a command-line interface prompting you to select the Windows installation to repair. You would also need to supply the administrator password. Some of the most common tasks you might want to accomplish are listed in the rest of this section. The following commands copy files from the installation CD to the root directory on the hard drive: > copy d:\i386\ntldr c:\ > copy d:\i386\ntdetect.com c:\ The following command will write a new boot sector on your disk: > fixboot c: The following command will write a new master boot record on your hard disk: > fixmbr To get a list of services installed on your system, you can use the following command: > listsvc To start, for instance, the WMI service (just to use an example; you wouldn't necessarily act on this service) at boot time: > enable Wmi SERVICE_BOOT_START To disable that same service: > disable Wmi You can see a list of all available commands by typing Help at the prompt. DiscussionThe Recovery Console is a text-based operating system extension that allows you direct access to the disk on which Windows XP is installed, and similar access to key configuration files and data. It also provides a convenient way around DOS's inability to read NTFS-formatted drives, which is an issue any administrator with trouble-shooting experience has come up against. To use the Recovery Console, you must first set it up. If you are using a working system, it's prudent to go ahead and set the console up; that way, if it fails, using the console is as simple a procedure as selecting it from the startup menu at first boot. To do so, run winnt32 /cmdcons off the installation CD from within Windows. Setup will copy files and modify your boot configuration file to list the Recovery Console as a startup option. Table 19-2 lists all available commands for the Recovery Console.
See AlsoMS KB 296251, "Recovery Console That You Create from a Sysprep Image Does Not Work," and MS KB 258585, "Recovery Console Prompts for Administrator Password Even If Administrator Account Has Been Renamed" Also, BartPE, from http://www.nu2.nu, is a free tool that lets you create a GUI OS with useful system tools. The OS is Windows PE, which Microsoft uses for their installation environment. It takes a little time to set it up, but it's a lot of help when a system crashes. |