Windows – grub rescue prompt

grubUbuntuwindows

Had win7 and ubuntu installed on laptop and inadvertently selected the recovery option in boot menu – exited and now all I get is

error: no such partition
grub rescue>

set returns:

prefix=(hd,0,msdos6)/boot/grub
root=hd0,msdos6

ls returns:

(hd0) (hd0,msdos5) (hd,0,msdos3) (hd0,msdos2) (hd0,msdos1) 

'normal' not available and I dearly love to not have to stick my oem recovery disc in any other info I can give please ask…

any help would be muchly appreciated.

Best Answer

If you still have your Ubuntu (and hopefully it is the live disk), boot off that. Browse through the file systems on both your Windows and Linux partitions. If you can get to both, you're fine; you just need to reinstall grub.

Just remember a couple of things:

  • In linux, partition numbers start at 1 and disk starts with letters. With grub, they both are numbers and start from 0.

  • Worse, sometimes BIOS "lies" to grub about the device mapping. You will need to verify your mapping in device map file under /boot directory

  • Make sure to find out the location of your windows partition and boot loader. Fortunately, it probably still exists under /boot/grub, so you probably won't have to make any changes - just reinstallation.

Here are a couple of things that will help you out.

http://www.dedoimedo.com/computers/grub.html

http://www.howtogeek.com/howto/ubuntu/reinstall-ubuntu-grub-bootloader-after-windows-wipes-it-out/