Grub2 creates multiple identical entries in menu
On my Dell Inspiron 510m I installed Ubuntu 11.10 in addition to Win XP to make a dual boot system. Now I have also installed OpenSuse 12.1 to make a triple boot system. In order not to destroy the boot process as set up by Ubuntu, I selected not to install a boot loader while installing OpenSuse. After rebooting into Ubuntu, I ran update-grub, which found the OpenSuse system and added it to the Grub boot menu. Now the triple boot works fine. However, Grub created 6 identical menu entries for the OpenSuse system.
I traced this to the 30_os-prober script in /etc/grub.d, which, in the section named 'linux', calls 'linux-
When I ran linux-boot-prober to see what it does, I got this result:
/dev/sda7:
/dev/sda7:
/dev/sda7:
/dev/sda7:
/dev/sda7:
/dev/sda7:
which is obviously the cause of the 6 identical entries in the menu. I do not know why linux-boot-prober does this, but must
assume that there are good reasons for it.
I see two ways to avoid these multiple entries in the menu: either to manually edit the 'boot.cfg' file, which the documentation recommends not to do, or to modify the 30_os-prober script so as to suppress any menuentry lines which are identical to immediately preceding ones. I would prefer the latter. Can anyone suggest a solution?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu os-prober Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Stan McGregor
- Solved:
- Last query:
- Last reply: