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.

Installed WUBI on Windows and the Ubuntu installation completed. The first time I logged in to Ubuntu it updated a full set of patches and asked to reboot.

Now after reboot it is showing me the error:

no such devices found

grub rescue>

Can you share some commands I could use to recover at least Windows? It is not even asking for the Windows login at boot time.

share|improve this question
add comment

migrated from serverfault.com Aug 19 '10 at 12:27

This question came from our site for professional system and network administrators.

3 Answers

up vote 0 down vote accepted

Cause: Grub2 is not supposed to replace the original bootloader.

Conditions: Windows 7, Netbook, no optical disc drive, no rescue CD, repair startup not found in Windows Rescue Environment (Press F8 before Windows logo appears), failed to uninstall Grub and restore Windows bootloader

Solutions:

  1. Get SuperGrubDisk to boot into the Windows partition.
  2. In Windows, get Mbrfix.exe to fix the MBR (run Mbrfix /drive 0 fixmbr /win7).

Do read the instructions in the documentation.

share|improve this answer
add comment

For completeness sake: it should be possible to boot Windows from that GRUB "rescue prompt", but it requires knowledge about GRUB and how your disks are partitioned etc. Overwriting the MBR as explained by Shiki is certainly a quicker solution if you (only) want Windows to boot ASAP...

Most documentation for GRUB2 can be found at: http://grub.enbug.org/ (in case anybody wants to try fixing such an issue "the hard way")

share|improve this answer
    
True enough. It's a life-saver if you learn this or just print it out. When the sh.t hits the fan, there is no better solution. –  Shiki Aug 20 '10 at 7:51
add comment

It is not possible to recover Windows from there. You'll need the Windows DVD (Windows 7 DVD for example if you have Windows 7). Boot the DVD up, select Recovery. When it offers to repair it automatically, say no.

Select recovery prompt and type these commands one-by-one:
bootrec.exe /FixMbr
bootrec.exe /FixBoot

After you have done this, close the prompt with the X, and close the Windows 7 installer. Reboot, there you go.

(As a side note: Wubi is not really recommended. It's really just for playing around. As you experienced, the system may break very easily even with some updates. You should just resize your main partition with the Windows partition manager or some commerical software like Acronis Disk Director and install Ubuntu to a new partition.)

share|improve this answer
    
yipee!! it worked...thanx a tonne. –  cyrilsebastian Aug 19 '10 at 14:30
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.