Insert the Windows XP installation CD into your computers CD-ROM drive and restart.
You will be prompted to “Press any key to boot from CD…”. Press a key.
Once loaded, the Windows XP setup menu will give you several options. Press the “R” key to repair Windows.
When prompted, selected your Windows installation. In most cases this is “1?. Press enter.
You will then be prompted for your administrator password, enter that password. If you don’t have a password set, just press enter.
Type the following commands, pressing enter after each line. Replace “e:\” with the letter of your CD-ROM drive.
copy e:\i386\ntldr c:\
copy e:\i386\ntdetect.com c:\
fixboot
fixmbr
bootcfg /rebuild
After entering that last line and pressing enter, you will be walked through the process of rebuilding the boot file. Most of the prompts should be self explanatory, but here are a few tips:
The first prompt should ask you to confirm the operating system that was automatically detected. Make sure the detected OS is the operating system you have installed and then type “y” and press enter.
You will also be prompted for a “load identifier”. This is the user friendly name that is displayed when selecting advanced startup options. You can type anything you want here, but it is best to type the full name of the operating system (such as “Windows XP Home Edition).
Eject the CD from your computer. Type “exit” and press enter. Your computer will restart, and this time it should load without displaying an error.