I just finished changing the boot order for GRUB2. I have three operating systems installed on the computer. I have Windows 8.1, Ubuntu Linux 15.04 and Mint Linux 17.2. I followed Marve's answer here: How do I change the GRUB boot order?
The thing is, it failed at first! I was booted into Ubuntu at the time I made the changes. I used the name reference like GRUB_DEFAULT='Windows 8'
instead of index number, and I only worked with /etc/default/grub
file. I then issued updated-grub
and rebooted. I had Windows somewhere in the middle of the boot menu, Ubuntu at bottom, and Mint at the top. When the delay time ran out at the boot menu screen, Mint booted up, and not Windows.
Then I rebooted and booted back into Ubuntu to ensure my changes were still there in /etc/default/grub
and they sure were. I also noticed I had a third grub~
file, along with my grub.bak
backup file.
I then booted into Mint and made the same changes there, and rebooted. Sure enough, it worked! So I now have Windows selected by default at the boot menu screen and it boots up when time runs out. This is what I wanted.
But what bothers me is why I had to do this in Mint? Why did it not work in Ubuntu? Is this because I installed Mint after I installed Ubuntu? That's the only explanation I can think of. Is GRUB2 installed to more than one location? I remember that I had chosen to install the bootloader to the MBR during both system installations. Maybe it has something to do with the configuration files alone, and not the actual bootloader program? What if I had mounted the /etc
to a dedicated partition? Would that make them share the configuration files? How about the /boot
then?
There is another thing that bothers me with this setup, and it's the constant changing of the boot order and background colors and layout of the boot menu options for GRUB2. This seems to happen when either one of the operating systems gets an upgrade, or some major update that somehow requires updating the boot menu options. How can I avoid this? If I set the boot menu screen background to be blue, how can I prevent it from changing to purple the next morning when Ubuntu gets a new major update or upgrade?
In the linked answer above, have a look at the "troubleshooting" section. Here's an excerpt.
The Grub Customizer settings may work only from within the latest Linux/Ubuntu installation, the one that installed the Grub.
It looks like I may be onto something here. This might have to do with what I mentioned above. Is it not so? It sounds really silly that you would have to make changes only in the last installed Linux system. Be it that you use a GUI tool like GRUB Customizer or the command line tools and manual editing. Can someone more knowledgeable please shed some light on this issue?