Mar 5 2025

EFI BOOT ENTRY

DELETE

To delete a menu entry using efibootmgr
first list the current boot entries with sudo efibootmgr
Identify the boot number of the entry you want to delete, then use the command:
sudo efibootmgr -b XXXX -B
replacing XXXX with the boot number of the entry you wish to remove.

ADD

To add a menu entry using efibootmgr, use the following command format:
sudo efibootmgr -c -d /dev/sdX -p NN -L "Label" -l "\EFI\path\to\boot\file.efi"
where /dev/sdX is your disk, NN is the partition number,
“Label” is the name you want for the boot entry,
and \EFI\path\to\boot\file.efi is the path to the EFI executable.

!!! Make sure the path to the boot file is correct and uses backslashes, as required by the EFI specification!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.