6

I have many different Ubuntu versions installed on my HD. I'd like to rename some of their entries in GRUB2 boot menu. I have tried two approaches.

  1. As described in this Ubuntu Forums thread. This is not working; I have 9 different lines with SDA11 sections visible in my 30_os-prober file. Am I supposed to modify all of them while in real boot menu only one entry for this partition is visible after sudo update-grub?

  2. I have also tried the Grub Customizer application, but it just overpopulates my boot menu with duplicate entries.

Instead of doing it the hard way by modifying all the entries visible in 30_os-prober file, I would like to know if there is an easy solution? I may be overlooking something, but if there is no easier way, is this supposed to be harder than with GRUB1 for a reason?

Zanna
  • 72,312

1 Answers1

1

As you know, all the files that include grub option names and all the options for editing and renaming are in the directory /etc/grub.d/

The 30_os_prober script could be modified to make them different. I prefer having better control using the generated configuration and disabling os_prober. It's not too hard to copy and paste items from the generated /boot/grub/grub.cfg into your own 40_custom or other files loaded in numerical order.

The file for options is at /etc/default/grub

I don't understand why you would have 11 entries in one partition. An example grub.cfg section might help to understand how to edit 30_os_prober to your needs. Some details of what it looks like now (one big submenu?) and what you would like to see instead would help know how to edit the code.

To update grub run update-grub, generating the new file.

This community page has lots of details and links.

grantbow
  • 838