Error booting Fedora 40 after installation

Good afternoon everyone. I just installed Fedora 40 (I generated the partitions automatically) and during the system boot I get the following message with black background:

Failed to open \EFI\Fedora - Not found

It is like this for about three seconds and then the system loads normally, but it is uncomfortable that it always shows this message at every reboot. What is the reason and how can I solve it? Thanks for help.

Can you check the boot manager and post the results here in </> preformatted text?

efibootmgr command to list your current EFI boot entries:

sudo efibootmgr -v

This will provide the boot entry and we can check if it’s correct.

Hi @hamrheadcorvette, this is what I get back from efibootmgr:

BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0001
Boot0000* Fedora	HD(1,GPT,5c457c9a-e15d-409d-9cce-8a0638736f65,0x800,0x12c000)/\EFI\fedora\shimx64.efi
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 c0 12 00 00 00 00 00 9a 7c 45 5c 5d e1 9d 40 9c ce 8a 06 38 73 6f 65 02 02 / 04 04 34 00 5c 00 45 00 46 00 49 00 5c 00 66 00 65 00 64 00 6f 00 72 00 61 00 5c 00 73 00 68 00 69 00 6d 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
Boot0001* Disco duro 	BBS(HD,,0x0)414d474f414d4e4f9f000000010000006f004300540032003400300042005800350030003000530053004400310000000501090002000000007fff040002010c00d041030a0000000001010600021f03120a000200ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63000320036003200340045003300300044004300420044002000200020002000200020002000200000007fff0400414d424f414d4e4fab000000010000006f004b0049004e004700530054004f004e0020005300480053005300330037004100320034003000470000000501090002000000007fff040002010c00d041030a0000000001010600021f03120a000400ffff00007fff040001043e00ef47642dc93ba041ac194d51d01b4ce63000350032003000420036003200370038003600300030004600460044003400200020002000200000007fff0400414d424f
      dp: 05 01 09 00 02 00 00 00 00 / 7f ff 04 00
    data: 41 4d 47 4f 41 4d 4e 4f 9f 00 00 00 01 00 00 00 6f 00 43 00 54 00 32 00 34 00 30 00 42 00 58 00 35 00 30 00 30 00 53 00 53 00 44 00 31 00 00 00 05 01 09 00 02 00 00 00 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 02 1f 03 12 0a 00 02 00 ff ff 00 00 7f ff 04 00 01 04 3e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 32 00 36 00 32 00 34 00 45 00 33 00 30 00 44 00 43 00 42 00 44 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 00 00 7f ff 04 00 41 4d 42 4f 41 4d 4e 4f ab 00 00 00 01 00 00 00 6f 00 4b 00 49 00 4e 00 47 00 53 00 54 00 4f 00 4e 00 20 00 53 00 48 00 53 00 53 00 33 00 37 00 41 00 32 00 34 00 30 00 47 00 00 00 05 01 09 00 02 00 00 00 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 02 1f 03 12 0a 00 04 00 ff ff 00 00 7f ff 04 00 01 04 3e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 35 00 32 00 30 00 42 00 36 00 32 00 37 00 38 00 36 00 30 00 30 00 46 00 46 00 44 00 34 00 20 00 20 00 20 00 20 00 00 00 7f ff 04 00 41 4d 42 4f
1 Like

:thinking: Looks pretty clean to me. . .

But I think the Boot Order is wrong :thinking:

Mine is a slightly different configuration because I use systemd-boot :

BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0001,2001,2002,2003
Boot0001* Fedora	HD(1,GPT,533f37a7-d987-4de1-9a24-9545607ba1b2,0x800,0x32c000)/\EFI\fedora\shim.efiRC
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 c0 32 00 00 00 00 00 a7 37 3f 53 87 d9 e1 4d 9a 24 95 45 60 7b a1 b2 02 02 / 04 04 2e 00 5c 00 45 00 46 00 49 00 5c 00 66 00 65 00 64 00 6f 00 72 00 61 00 5c 00 73 00 68 00 69 00 6d 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
    data: 52 43
Boot0003* Linux Boot Manager	HD(1,GPT,533f37a7-d987-4de1-9a24-9545607ba1b2,0x800,0x32c000)/\EFI\systemd\systemd-bootx64.efi
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 c0 32 00 00 00 00 00 a7 37 3f 53 87 d9 e1 4d 9a 24 95 45 60 7b a1 b2 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 73 00 79 00 73 00 74 00 65 00 6d 00 64 00 5c 00 73 00 79 00 73 00 74 00 65 00 6d 00 64 00 2d 00 62 00 6f 00 6f 00 74 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00

but it is pointing correctly to the ESP (EFI System Partition) to boot the system :

BootOrder: 0003,0001,2001,2002,2003

, while you are pointing to /\EFI\fedora\shimx64.efi :

Maybe someone with Grub will stop by and show their config. If not I’ll do it in a VM to test.

Added efibootmgr, f40, uefi

Then it would be interesting to see what is actuall in the ESP file system. Run

sudo find /boot/efi

At a minimum in should contain this

/boot/efi/EFI
/boot/efi/EFI/BOOT
/boot/efi/EFI/BOOT/BOOTX64.EFI
/boot/efi/EFI/BOOT/fbx64.efi
/boot/efi/EFI/fedora
/boot/efi/EFI/fedora/grub.cfg
/boot/efi/EFI/fedora/BOOTX64.CSV
/boot/efi/EFI/fedora/grubx64.efi
/boot/efi/EFI/fedora/mmx64.efi
/boot/efi/EFI/fedora/shim.efi
/boot/efi/EFI/fedora/shimx64.efi

You probably have quite a bit more files there.

PS:
Your efibootmgr listing looks good.

1 Like

Hi @vekruse, this is what I get back from that command:

/boot/efi
/boot/efi/EFI
/boot/efi/EFI/BOOT
/boot/efi/EFI/BOOT/BOOTIA32.EFI
/boot/efi/EFI/BOOT/BOOTX64.EFI
/boot/efi/EFI/BOOT/fbia32.efi
/boot/efi/EFI/BOOT/fbx64.efi
/boot/efi/EFI/fedora
/boot/efi/EFI/fedora/grub.cfg
/boot/efi/EFI/fedora/BOOTIA32.CSV
/boot/efi/EFI/fedora/BOOTX64.CSV
/boot/efi/EFI/fedora/gcdia32.efi
/boot/efi/EFI/fedora/gcdx64.efi
/boot/efi/EFI/fedora/grubia32.efi
/boot/efi/EFI/fedora/grubx64.efi
/boot/efi/EFI/fedora/mmia32.efi
/boot/efi/EFI/fedora/mmx64.efi
/boot/efi/EFI/fedora/shim.efi
/boot/efi/EFI/fedora/shimia32.efi
/boot/efi/EFI/fedora/shimx64.efi
/boot/efi/System
/boot/efi/System/Library
/boot/efi/System/Library/CoreServices
/boot/efi/System/Library/CoreServices/SystemVersion.plist
/boot/efi/mach_kernel

Funny that the message uses Fedora, while the configuration has lowercase fedora. Since the system boos, I wonder if something in Fedora is looking for \EFI\Fedora under the assumption of an EFI filesystem (e.g., FAT) that ignores case.

Hi @gnwiii, yes, sorry, it’s fedora, all lower case. This is the corrected message:

Failed to open \EFI\fedora\ - Not found

I still can’t solve this problem. Can someone please help me? :pray:

Unless it is some exotic hardware, I have no idea what it could be.

Did you try changing the BootOrder ?

Your BootOrder is currently :

BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0001

Change it to :

BootOrder: 0001,0000

if you do not know how, You can :

sudo efibootmgr -o 0001,0000

That doesn’t make sense – excuse me for saying this. But, current boot is 0000 and 0000 is the first in the boot order, and 0000 is the one that activates shim → grub2->kernel.

Entry 0001 is “Disco duro”, Spanish for “Hard Disk”.