Tuesday, 25 October 2011

Repair boot loader / MBR windows 7

If your mbr or boot loader is missing or broken ,you can use your windows 7 installation dvd or system repair disc to fix your boot loader and mbr.

1.Boot from your windows 7 installation dvd or system repair disc

2.Press any key when prompted

3.Select a language, a time, a currency, a keyboard or an input method, and then click Next.


4.Click Repair your computer.



5.In the next window,select Windows 7 ,then click Next



6.In the System Recovery Options window, click Command Prompt



7.In the command line ,type the below 2 commands and press Enter one by one
bootrec /fixmbr
 
bootrec /fixboot
 


8.Click Restart to reboot your PC,then you should can get your boot loader / mbr repaired.

9.(Optional)If you dual boot your windows 7 with Windows xp,you need to use bcdedit to add Windows xp to your boot loader.

a)Open an elevated command prompt.

b)Type the following command,assume D: is the drive letter of your xp installation
bcdedit /create {ntldr} /d "Windows XP"
 
bcdedit /set {ntldr} device partition=D:
 
bcdedit /set {ntldr} path \ntldr
 
bcdedit /displayorder {ntldr} /addlast
 
c)Reboot

No comments:

Post a Comment