EFI boot options contains 2 Ubuntu and one windows Its happens each time after Ubuntu installation via usb stick. I tried to delete partations and format drive using “mkfs.ext4” I tried erase whole disk with “dd if=/dev/zero of=/dev/nvme0n1” and ‘shred -v -n 3 /dev/nvme0n1’ My motherboard is HP 88ee My boot options menu looks like this(on picture)
Also after removing this efi records using ‘efibootmgr -b xxxx -B’ its appear again after reboot But after removing the files manually mounting EFI partation and removing files using ‘rm’ it’s gone permanent
Im sure it should contain only one Ubuntu boot option but it’s not Why? And how to fix?
Removing EFI entries on an HP computer with efibootmgr does not work. You can use it for some things but that is HP specific. Have one myself and it is something frequently seen and specific to HP. Why, I don’t know. To prevent multiple entries, don’t install multiple times. What is the reason for that? Do you have multiple installs of the same Ubuntu? Are you having problems you can’t resolve so you reinstall?
Two entries often is normal. One is shimx64.efi and other grubx64.efi. If you use sudo efibootmgr with newer versions or efibootmgr -v, you can see the details of the boot entry. New versions of efibootmgr with -v seem to now dump a lot more detail of binary data, or too much.
I am now using noble, never have turned Secure boot on with 2017 era Desktop, but it only now has the shim entry. Normally shim used with Secure boot and grub with UEFI secure boot off.
There normally should be the “fallback” entry. It is like the boot entry you use to boot any external device like a flash drive. UEFI uses /efi/boot/bootx64.efi and in UEFI boot entries you see the drive name or label. In an installed system bootx64.efi may be a copy of Windows boot files sor shimx64.efi, you have to compare sizes to know.
I just tried to delete “/efi/boot/bootx64.efi” and Windows Boot Manager is gone Why its called like this in boot devices select menu? Or it is ok? Im feel uncomfortable about this all. I also tried to install Ubuntu on other flash drive and boot menu was fine only one boot option but with SSD drives its look like this. I tried it with 2 different SSD
Yep I did reinstallation 20-30 times last 2 days But as I said I did shred of whole drive I suppose it should remove everything But this 3 boot options still here
Generally removing bootx64.efi is not a good idea. It is called “fallback” for a reason. If there is some issue with default boot, it gives you a drive entry to boot that then may still work.
The EFI boot entries are not on the hard drive so doing that won’t change anything, they are stored on the system/mother board. Did the entry below not work for you? The link below shows efibootmgr output and the command to use to remove although I don’t know if it will work on your HP. You can delete 0000 or 0001 although I don’t know which you should delete. They are almost identical with Boot0001 having File(.) at the end of the entry the only difference. I’d delete 0001 but that’s just a guess.
Yep I know I just wanna know is it ok or my OS looks weird and need to fix it somehow
I don’t know what you are asking. You have two ubuntu entries in the BIOS, do they both boot when you select them there? If one boots and the other does not then select the one that does not boot and try deleting it with efibootmgr.