update-grub help

Goh Lip g.lip at gmx.com
Wed May 26 15:14:39 UTC 2010


On 05/26/2010 10:10 PM, Dave Howorth wrote:

>
> So I tried to boot from the revised grub.cfg and it failed with "error:
> no such device" so I've commented out lines in
> /usr/lib/grub/grub-mkconfig_lib so as not to generate search lines in
> grub.cfg as described in
> http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:search
>
> But it still doesn't work. It now says "you need to load the kernel
> first" and my googling hasn't answered that yet. The relevant stanza in
> grub.cfg is:
>
> ### BEGIN /etc/grub.d/30_os-prober ###
> menuentry "Desktop -- openSUSE 11.2 - 2.6.31.5-0.1 (on /dev/sdf1)" {
>          insmod ext2
>          set root=(hd5,1)
>          linux /boot/vmlinuz-2.6.31.5-0.1-desktop
> root=/dev/disk/by-id/ata-WDC_WD5001AALS-00L3B2_WD-WCASYA878047-part1
> resume=/dev/disk/by-id/ata-WDC_WD5001AALS-00L3B2_WD-WCASYA878047-part2
> splash=silent quiet showopts vga=0x31a
>          initrd /boot/initrd-2.6.31.5-0.1-desktop
> }


Dave, assuming you're not using encrypted or raid, at grub menu, go to 
grub prompt (enter 'c')
type and note each output..

grub> ls (hd5,1)  [write carefully uuid no (do you use label for this?)]
grub> search -f /boot/vmlinuz-2.6.31.5-0.1-desktop [gives you hd5,1 ?]
grub> search -f /boot/initrd-2.6.31.5-0.1-desktop  [gives you hd5,1 ?]


If yes to above, proceed......

use either *one* of the following

grub> search --no-floppy --fs-uuid --set xxxxxxxxxxxxxxxx
grub> search --no-floppy --label --set xxxx

then either *one* of the following
grub> linux /boot/vmlinuz-2.6.31.5-0.1-desktop root=UUID=xxxxxxxxxxx ro
grub> linux /boot/vmlinuz-2.6.31.5-0.1-desktop root=LABEL=xxxx ro

then....
grub> initrd /boot/initrd-2.6.31.5-0.1-desktop
grub> boot


If you can boot up to Opensuse, then please add this to you grub.cfg (at 
karmic) and we'll handle how we do this next message if this is 
successful. If sucessful, and I am not familiar with Opensuse, please 
check if there is are syslinks at Opensuse root / the following 
"/vmlinuz" and "initrd.img" which are links from 
/boot/vmlinuz-2.6.31.5-0.1-desktop and 
/boot/initrd-2.6.31.5-0.1-desktop or their appropriate syslink names.


Good luck - Goh Lip



-- 
Life is a sexually transmitted disease with a 100% mortality rate




More information about the ubuntu-users mailing list