I have duel boot. 1 windows and 2 ubuntus(18.04 and 22.04). i installed the newer ubuntu 24.04. amd now just before the grub menu appeares there is a message for a second or two:- " Failed To Open \EFI\ubuntu\ - Not Found "
I did the
grub-install: warning: Internal error.
grub-install: error: failed to register the EFI boot entry: Operation not permitted.
i am still able to log in to all the os properly. but how can this error go away. and what do i do wrong each time while installing new ubuntu version each time. i think there is something to do with the EFI partition. which i have on both the hardisk. /dev/sda2 and /dev/sdb11
Can you please tell us …
What operating systems do you have on which drives?
What drive has the boot priority?
Do both drives have an EFI System Partition (ESP)?
When you ran grub-install /dev/sda2 were you using a version of Ubuntu on the sda drive? Which version?
When you installed Ubuntu 24.04 what install options did you choose? File system = Ext4 or something else? Any kind of encryption?
on drive 1 i have windows and Ubuntu 24.04 (recently installed. from where the problem started)
on drive 2 i have Ubuntu 18.04 Ubuntu 20.4 Ubuntu 22.04. which were already installed
yes both drives have EFI partition /dev/sda2 and /dev/sdb11
no. I was on the second drive sdb using ubuntu 22.04
I used Ext4 filesystem. and didn’t encrypted the partition.
Thank you for the information. It will help to avoid giving confusing instructions.
I would have ran grub-install from Ubuntu 24.04 because it is on drive 1 (sda) and installed grub into /dev/sda2. At the moment if drive 1 (sda) has the boot priority then Grub will default to Ubuntu 22.04. Nothing wrong with that but I would do it differently.
What has got me thinking is that the ESP on drive 2 (sdb) is on /dev/sdb11. That is partition 11. I do not know for sure but I would expect an ESP to be the first or second partition. That could be where the errors are coming from. The motherboard is looking for an ESP on drive 2 (sdb) and having difficulty finding it and then going to the ESP on drive 1 (sda).
Have you been getting this error since you installed Ubuntu 18.04? Has the ESP been on partition 11 since that time also?
Is this error the install of grub’s entry into UEFI? We have seen this before mostly with upgrades, but system still boots as Ubuntu entry in UEFI still has correct ESP and updated files in ESP. Not sure if UEFI issue or grub issue.
Grub install uses efibootmgr. If you have correct ESP mounted in fstab you can run this. And see if you get same error. It assumes many defaults, but if in working system with correct ESP, will work.
sudo grub-install
fred@z170-noble:~$ sudo grub-install
[sudo] password for fred:
Installing for x86_64-efi platform.
Installation finished. No error reported.
If you are going to have different releases of Ubuntu on your computer, you need to know which one is in charge of booting and keep track of it which you can do by running the boot repair script (link below) and keeping it for your own use. Use the 2nd option explained at their site and select the Create BootInfo Summary option. This will give you a copy of all the details of the installs.
Earlier versions of the Ubuntu EFI installer would put the Ubuntu EFI files on the first EFI partition it found and if you had a windows install, that would be where it installed despite the user making another choice. Current installs of Ubuntu will allow you to select where to install, which EFI partition if you have one on multiple drives.
If you have an Ubuntu EFI install on one drive and you install another release of Ubuntu EFI, it will overwrtie the EFI boot files on the EFI partition.
Since you have 2 drives with 2 EFI partitions I would suggest you boot into each Ubuntu and run: ls /boot/efi/EFI/ubuntu and check/compare the files available. You could check to grub.cfg file on the EFI partition to see which partition it is pointing to by the UUID in that file, then run blkid to see which partition that is.
Searching this new forum … “rEFInd” … there are no hits. This might be because it is dated … old school grub manager … but I rely on it as a GUI which shows all installations in parallel with existing grub. And I have multiple OS … Windows 10, Ubuntu and another Ubuntu. It is a parallel universe worth trying to get you out of a hole. Search rEFInd in the old ubuntuforums.org to see many references. Also within Windows you can install a free trial of EasyUEFI to view from Windows side.
I keep rEFInd on an old too tiny for anything else now flash drive, as emergency boot. Refind worked multiple times to boot a system that lost its way & needed grub reinstalled.