2

I had tried in vain to install Debian (which didn't work) and after that I have installed Ubuntu with LVM. Now I still have the boot entry for both OS (F7 key on startup). Both OSes were installed by using LVM-encryption and encryption.

As suggested I installed grub-customizer, which looks like this:

enter image description here

No mention of Debian there. How can I get rid of this entry?

Output of efibootmgr:

nuc@nuc:~$ sudo efibootmgr
[sudo] Passwort für nuc: 
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0004,0002,0003
Boot0001* ubuntu
Boot0002* UEFI: PXE IPv4 Intel(R) Ethernet Connection (10) I219-V
Boot0003* UEFI: PXE IPv6 Intel(R) Ethernet Connection (10) I219-V
Boot0004* debian
MarianD
  • 1,026
yaimo
  • 23

1 Answers1

3

According to the information acquired in the comments, you only want to remove the Debian entry from the UEFI boot menu. To do that:

Open a terminal and run:

sudo efibootmgr

The output will be, as stated in the question, like this:

BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001,0004,0002,0003
Boot0001* ubuntu
Boot0002* UEFI: PXE IPv4 Intel(R) Ethernet Connection (10) I219-V
Boot0003* UEFI: PXE IPv6 Intel(R) Ethernet Connection (10) I219-V
Boot0004* debian

To remove the unwanted entry (debian in this case), run:

sudo efibootmgr -b 4 -B

which will delete the following entry: Boot0004* debian.

After that, remove the debian folder from the EFI partition by running:

sudo rm -r /boot/efi/EFI/debian

Since grub doesn't seem to have references to debian, the process stops here.

At the reboot you shouldn't see debian anymore.

Thanks to this answer and mook765.

dariofac
  • 1,042