LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   8.04LTS: Upgrade to 2.6.24-27-generic kernel breaks grub (https://www.linuxquestions.org/questions/ubuntu-63/8-04lts-upgrade-to-2-6-24-27-generic-kernel-breaks-grub-787206/)

tredegar 02-05-2010 05:22 AM

8.04LTS: Upgrade to 2.6.24-27-generic kernel breaks grub
 
This morning I upgraded to kernel 2.6.24-27-generic on my kubuntu 8.04.4LTS distro.

I chose to have menu.lst modified by "the maintainers" or whatever they called themselves (I forget now).

Grub failed with "No such Partition" Error 22.
previous kernels would not boot either, failing with the same error.

The relevant entry in menu.lst looked like this:

Code:

title                Ubuntu 8.04.4 LTS, kernel 2.6.24-27-generic
root                (hd0,5)
kernel                /boot/vmlinuz-2.6.24-27-generic root=/dev/sda5 ro vga=normal
initrd                /boot/initrd.img-2.6.24-27-generic

This is how it always used to look. But I had to change it to this:

Code:

title                Ubuntu 8.04.4 LTS, kernel 2.6.24-27-generic
root                (hd0,4)
kernel                /boot/vmlinuz-2.6.24-27-generic root=/dev/sda5 ro vga=normal
initrd                /boot/initrd.img-2.6.24-27-generic

All the other menu entries also needed the (hdx,y) partition number decrementing by one.

Now grub boots fine.

I'd file a bug report, but where?
[EDIT] Report filed at https://bugs.launchpad.net/ubuntu/ [/EDIT]

amani 02-07-2010 11:42 AM

Must have been due to working with grub2 :)

root=(hd0,5)

tredegar 02-07-2010 12:15 PM

Same thought occurred to me: grub and grub2 use different numbering systems, and I think some developer has become muddled at some stage because 8.04 uses grub, but the kernel-updater and grub-updater somehow used grub2 numbering, when it should be grub-legacy numbering for modifying menu.lst. So it broke grub legacy.

[Off topic: this sort of thing (renumbering for no good reason) drives me nuts. Any day now someone will be proposing that we write binary not as 01011100 but as 23233322, because "it's an improvement" or "easier to read"]

I guess not many people are running 8.04LTS as the bug-report has been ignored, but at least the solution is here on LQ, and now this post is finally off the zero-replies list. Thanks.


All times are GMT -5. The time now is 02:09 PM.