EFI partition problem (dual boot)

Hi there,
I’m pretty new on Linux and I’m now facing a problem with EFI boot.
First thing first: I installed Endeavour OS on a drive where Windows 11 was present and where I tried to previously install Debian, which I don’t like.
I installed Endeavour on the partition where Debian was installed. I created a new partition table with the root btrfs, swap and - as I chosed to use systemd - a new ESP partition of 1GB.
Now the system sees both EFI partitions, the one created by windows where the “debian entry is still available” and the one created by myself during the EOS installation which also sees the Windows bootloader. So in total I have 4 entries: Windows and Debian from the first EFI and Endeavour and Windows from the new EFI partition. I’d like to clean something up.
efibootmgr can delete entries in the Windows EFI partition but they are re-created automatically. I believe this is because the debian folder in EFI partition is still there. I’m figuring out a few alternatives to clean up things:
1- remove the debian entry mount the “windows” EFI partition and delete debian folder and then do the same with the windows entry of the EFI partition created for Endeavour
2- delete the “windows” EFI partition as the one created with EOS also sees windows and that should be enough to boot both OSs
Do you have any suggestion?
Thanks in advance

First, a question. How are you choosing what to boot?

Are you using the BIOS boot menu when you want to switch? This is not common, but some people do this. If this is your preference, then you should use this option:

In addition, use efibootmgr to delete the extra options left over.

On the other hand, if you are using the boot manager to choose which option to boot, I would take neither of those actions.

I’d like to use the new boot manager. I don’t want to have to press F12 every time I need to choose which OS to boot.
On the other hand is also a metter form me to better understand how boot managers and EFI work. Furthermore I’m a little maniac, I like clean systems :sweat_smile::sweat_smile::sweat_smile:

In that case you should only have to clean up the Debian files from the Windows partition and remove the debian entry from efibootmgr

1 Like

Should I remove also the Windows entry in the systemd EFI partition right? At the moment I have a double windows entry. One for each EFI partition! Thanks so much for your help

No. If you do that, the boot manager will stop letting you boot into Windows.

The boot menu only shows one, correct? You are seeing the duplicates when you look at the EFI entries?