grub not adding correct uuid to grub.cfg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
Bug Description
Binary package hint: grub
I have a dual boot Kubuntu - Jaunty and Karmic
Jaunty runs nicely without any problems
When I installed Karmic the first time, during installation using alternate CD, it refused to write grub to mbr, saying that it couldn't. I tried with both options given, grub2 and grub. I also tried selecting a partition manually and putting (hd0) which is the mbr. After 12 attempts, I exited without installing grub, it was the only way out of the installation. On reboot, the grub2 menu appeared with only the Karmic option.
I used the option to manually boot from Jaunty. With the /boot/grub/grub.cfg suggesting not to edit, I used my Jaunty install disk on rescue mode to run grub-install which correctly wrote a mbr and I could boot either Jaunty or Karmic.
This week grub has been updated twice in Karmic and both times, installing the updates has led to Karmic writing grub to my mbr and not allowing me to boot Jaunty. At least now it recognizes Jaunty and adds a line the menu.cfg but it has the wrong UUID. Selecting Jaunty at boot gives the error message 'Kernel not found'
obviously, because it does not have the UUID of the root partition
I have Jaunty root /dev/sda5 and Jaunty /boot is /dev/sda9 - very simple using this
Karmic can find the Jaunty kernel or the link to it but it can't boot it. It should be able to find the right partition and boot it from the menu list.
affects: | grub (Ubuntu) → grub2 (Ubuntu) |
Changed in grub2 (Ubuntu): | |
importance: | Undecided → High |
Changed in grub2 (Ubuntu): | |
status: | New → Confirmed |
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
# grub-mkconfig using templates
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub. d/00_header ### d1e0-4dfd- b1a6-f1ac98c579 1f grub/ascii. pf2 ; then d/00_header ###
set default=0
set timeout=5
set root=(hd0,1)
search --no-floppy --fs-uuid --set 5c33e75f-
if loadfont /usr/share/
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.
### BEGIN /etc/grub. d/05_debian_ theme ### normal= cyan/blue highlight= white/blue d/05_debian_ theme ###
set menu_color_
set menu_color_
### END /etc/grub.
### BEGIN /etc/grub. d/10_linux ### d1e0-4dfd- b1a6-f1ac98c579 1f 2.6.30- 8-generic 5c33e75f- d1e0-4dfd- b1a6-f1ac98c579 1f ro quiet splash img-2.6. 30-8-generic d1e0-4dfd- b1a6-f1ac98c579 1f 2.6.30- 8-generic 5c33e75f- d1e0-4dfd- b1a6-f1ac98c579 1f ro single img-2.6. 30-8-generic d/10_linux ###
menuentry "Ubuntu, Linux 2.6.30-8-generic" {
set root=(hd0,1)
search --no-floppy --fs-uuid --set 5c33e75f-
linux /boot/vmlinuz-
root=UUID=
initrd /boot/initrd.
}
menuentry "Ubuntu, Linux 2.6.30-8-generic (recovery mode)" {
set root=(hd0,1)
search --no-floppy --fs-uuid --set 5c33e75f-
linux /boot/vmlinuz-
root=UUID=
initrd /boot/initrd.
}
### END /etc/grub.
### BEGIN /etc/grub. d/20_memtest86+ ### +.bin +.bin console= ttyS0,115200n8 d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux /boot/memtest86
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux /boot/memtest86
}
### END /etc/grub.
### BEGIN /etc/grub. d/30_os- prober ### cc8e-4d65- be8d-e4db7fbfef 06 2.6.28- 11-generic 89c07ebd- cc8e-4d65- be8d-e4db7fbfef 06 ro quiet splash img-2.6. 28-11-generic cc8e-4d65- be8d-e4db7fbfef 06 2.6.28- 11-generic 89c07ebd- cc8e-4d65- be8d-e4db7fbfef 06 ro single img-2.6. 28-11-generic cc8e-4d65- be8d-e4db7fbfef 06 +.bin 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-
linux /boot/vmlinuz-
root=UUID=
initrd /boot/initrd.
}
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-
linux /boot/vmlinuz-
root=UUID=
initrd /boot/initrd.
}
menuentry "Kubuntu 9.04, memtest86+ (on /dev/sda5)" {
set root=(hd0,5)
search --no-floppy --fs-uuid --set 89c07ebd-
linux /boot/memtest86
}
### END /etc/grub.
### BEGIN /etc/grub. d/40_custom ### d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.
Second, menu.lst from Kubuntu Jaunty
title ...