Reference is from:
1.Insert the Windows XP bootable CD into the computer and boot the system.
2.When prompted to press any key to boot from the CD, press any key.
3.Once in the Windows XP setup menu press the "R" key to repair Windows.
4.Log into your Windows installation by pressing the "1" key and pressing enter.
5.You will then be prompted for your administrator password, enter that password.
6.Copy the below two files to the root directory of the primary hard drive. In the below example we are copying these files from the CD-ROM drive letter, which in this case is "e." This letter may be different on your computer.
copy e:\i386\ntldr c:\
copy e:\i386\ntdetect.com c:\
7.Once both of these files have been successfully copied, remove the CD from the computer and reboot.
1. Locate your Windows XP/2000 installation disc and place it in your CD/DVD ROM drive. If you don't have this disk, then you cannot proceed further.
2. Restart your computer.
3. When the computer restarts press any key on your keyboard when you are prompted, "Press any key to enter setup." Most computers are configured to boot to another device other than a hard drive. Since the Windows XP/2000 installation disk is bootable, you should see the prompt. However, if you don't see the prompt you may need to change your boot priority in your BIOS. To do so, enter the system BIOS by following the onscreen instructions upon startup. Then navigate to the Boot Priority menu and modify another device, such as a CD-ROM to boot prior to the hard drive. Then reboot your computer.
4. After you have pressed any key, the Windows XP/2000 setup screen will appear. After loading, press the "R" key to repair the Windows installation. The screen will appear black. The computer requests which installation you would like to log in. Generally speaking, press "1" and "Enter." If you have more than one hard drive or more than one partition, the procedure may be different. You must know which hard drive or partition your Windows operating system is installed in. You are subsequently prompted for a password. If you haven't set up one up, you can just leave the query blank and press "Enter." The phrase "c:\WINDOWS>" and a blinking cursor subsequently appear.
5. Type "copy d:\i386\ntldr c:\windows" (without quotes), where "D" is the letter of your CD/DVD ROM drive (your optical drive may be different, especially if you have more than one). Eject the CD from the drive and type "Exit" (without quotes) to restart your computer. The NTLDR file will be copied from the installation disc to your hard drive.