Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After the most recent kernel upgrade, my system hangs during boot. Since my machine seems especially persnickety about pulling up the grub menu*, what is the best way to set the previous kernel as the default until the next upgrade?

*I have to hit ESC at exactly the right moment, which usually means rebooting several times until I get it.

share|improve this question
1  
To see the Grub menu at boot it is recommended to press and hold the Shift key during boot. –  Takkat May 6 '11 at 18:33
add comment

2 Answers 2

An nice application is available in the Software Centre which should help you. Its called "Startup Manager".

It looks like this: enter image description here

Choose the Kernel you wish to default to in the drop-down list and then click Close to complete.

share|improve this answer
add comment

Once started with the old kernel, modify your /etc/default/grub with

GRUB_DEFAULT="title"

where "title" is the exact menu title of the kernel you want to start. You can somehow obtain this with

grep menuentry /boot/grub/grub.cfg

Then run sudo update-grub and you can live until the next kernel upgrade, when you can set back GRUB_DEFAULT to 0 or choose another "title".

share|improve this answer
    
Thanks for the tip. Where do we find the title if /boot/grub/grub.cfg does not exist? –  Mark Stosberg Jun 13 '12 at 15:31
    
@MarkStosberg: if you don't have grub.cfg it means that you don't have grub installed or you have the old grub, so this tip do not apply. –  enzotib Jun 13 '12 at 17:57
    
Thanks for the reply @enzotib. I found that if I run 'update-grub', the file is created. –  Mark Stosberg Jun 13 '12 at 19:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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