Earlier I installed Ubuntu 10.04 from a USB flash drive.

Since the system was unable to detect Ubuntu in the initial menu that appears on reoboting, I deleted the partition onto which I had installed Ubuntu while in Windows 7.

I then installed PowerISO which prompted me to reboot the system.

Now however I get the following error:

error: no such partition
grub rescue>

How can I fix this?

link|improve this question
feedback

2 Answers

Part of GRUB lives in the Master Boot Record (MBR), while the other parts live in the Linux boot partition. Since you killed the that partition, GRUB can't load all the other files that it needs.

To fix this, you need a Windows install CD so that you can get into the recovery console. From there, use the commands FIXMBR and FIXBOOT (I think) to remove the last remaining parts of GRUB. After that, your machine should boot up as normal.

link|improve this answer
I've just tried this, but neither of those command were found. – Dan Sep 29 '11 at 21:29
@Dan: You're right, the procedure I described only works for Windows XP. I hadn't realized that it changed for Vista and 7 as I've never had to use it since XP. – MBraedley Sep 30 '11 at 10:43
feedback

I've just had the same problem. I found this article which explains how to fix it:

http://www.sevenforums.com/tutorials/20864-mbr-restore-windows-7-master-boot-record.html

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.