We repair Windows by either using the Windows Recovery Console to find, and fix a problem, or to do an in place repair installation.
The former is less destructive (if it is used successfully), while the latter has a better chance of success.
Common sense says try the Recovery Console first, however the Recovery Console may not always the best route to follow. The Recovery Console is a command-line driven interface (much like a Command Prompt window). Not all commands available in a command prompt window are available to you when using the Recovery Console, though the basic commands such as DIR, CD, and DELETE do exist.
If you are not comfortable with a command prompt, the Recovery Console may be intimidating.
To run the Recovery Console, boot the Windows XP distribution CD. After the storage drivers are loaded, setup will load the initial text based setup stage, and display a Welcome to Setup message (FIGURE 1-Figure 1Pressing R starts the Recovery Console process, first by finding all Windows installations.).
FIGURE 1-Figure 1Pressing R starts the Recovery Console process, first by finding all Windows installations.
If you are running the Recovery Console on a notebook computer, be aware that the notebook's CPU power conservation features will not be enabled. On some high-performance notebooks, CPU overheating can occur.
To launch the Recovery Console to repair an existing installation, press R. The Recovery Console starts by searching for compatible installations of Windows. Each installation is found, and listed (Figure 2-The Recovery Console searches the drive, looking for repairable Windows installations. Only one installation was found on this computer.) for selection.
Figure 2-The Recovery Console searches the drive, looking for repairable Windows installations. Only one installation was found on this computer.
The next step in the Recovery Console initialization process is to prompt for the Administrator's password for this installation of Windows. The entered value will be tested against the password stored in the installation's registry.
Once you have successfully entered the Administrator's password, the Recovery Console issues a prompt that is similar to that of a Window's Command Prompt session.
In addition to many the commonly known Command Prompt commands, the Recovery Console adds a few new commands to the list.
Batch allows a text file that contains commands to be executed. If there are a set of commands that must be issued repeatedly (perhaps you are repairing more than one computer), use batch to execute these commands. The inputfile is the file containing the commands. The optional outputfile is the file where the command's output is written. If outputfile is not specified, output is displayed on the console.
The bootcfg command modifies the boot.ini file. The boot.ini file contains bootup information such as multi-boot and debugging options. Parameters for bootcfg are:
· /add -- allows the user to add a windows installation (see scan below), to the boot.ini file.
· /rebuild the entire boot.ini file, prompting for which installations of Windows to add to the boot.ini file.
· /scan all drives for Windows installations. The results m