There are two ways to start the Recovery Console:
- If you cannot start your Windows and the Recovery Console has not been installed on your computer before, you can run the Recovery Console from your Setup CD.
Click "How to use the Recovery Console" for detailed information.
- Alternative, you can install the Recovery Console on your computer to make it available in case that you cannot restart Windows. You can then select the Recovery Console option from the list of available operating systems on startup.
Click "How to install the Recovery Console" for detailed information.
Guided Help to install and to use the Recovery Console
The actions that this Guided Help performs cannot be undone after Guided Help is finished.
- You must be running Windows XP Home Edition, Windows XP Professional, Windows XP Media Center Edition, or Windows XP Tablet PC Edition to use this Guided Help.
- You must be logged on to Windows by using a computer administrator account to use this Guided Help.
Download Guided Help .
Although you can run the Recovery Console by starting directly from the Windows XP CD, generally, it is more convenient to set it up as a startup option on your startup menu. To run the Recover Console directly from the CD, see the "How to use the Recovery Console" section.
To install the Recovery Console, follow these steps:
- Insert the Windows XP CD into the CD drive.
- Click Start, and then click Run.
- In the Open box, type
d:\i386\winnt32.exe /cmdconswhere d is the drive letter for the CD drive. For Microsoft Windows XP Professional x64 Edition, type d:\amd64\winnt32.exe /cmdcons where d is the drive letter for the CD drive.
- A Windows Setup Dialog Box appears. The Windows Setup Dialog Box describes the Recovery Console option. To confirm the installation, click Yes. (The screen shot for this step is listed below).
- Restart the computer. The next time that you start your computer, "Microsoft Windows Recovery Console" appears on the startup menu. (The screen shot for this step is listed below).
Note You may receive an error message that is similar the following:
You receive an error message if you try to install the Recovery Console on a Microsoft Windows XP Service Pack 2-based computer
If you cannot start your Windows, you can run the Recovery Console from the Windows XP startup disks or the Windows XP CD-ROM.
After Windows XP is installed on your computer, to start the computer and use the Recovery Console. The Windows XP startup disks or the Windows XP CD-ROM are required.
For more information about how to create Startup disks for Windows XP (they are not included with Windows XP), click the following article number to view the article in the Microsoft Knowledge Base:
Obtaining Windows XP Setup boot disks
To run the Recovery Console from the Windows XP startup disks or the Windows XP CD-ROM, follow these steps:
- Insert the Windows XP startup disk into the floppy disk drive, or insert the Windows XP CD-ROM into the CD drive, and then restart the computer.
Click to select any options that are required to start the computer from the CD drive if you are prompted.
- When the "Welcome to Setup" screen appears, press R to start the Recovery Console.
- If you have a dual-boot or multiple-boot computer, select the installation that you must access from the Recovery Console.
- When you are prompted, type the Administrator password. If the administrator password is blank, just press ENTER.
- At the command prompt, type the appropriate commands to diagnose and repair your Windows XP installation.
For a list of commands that are available in Recovery Console, type recovery console commands or help at the command prompt, and then press ENTER.
For information about a specific command, type help
commandname at the command prompt, and then press ENTER.
- To exit the Recovery Console and restart the computer, type
exit at the command prompt, and then press ENTER.
How to use the Recovery Console command promptWhen you use the Recovery Console, you are working at a special command prompt instead of the ordinary Windows command prompt. The Recovery Console has its own command interpreter. To enter this command interpreter, you are prompted by Recovery Console to type the local Administrator password.
When the Recovery Console starts, you can press F6 to install a third-party SCSI or RAID driver, in case that you need such a driver to access the hard disk. This prompt works the same as it does during installation of the operating system.
The Recovery Console takes several seconds to start. When the Recovery Console menu appears, a numbered list of the Windows installations on the computer appears. (Generally, only c:\Windows exists.) Press a number before you press ENTER, even when only one entry appears. If you press ENTER without selecting a number, the computer restarts and starts the process again. (The screen shot for this step is listed below).
When you see the prompt for %SystemRoot% (generally C:\Windows), you can start to use the available commands for the Recovery Console.
- Attrib changes attributes on one file or subdirectory.
- Batch executes commands that you specify in the text file, Inputfile. Outputfile holds the output of the commands. If you omit the Outputfile parameter, output appears on the screen.
- Bootcfg modifies the Boot.ini file for boot configuration and recovery.
- CD (Chdir) operates only in the system directories of the current Windows installation, removable media, the root directory of any hard disk partition, or the local installation sources.
- Chkdsk The /p switch runs Chkdsk even if the drive is not flagged as dirty. The
/r switch locates bad sectors and recovers readable information. This switch implies /p. Chkdsk requires Autochk. Chkdsk automatically looks for Autochk.exe in the startup folder. If Chkdsk cannot find the file in the startup folder, it looks for the Windows 2000 Setup CD-ROM. If Chkdsk cannot find the installation CD-ROM, Chkdsk prompts the user for the location of Autochk.exe.
- Cls clears the screen.
- Copy copies one file to a target location. By default, the target cannot be removable media, and you cannot use wildcard characters. Copying a compressed file from the Windows 2000 Setup CD-ROM automatically decompresses the file.
- Del (Delete) deletes one file. Operates within the system directories of the current Windows installation, removable media, the root directory of any hard disk partition, or the local installation sources. By default, you cannot use wildcard characters.
- Dir displays a list of all files, including hidden and system files.
- Disable disables a Windows system service or driver. The variable
service_or_driver is the name of the service or driver that you want to disable. When you use this command to disable a service, the command displays the service's original startup type before it changes the type to SERVICE_DISABLED. Note the original startup type so that you can use the enable command to restart the service.
- Diskpart manages partitions on hard disk volumes. The /add option creates a new partition. The /delete option deletes an existing partition. The variable device is the device name for a new partition (such as \device\harddisk0). The variable drive is the drive letter for a partition that you are deleting (for example, D). Partition is the partition-based name for a partition that you are deleting, (for example: \device\harddisk0\partition1) and can be used instead of the drive variable. The variable size is the size, in megabytes, of a new partition.
- Enable enables a Windows system service or driver. The variable
service_or_driver is the name of the service or driver that you want to enable, and start_type is the startup type for an enabled service. The startup type uses one of the following formats:SERVICE_BOOT_START
- Exit quits the Recovery Console, and then restarts the computer.
- Expand expands a compressed file. The variable source is the file that you want to expand. By default, you cannot use wildcard characters. The variable destination is the directory for the new file. By default, the destination cannot be removable media and cannot be read-only. You can use the attrib command to remove the read-only attribute from the destination directory. The option /f:filespec is required if the source contains more than one file. This option permits wildcard characters. The /y switch disables the overwrite confirmation prompt. The /d switch specifies that the files will not be expanded and displays a directory of the files in the source.
- Fixboot writes a new startup sector on the system partition.
- Fixmbr repairs the startup partition's master boot code. The variable device is an optional name that specifies the device that requires a new Master Boot Record. Omit this variable when the target is the startup device.
- Format formats a disk. The /q switch performs a quick format. The /fs switch specifies the file system.
- Help If you do not use the command variable to specify a command, help lists all the commands that the Recovery Console supports.
- Listsvc displays all available services and drivers on the computer.
- Logon displays detected installations of Windows and requests the local Administrator password for those installations. Use this command to move to another installation or subdirectory.
- Map displays currently active device mappings. Include the arc option to specify the use of Advanced RISC Computing (ARC) paths (the format for Boot.ini) instead of Windows device paths.
- MD (Mkdir) operates only within the system directories of the current Windows installation, removable media, the root directory of any hard disk partition, or the local installation sources.
- More/Type displays the specified text file on screen.
- Rd (Rmdir) operates only within the system directories of the current Windows installation, removable media, the root directory of any hard disk partition, or the local installation sources.
- Ren (Rename) operates only within the system directories of the current Windows installation, removable media, the root directory of any hard disk partition, or the local installation sources. You cannot specify a new drive or path as the target.
- Set displays and sets the Recovery Console environment variables.
- Systemroot sets the current directory to %SystemRoot%.
For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:
How to use Group Policies to add more power to the Recovery Console
For more information about Windows XP Recovery Console, click the following article number to view the article in the Microsoft Knowledge Base:
Description of the Windows XP Recovery Console for advanced users