grub workaround for cannot find UUID in dual boot system fails and now grub won't boot anything

Posted by keepitsimpleengineer on Ask Ubuntu See other posts from Ask Ubuntu or by keepitsimpleengineer
Published on 2011-11-25T17:35:07Z Indexed on 2011/11/25 18:03 UTC
Read the original article Hit count: 293

Filed under:
|
|
|
|

New clean install of x86 11.10 desktop. Dual boot with windows XP and Linux on separate drives.

After install grub will not boot Windows, but by changing boot drive boots fine.

When I go to fix this I find from http://bootinfoscript.sourceforge.net/ and a link to http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:search my problem, the message on the grub boot error screen:

error: no such device: 6???????

So I follow the Step2 and compare the output of:

sudo blkid and

sudo nano /boot/grub/grub.cfg

The UUIDs in both match for the Windows drive, so I do the fix in Step 4 "remove the search lines for …" in /usr/lib/grub/grub-mkconfig_lib, commenting out the three lines as before?

# if fs_uuid="`${grub_probe} --device ${device} --target=fs_uuid 2> /dev/null`" ; then
# echo "search --no-floppy --fs-uuid --set ${fs_uuid}"
# fi

I run sudo update-grub and check /etc/default/grub.cfg and see that it now identifies the Windows partition not by UUID, which I suppose is the workaround.

But now when I try to boot 11.10 Desktop, I get:

error: no such partition… …

and when I try to boot Windows, I get:

error: invalid signature.

So Now, how do I fix this…

The boot problem and find a workaround that works?

© Ask Ubuntu or respective owner

Related posts about 11.10

Related posts about grub