linux – Re-adding .efi file to uefi boot
First, boot into linux.
Make sure that you have efibootmgr installed.
- Run
sudo fdisk -land look for the partition of TypeEFI System. (/dev/sda2in my case) - Mount the partition to /mnt
sudo mount /dev/sda2 /mnt - Browse the file system and ensure the path of the file (
EFI/kali/grubx64.efiin my case)
Refer to the sudo fdisk -l and find the partition that contains your Linux installation (/dev/sda6 in my case)
Using the values found previously, execute the following command:sudo efibootmgr --create --disk=/dev/sda --part=6 --label="Kali" --loader="EFI\kali\grubx64.efi"
Read more here: Source link
