I use Ubuntu 18.04 on my computer. This Ubuntu installation appears as ubuntu at system EFI boot menus.
I also have a external USB storage that has a EFI Ubuntu installation. This external USB storage also appears with the name ubuntu at system EFI.
I see two ubuntu menus at system EFI boot menus when external USB storage is attached. This makes it hard to figure out which ubuntu menu item points to the Ubuntu installation on the computer, and which one points to the Ubuntu installation on the external USB storage.
How I can change the EFI boot label to something different?
For example, how can I change ubuntu EFI boot label on the external USB storage to appear as External Ubuntu at system EFI boot menus?
The Ubuntu on my external USB storage has its own EFI partition.
This question is different from How to safely change OS name in grub boot menu?
This question is about how to change the Efi Boot name that appears in the EFI Firmware setup and not in the GRUB boot menu.
As soon as I boot from external device, it add its own "Ubuntu" entries to the list. Both "Ubuntu" entries works and point to right Ubuntu installation, they just have same name. My question is how I can change that "Ubuntu" entry to something different when I connect my external device to a different computer.
– user8888180 Mar 15 '19 at 15:01sudo nano /etc/default/grub
GRUB_DISTRIBUTOR=
lsb_release -i -s 2> /dev/null || echo Debian
GRUB_DISTRIBUTOR="EXTERNAL UBUNTU"
sudo update-grub
After shutdown, replug and restart, again same second "Ubuntu" entry added to EFI firmware boot menu followed by displaying "EXTERNAL UBUNTU" when grub menu appeared after boot.
The link to duplicate post only change the Ubuntu name when grub menu appear. It does not change the "Ubuntu" entry at system firmware Efi menu that displays before grub menu.
– user8888180 Mar 15 '19 at 16:17sudo efibootmgr -c -L "External Ubuntu" -l "EFI\BOOT\BOOTX64.EFI"
A new working "External Ubuntu" entry added to EFI firmware boot menu but it disappear if I unplug the external storage. It do not appear if I plug the external storage again. While this might work for fixed storage, It does not work for removable storage. It seems this solution only update EFI firmware and not the ESP. The original "Ubuntu entry always appears at EFI firmware menu and it appears somehow hard coded in ESP!.
– user8888180 Mar 16 '19 at 14:54ubuntu
toubuntu external
on the ESP of the external drive. Since grub is installed there with the--removable
-option (this makes the entry not to appear when the drive is not connected), you should see the desired label on next boot. Caveat: when a new version of grub is going to be installed, you will again see an extra ubuntu entry, the folder will be recreated thus would need to be removed. Or remove the folderubuntu external
and rename the new folder like done before. – mook765 Nov 30 '20 at 10:36