Ubuntu 9.04 kernel 2.6.28-15

Asked by jmorrissette

I've been doing my update and now I'm up to Ubuntu 9.04 2.6.28-15 but the system won't boot in that version it only boot up in 2.6.27-11 how can I set up my system to boot up by itself in 2.6.27-11
thank you very much
Jean Morrissette

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Vihar
Solved:
Last query:
Last reply:
Revision history for this message
Best Vihar (vmankov) said :
#1

You need to edit the file /boot/grub/menu.lst .

First copy this file to the same directory with a different name, to say "menu.lst.old".
Then open it. Every line there starting with # is a reference.
Every line NOT starting with # is a command for executing. So you'll look for them.

A group for booting looks like this:

title Ubuntu 9.04, kernel 2.6.28-15-generic
uuid 77c8a553-42d9-4369-be64-8508679fbf8c
kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=77c8a553-42d9-4369-be64-8508679fbf8c ro quiet splash
initrd /boot/initrd.img-2.6.28-15-generic
quiet

Find the groups that are above the first group with the kernel number you want to boot with (2.6.27-11). They have different number of kernel.
Add to the beginning of every line of these groups #, so they will be inactive.
Save the file in the same directory (/boot/grub) with the name menu.lst .

After rebooting Ubuntu should start with the first group that hasn't # at it's beginning.

You can easily go back to the previous situation by renaming the file "menu.lst.old" to "menu.lst" .

Hah! I realised now it is not the most secure way because you miss all booting options that are before 2.6.27-11. So the better way is to cut all unwanted groups before "yours" and paste them directly after it. This way Ubuntu should start automatically with the first ("yours) option, but you wil have the chance to choose every of the others if you need it.

Revision history for this message
Vihar (vmankov) said :
#2

Now... I see the mine "before" is not clear.
I mean "before" in the look of booting options from the top line and to down.
So the first is the upper option, the second is right beneath it and so on...

In my meaning here "before" is the upper place in the boot menu.
Sorry, I was not so clear describing my proposal.

jmorrissette,
don't hesitate to ask further please.

Revision history for this message
Peter Iaccarino (pete-iaccarino) said :
#3

After installing kernel 2.6.28-15 and other updates - I'm assuming grub - it added:

root your-uuid-here-string

and it wouldn't boot. I had to change it to:

root (hd0,4) <- your hdX,X may vary...

If you can't get past the grub screen, edit the first entry and then edit the root line. If you have a single drive, start from root (hd0,0) and work your way up, e.g. (hd0,1) (hd0,2). You wont do any damage. Remember to edit the menu.lst after you get in.

I also noticed the entries from the backup menu.lst didn't even have the 'root' directive.

Revision history for this message
anis (anis) said :
#4

I am having a similar problem after updating to 2.6.28-15. In the boot manager menu I can only see previous kernel numbers.

Refering to Vihar's answer:
"Find the groups that are above the first group with the kernel number you want to boot with"

What if I cannot find any group with the kernel number desired (2.6.28-15)?

Revision history for this message
jmorrissette (jmorrissette777) said :
#5

Thanks Vihar, that solved my question.