Thursday, August 19, 2010

Grub Rescue - error with Windows 7 and Ubuntu

So you have installed a dual boot windows 7 and Ubuntu and then after a futile attempt to make things work at office, decide to delete the partition onto which Ubuntu has been installed. you restart and bang!

GrubRescue>
GrubRescue>
GrubRescue>
GrubRescue>
GrubRescue>

You realize that you need to get things fixed without formatting the hard disk and loosing your windows files.

Here are the steps which I took that worked for me.

1. Boot with a regular windows 7 CD.
Select the English (or your language option)/ keyboard setup etc and click next
3. select "Repair Windows" option
4. after the installation of windows is found, select the install and click next.
5. select the Repair boot option

now if this does not work. You need to get your hands dirty.

6. Select the option of "Command Prompt"

7. Enter the following command
bootsect /nt60 sys c:\

this should repair the mbr

incase this does not work try the next option

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.


incase this does not work try the next option


go to c:

type Dir

if you get a blank directory then thats the problem. Find out what drive letter has been assigned to the primary windows installation drive. in my case, the rescue drive setup by toshiba assigned c to itself. and my windows was loaded onto what dos assumed was D: so i changed the bootsect command a bit

type :

bootsect /nt60 sys d:\


and bang!

Windows boots up!


thanks to www.pcchimp.com for this support

and http://social.answers.microsoft.com/Forums/en-US/w7repair/thread/42d3f550-bf5f-459d-94ed-4cbadd7c933c

2 comments:

Kasun (gamertag: sgt scribbles) said...

OMG THANK YOU !!!!!!!!

HI FRENZ said...

You just saved the day for me ! thanks a lot for the tutorial !

Locations of visitors to this page