Fix corrupt or missing Windows XP System32 Files Using Recovery Console

If your Windows XP installation  is damaged  or corrupt and you do not have another operating system to boot your computer , you can perform  Repair Install which will restore your corrupted or missing files and fix hal dll and  ntoskrnl.exe files to its original state.

Make sure you have a valid  Windows XP key before proceeding to the next step. The entire process will take approximately thirty minutes or one hour , depending your computer hardware specifications.

How to do the  Repair Install?

  1. Insert your Windows XP installation CD then boot from CD Drive
  2. Choose the Repair mode by pressing  R button
  3. Press the F8 key to proceed to the next step and check “I Agree at the Licensing Agreement”
  4. Choose the destination folder where you will install the original System Files, it’s normally located on folder  C: \ Windows,  the Windows  Repair Install will then start copying files on the folder
  5. Your computer will then automatically restart . Leave the Windows XP installation CD in the CD-ROM .
  6. Next you will see a picture of progress bar  indicating the repair progress
  7. When prompted to enter a key, input your valid Windows XP  key  after which your  computer will restart again.

A. Fix ntoskrnl exe error

If your computer fails to start and pops up the following error message :  “ntoskrnl not found” , do the following procedure:

  1. Insert the Windows XP installation CD and boot from the CD.
  2. Choose Repair option by pressing R key
  3. Choose the location of the installation of Windows you want to repair by pressing  the corresponding number ( normally # 1)
  4. Switch to  the CD drive.
  5. Type the following command  : CD i38 and then type : expand ntkrnlmp.ex_ C: \Windows  System32\ntoskrnl.exe
  6. Done

B. Fix damaged or missing   Windows System32 Config

You can perform the quick-fix bellow if you get an error with the following message :

“Windows Could not Start Because the Following is missing or corrupt files C:\ windows\ system32\ config\ system or  \ windows\ system32\ config\ software “

  1. Insert Windows XP installation CD then boot from CD-ROM
  2. Choose Repair option by pressing R key
  3. Choose the location of the installation of Windows you want to repair by pressing  the corresponding number  ( normally # 1)
  4. Enter the administrator password when prompted to to so.
  5. Type the following command line : delete c:\windows\system32\config\system
  6. Next type : copy c:\windows\repair\SYSTEM c:\windows\system32\config
  7. Eject the CD then type: exit

    C. Fix hal dll

    If your computer fails to restart and you  get an error  message saying that hal.dll file missing or corrupt, it is most likely the boot.ini file is not configured according to its default installation. Just follow the bellow procedure:

    1. Insert Windows XP installation CD then boot from CD Drive
    2. Choose Repair option by pressing R key
    3. Choose the location of the installation of Windows you want to repair by pressing  the corresponding number  ( normally # 1)
    4. Type :  bootcfg / list ( This command line  is to show current configuration of the boot.ini file)
    5. Type:  bootcfg / rebuild (This command is to fix  misconfiguration of the boot.ini file )

    If you properly follow the above repair procedures you should easily be able to fix hal dll and  ntoskrnl exe error.

    Create Windows Automated System Recovery Disk

    Windows  Automated System Recovery (ASR) is actually an expansion to the regular backup-and-restore. It allows for a platform for storing and restoring the Windows operating state, just in case you’re encountered with accidental system or hardware failure. Windows ASR recovers the target system in a two-stage process. The first step, named the boot recovery process, you need a fresh copy of Windows to be momentarily put in on the target machine using original distribution media. The second step, called the OS restore process, restores the data files of a previously saved Windows installation implementing a backup-and-restore application. I  will overwrite some of the files installed by the boot recovery process.

    Windows xp automated system recovery

    Windows XP Home edition users are deprived of this solution  because Windows XP Automated System isn’t provided by Microsoft on their system. Even though that feature are available in the backup utility of Windows XP Home, ASR is only functional in Windows XP Professional.The following steps can create an ASR floppy disk from an ASR backup operation:

    1. In the first step you’re required to Format a 1.44 megabyte (MB) floppy disk and put the disk into the floppy disk drive .
    2. In System Tools, launch the Backup program. Once the Backup and Restore Wizard is shown, click Next.
    3. Click Restore Files and Settings, after which click Next.
    4. In the What to Restore dialog box, choose the media that contains the ASR backup. Verify that the media is inserted.
    5. Expand the Automated System Recovery Backup Set that corresponds to the ASR floppy disk you wish to create.
    6. Expand the 2nd instance of the drive letter that contains the system files. Expand the Windows_folder/Repair folder.
    7. Locate and click the following files from this repair folder: Asr.sif and Asrpnp.sif, and then click Next.
    8. At the Completing Backup or Restore Wizard screen, click Advanced.
    9. When the “Restore” screen shows up, configure the Restore Files to: dialog box to Single Folder, then set the Folder Name dialog box to the root of your floppy drive, for instance, “A:\”.
    10. Click Next. Other options in this wizard are optional and do not impact the transfer of files to the floppy disk. When the wizard is completed, the files are copied to the location which you had earlier specified.

    Windows 7 and Vista ASR

    1. From the Start menu, select Control Panel.
    2. Click Backup and Restore, and then on the left, choose Create a system repair disc.
    3. Select a drive, and then click create disc

    The ASR floppy disk is now ready to use just in case you need to run  Windows  Automated System Recovery restore operation.