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.

I am triple booting Windows Vista, Ubuntu 12.04 desktop and a Fluxbox based on Ubuntu 12.10 mini-iso. Vista was installed first, then I installed Ubuntu 12.04 desktop and then Ubuntu 12.10 Fluxbox. The Ubuntu 12.10 Fluxbox installation booted as default, which was my intention. All the systems get updated regularly. Sometimes after a dist-update in the Ubuntu system which isn't booting as default the default boot changes to that system. So sometimes the GRUB boot-order changes from Ubuntu 12.10 Fluxbox as default to Ubuntu 12.04 desktop as default, a number of dist-updates later it changes back again. This behavior happens repeatedly, what causes the behaviour only sometimes is not clear.

It seems like there are two grub.cfg files (resposible for generating the GRUB startup menu as I understand it) ,one generated by Ubuntu 12.04 desktop and one by Ubuntu 12.10 Fluxbox. During boot one of those files gets read. Which one is used changes sometimes after the updates. The updates are not release-updates (e.g. 12.04 -> 12.10).

Is there any way to prevent this behaviour?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

First you need to install Boot Repair:

grub-install -v 
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair

If you have already installed boot-repair, then skip previous step and run the boot repair:

boot-repair

From the boot-repair window, you can configure which Ubuntu will be starting as default.

How to use boot repair visit http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/

share|improve this answer
    
Thank you for your solution. I am curious whether or not it will stay stable when updating. –  jeroen Feb 21 '13 at 2:46
    
if you are updating GRUB or ubuntu 12.04 then no problem but when you want to "upgrade" Ubuntu 12.04 to 12.10 it sometimes have a risk , when many software have lot of dependencies of previous version or no enough hard disk space etc. –  Gaurav Sharma Feb 21 '13 at 7:02
    
Well, the problem occurres sometimes when doing dist-upgrades (kernel update), what causes the behaviour only sometimes is not clear. It seems that there are two grub.cfg files (resposible for generating the GRUB startup menu as I understand it) ,one generated by Ubuntu 12.04 desktop and one by Ubuntu 12.10 Fluxbox. During boot one of those files gets read. Which one is used changes sometimes after the updates. These updates are not release-updates (e.g. 12.04 -> 12.10). Do you have any insight in what causes it? –  jeroen Feb 21 '13 at 15:44

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.