Thursday, November 23, 2017

How to fix NTLDR is missing windows xp

BIOS boot configuration
BIOS boot loader configuration screen

Fix #4: Replace NTLDR and NTDETECT.COM files

Windows XP users can replace the required files for NTLDR to load correctly by using your Windows Installation Disc. The files are named NTLDR and NTDETECT.COM.
Here are the steps to replace these files:
  1. Insert the Windows XP install CD
  2. Restart the computer and boot from the CD
  3. Press any key to boot from the CD
  4. Press R when the Windows Options menu is loaded to access Repair Console
  5. After this step, log into Windows by pressing 1 using the Administrator password
  6. Use the following commands to copy the NTLDR and NTDETECT.COM files from the Windows installation disk to the hard disk:
    copy D:\i386\ntldr C:\
    copy D:\i386\ntdetect.com C:\
    Where D:\ is the install CD’s drive letter and C:\ is the Windows XP partition’s drive letter
  7. Once these files are copied, remove the Windows installation disc from the disc drive
  8. Restart the PC
Here is an example of what the PC’s console output should look like once NTLDR and NTDETECT files are restored correctly:
Replacing ntldr and ntdetect.com files
Replacing ntldr and ntdetect.com files

Fix #5: Rebuild boot.ini file

The next steps are to rebuild the boot.ini file:
  1. Insert the Windows XP install CD
  2. Restart the computer and boot from the CD
  3. Press any key to boot from the CD
  4. Press R when the Windows Options menu is loaded to access Repair Console
  5. After this step, log into Windows by pressing 1 using the Administrator password
  6. Use the following command when Command Prompt appears:
    bootcfg /rebuild
  7. When the systems prompts you about adding an identified Windows installation to the boot list, answer “Y”(Yes)
  8. Enter “Windows XP” as Load Identifier and “/fastdetect” as OS Load Options.
  9. Remove the install CD
  10. Restart your computer
Here is an example of what the PC’s console output should look like once the boot.ini file is properly restored:
Fixing Boot.ini file
Fixing Boot.ini file

Fix #6: Change the bootsector code

On Windows Vista, Windows 7, Windows 8, Windows 8.1, or Windows 10 this error can be fixed by writing a correct BOOTMGR-related boot sector code to the bootable partition.
Here are the steps to write a correct boot sector:
  1. Insert the Windows Vista(or any newer version) install CD
  2. Restart the computer and boot from the CD
  3. Press any key to boot from the CD
  4. Click on Repair your computer after selecting proper language, time and keyboard input.
  5. Select the Windows installation drive, which is usually C:\, and click Next
  6. Choose Command Prompt when the System Recovery Options box appears
  7. Write the following command and press s Enter afterwards:
    bootcfg /rebuild
  8. If the program finds a Windows installation and asks whether it should add it to the boot list, press Y
  9. Remove the install CD
  10. Restart your computer
Here is an example of what the PC’s console output should look like once a boot sector is written correctly:

Writing a correct bootsect code

Fix #7: Delete excess files from root folder

If the PC’s operating system is an old version of Windows XP or Windows 2000 and it has too many files stored in the root folder, booting into the Repair Console from a Windows Installation disk and deleting the files from there is a possible solution.
Here are the steps to delete files from repair console:
  1. Insert the Windows XP install CD
  2. Restart the computer and boot from the CD
  3. Press any key to boot from the CD
  4. Press R when the Windows Options menu is loaded to access Repair Console
  5. After this step, log into Windows by pressing 1 using the Administrator password
  6. Enter the following command when Command Prompt appears to move to the root folder from the default C:\Windows folder:
    cd ..
  7. Enter the following command to display all files in the root folder
    dir
  8. Then, enter the following command to delete the file:
    del [filename]
    Where [filename] is the name of the file to be deleted
  9. Remove the install CD
  10. Restart the PC
Here is an example of what the PC’s console output should look like after a single file is deleted from the root directory:
Deleting a file from command line
Deleting a file from command line
Note that the Windows XP recovery console does not support mass file deletion in the recovery console, so manual file deletion may be a very long and tedious process if there is a lot of them. If that’s the case, it is possible to load from a more modern Windows CD, and use the
del *.* /A-S-H
command to delete all files in the current folder that are not hidden or system files:

Deleting multiple files

0 comments:

Post a Comment