LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-05-2010, 05:22 AM   #1
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
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]

Last edited by tredegar; 02-05-2010 at 05:38 AM.
 
Old 02-07-2010, 11:42 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,754

Rep: Reputation: Disabled
Must have been due to working with grub2

root=(hd0,5)
 
Old 02-07-2010, 12:15 PM   #3
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Original Poster
Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos kernel upgrade breaks dmraid on Intel Software Raid JevidL Linux - Kernel 9 06-08-2009 05:30 AM
*solved* Lenny kernel upgrade breaks OSS installation bezdomny LinuxQuestions.org Member Success Stories 0 02-11-2009 12:23 PM
slack 12, switch to generic kernel from huge kernel, using grub? jaguarrh Slackware 8 09-19-2007 06:29 AM
LXer: Howto upgrade kernel(2.6.22-9-generic) in Feisty Fawn LXer Syndicated Linux News 0 08-06-2007 05:17 AM
SuSE 9.1 Personal - Kernel upgrade breaks fglrx driver jasonM Linux - Distributions 6 07-14-2004 07:34 PM


All times are GMT -5. The time now is 05:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration