Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How do I change the grub boot order?

I wish to set my installation of ubuntu server 11.10 to automatically boot into linux kernel 2.6.

The way I navigate to this option in the grub menu is by choosing the 3rd option, which says "Older Linux Versions". This then loads another menu which has the linux 2.6 kernel versions of ubuntu that I am looking for.

How to set up grub so that it boots into the linux 2.6 kernel automatically every time?

Since the option for "Other Linux Versions" is on line 3 of the Grub menu, I changed the line in the /etc/default/grub file from default 0 to default 2, but this did not seem to work.

Thanks!

share|improve this question
Did you do a 'sudo update-grub' after changing the grub file? – Tinellus Jun 27 '12 at 12:49
yes I think I may have forgotten to do that, thank you! I will try and update with the results. – jeffery_the_wind Jun 27 '12 at 12:51

marked as duplicate by Anwar, Mitch, SirCharlo, Amith KK, Marco Ceppi Oct 5 '12 at 17:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

In a terminal, run sudo update-grub

Then, type grep menuentry /boot/grub2/grub.cfg

Counting from 0, find the number of the line containing the 2.6 entry you want.

Set that as default in /etc/default/grub and run sudo update-grub again.

share|improve this answer
Thanks, I checked the list, and the version I want to boot is indeed option 3, so i set default 2 should work. I think my problem was I forgot to do sudo update-grub before. Thanks! – jeffery_the_wind Jun 27 '12 at 13:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.