efibootmgr -c -d /dev/sda -p 1 -L 'Ubuntu' -l '\EFI\ubuntu\shimx64.efi'

Category: Administration

efibootmgr -c -d /dev/sda -p 1 -L 'Ubuntu' -l '\EFI\ubuntu\shimx64.efi'

Create a UEFI boot entry for Ubuntu

Adds a new boot entry labeled Ubuntu that loads \EFI\ubuntu\shimx64.efi from partition 1 of /dev/sda. The shim is the signed first-stage loader that chains into GRUB, so this is how you re-register a distro after its entry disappears. UEFI paths use backslashes. Run as root and verify with efibootmgr -v.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.