Comment 1 for bug 392836

Revision history for this message
Kevin C (annakevinc) wrote : Re: [Bug 392836] Re: grub not adding correct uuid to grub.cfg

Steve Langasek wrote:
> ** Package changed: grub (Ubuntu) => grub2 (Ubuntu)
>
> ** Changed in: grub2 (Ubuntu)
> Importance: Undecided => High
>
>
Hi, would it help to see the menu.cfg from Kubuntu Karmic using grub2
and the menu.lst from Kubuntu Jaunty using grub?
I highlighted the problem in red and showed the correct UUID in green.

First, menu.cfg from Karmic

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,1)
search --no-floppy --fs-uuid --set 5c33e75f-d1e0-4dfd-b1a6-f1ac98c5791f
if loadfont /usr/share/grub/ascii.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.30-8-generic" {
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set 5c33e75f-d1e0-4dfd-b1a6-f1ac98c5791f
    linux /boot/vmlinuz-2.6.30-8-generic
root=UUID=5c33e75f-d1e0-4dfd-b1a6-f1ac98c5791f ro quiet splash
    initrd /boot/initrd.img-2.6.30-8-generic
}
menuentry "Ubuntu, Linux 2.6.30-8-generic (recovery mode)" {
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set 5c33e75f-d1e0-4dfd-b1a6-f1ac98c5791f
    linux /boot/vmlinuz-2.6.30-8-generic
root=UUID=5c33e75f-d1e0-4dfd-b1a6-f1ac98c5791f ro single
    initrd /boot/initrd.img-2.6.30-8-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
    linux /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
    linux /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Kubuntu 9.04, kernel 2.6.28-11-generic (on /dev/sda5)" {
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 89c07ebd-cc8e-4d65-be8d-e4db7fbfef06
    linux /boot/vmlinuz-2.6.28-11-generic
root=UUID=89c07ebd-cc8e-4d65-be8d-e4db7fbfef06 ro quiet splash
    initrd /boot/initrd.img-2.6.28-11-generic
}
menuentry "Kubuntu 9.04, kernel 2.6.28-11-generic (recovery mode) (on
/dev/sda5)" {
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 89c07ebd-cc8e-4d65-be8d-e4db7fbfef06
    linux /boot/vmlinuz-2.6.28-11-generic
root=UUID=89c07ebd-cc8e-4d65-be8d-e4db7fbfef06 ro single
    initrd /boot/initrd.img-2.6.28-11-generic
}
menuentry "Kubuntu 9.04, memtest86+ (on /dev/sda5)" {
    set root=(hd0,5)
    search --no-floppy --fs-uuid --set 89c07ebd-cc8e-4d65-be8d-e4db7fbfef06
    linux /boot/memtest86+.bin
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###

Second, menu.lst from Kubuntu Jaunty

title Kubuntu 9.04, kernel 2.6.28-11-generic
uuid 8d814ba7-a49c-4c0c-916a-df417306b1d4
kernel /vmlinuz-2.6.28-11-generic
root=UUID=89c07ebd-cc8e-4d65-be8d-e4db7fbfef06 ro quiet splash
initrd /initrd.img-2.6.28-11-generic
quiet

title Kubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 8d814ba7-a49c-4c0c-916a-df417306b1d4
kernel /vmlinuz-2.6.28-11-generic
root=UUID=89c07ebd-cc8e-4d65-be8d-e4db7fbfef06 ro single
initrd /initrd.img-2.6.28-11-generic

title Kubuntu 9.04, memtest86+
uuid 8d814ba7-a49c-4c0c-916a-df417306b1d4
kernel /memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

title Ubuntu 9.10, kernel 2.6.30-8-generic
root (hd0,0)
kernel /vmlinuz root=/dev/sda1
quiet