How To Update Grub2 Triple Booting with Ubuntu, openSUSE

Hi,

I just installed Milestone 3 openSUSE 12.2 with Grub 2. I already had openSUSE 21.1 and Ubuntu 12.04 installed on this machine. Last night there was an update for openSUSE 12.1 and I upgraded. Now, I can’t boot into openSUSE 12.1. I think that’s due to there would have been kernel upgrade. Under Ubuntu I used to run sudo update-grub. How do I update the grub of 12.2 so that it detects the 12.1?

Arnie

You can try updateGrub2 from package updategrub in my repo. I use it on openSUSE 12.1 and Fedora 16, never tested it on 12.2. It will work … unless they change the location of Grub2’s menu.

Notice that updateGrub2 does both, installing Grub2 (if it’s not installed) and refreshing the menu. It is not necessary to install Grub2 on 12.2, but the script was intended to be used on 12.1. It won’t probably play well with the Perl bootloader… as always (!).

  • You’ll use it at your own risks. … but with Milestone 3, what else are you doing except testing?

Also notice that updateGrub2 will find openSUSE 12.1 and add it, but it might fail to find Ubuntu if Ubuntu’s root partition is not mounted. This is due to a bug in os-prober. Same for Ubuntu in the other way (for me it sometimes fail to add Fedora).