Repair Boot.ini Using Bootcfg Rebuild in Windows XP

When Windows XP fails to start due to a missing or corrupted boot.ini file, systems frequently display errors such as "Invalid Boot.ini file" or "Windows could not start because of a computer disk hardware configuration problem." This guide outlines the exact procedure for using the Windows XP Recovery Console and the bootcfg /rebuild command to scan hard drives for Windows installations, reconstruct the boot configuration, and restore normal startup functionality.

Step 1: Boot into the Windows XP Recovery Console

  1. Insert the original Windows XP installation CD into the optical drive.
  2. Restart the computer and configure the BIOS/UEFI to boot from the CD-ROM drive if prompted.
  3. When the "Press any key to boot from CD" prompt appears, press any key.
  4. Allow Setup to load the required drivers until the "Welcome to Setup" screen appears.
  5. Press R to launch the Recovery Console.

Step 2: Log into the Windows Installation

  1. The Recovery Console will display detected Windows installations, typically numbered (for example, 1: C:\WINDOWS).
  2. Type the number corresponding to the installation you need to repair and press Enter.
  3. Type the local Administrator account password when prompted and press Enter. If there is no password, simply press Enter.

Step 3: Execute the bootcfg /rebuild Command

  1. At the command prompt (usually C:\WINDOWS>), type:
    bootcfg /rebuild
  2. Press Enter. The utility will scan all connected drives for valid Windows NT, 2000, and XP installations.

Step 4: Configure the Installation Prompts

When the scan completes and finds your Windows XP installation, the system prompts for configuration details:

  1. Add installation to boot list? (Yes/No/All):
    • Type Y and press Enter.
  2. Enter Load Identifier:
    • Enter the name of the operating system as you want it to appear in the boot menu (e.g., Microsoft Windows XP Professional or Microsoft Windows XP Home Edition).
    • Press Enter.
  3. Enter OS Load Options:
    • Type /fastdetect and press Enter. This is the standard parameter used by Windows XP to prevent the system from detecting parallel and serial mice during startup.

Step 5: Restart the Computer

  1. Once returned to the C:\WINDOWS> command prompt, type:
    exit
  2. Press Enter.
  3. Remove the Windows XP installation CD. The computer will reboot and load Windows using the newly created boot.ini file.