Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

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

share|improve this answer
add comment

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.

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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