live life and go crazy.

Sunday, April 10, 2011

Grub Rescue in Windows 7.

So you installed Ubuntu side by side with your windows 7. And then by some reason you wanted to remove it. After you have delete the Ubuntu partition and restart,this error show up 'grub rescue'. What can you do? you have try almost everything but it won't work. I'm in this situation before and i was thinking to reformat the whole hard drive disk. Luckily i Googling and found the solution. Here's how:

1. Put the Windows 7 installation disc in the disc drive, and power cycle your PC after setting it to boot from CD Drive in BIOS.

2. Press a any key when you are prompted & select [language, time, currency, keyboard etc.] & click Next . Select Repair Your Computer option in the dialog window.

3. In the ‘System Recovery Options’ window Click the 1<sup>st</sup> Option Startup Repair and let it do what it wants to do, but in my case it didn’t solve the problem so I went to the next step.

4. In the ‘System Recovery Options’ dialog box, go to the last option i.e. Command Prompt .

5. Once in the command prompt (X:\Sources> ), type exactly the following commands in the same sequence

bcdedit /export C:\BCD_Backup

C:

CD Boot

Attrib bcd –s –h –r

ren c:\boot\bcd bcd.old

bootrec /RebuildBcd



then it said

“Scanning all disks for windows installations.

Please wait, since this may take a while…

Successfully scanned windows installations: 1

[1] C:\windows

Add installations to boot list? Yes(y)/No(N)/All(A) : “

 I pressed ‘Y’ as there was only one instance of windows installation.   Then it said The operation completed successfully.

6. Next entred the following command      bootrec /fixmbr    It said The operation completed successfully.

7. Next entred the following command      bootrec /FixBoot  Again It said The operation completed successfully.

8. Set the BIOS again to boot from the HDD and reboot.

and that's all. I hope this help. :)

No comments: