On boot: Failed to open \EFI\BOOT\grubx64.efi

Newbie here; sorry if I use the wrong terms.

Today I tried dual-booting Haiku on my Linux laptop. Since I don’t have a USB pen, I followed this article. Everything seemed to go well, until I tried to boot. I got this message and got returned to the GRUB boot menu:

Failed to open \EFI\BOOT\grubx64.efi - Not Found
Failed to load image ▮▮: Not Found
start_image() returned Not Found, falling back to default loader
Failed to open \EFI\BOOT\grubx64.efi - Not Found
Failed to load image ▮▮: Not Found
start_image() returned Not Found

Any ideas?

1 Like

We don’t use grub at all. Maybe you overwrote it?
Were you trying to add haiku to a grub installation?

1 Like

I was trying to add it to Grub

https://www.haiku-os.org/guides/booting

Haiku can be booted with Grub, but Haiku does not ship Grub efi executable.

Your problem is not related to Haiku. It seems Grub was once installed on you computer and now it is removed (or reconfigured). Haiku provides its own efi executable to start the OS.

To solve your problem, go to computer setup and configure default efi executable to be loaded. Alternatively, press the key combinations (depends on you motherboard) to select efi to start and choose the one for Haiku.

P.S. If you plan to use multiple OSes on the same EFI based computer, consider clear EFI partition layout, something like this:

EFI\
  BOOT\
    bootx64.efi | Default executable in many cases, put here your bootloader efi
  Grub\
    grubx64.efi | Copy it as EFI\BOOT\bootx64.efi to use Grub bootloader
  rEFInd\
    bootx64.efi | Copy it as EFI\BOOT\bootx64.efi to use rEFInd bootloader
  Microsoft\
    bootx64.efi | Loads Windows, configured in bootloader
  Haiku\
    bootx64.efi | Loads Haiku, configured in bootloader

Because may OSes tend to ignore all the rest, and the default bootloader in many cases is EFI\BOOT\bootx64.efi, each installed OS will overwrite whatever there is already at that location. So manually do a copy and keep the layout clear for you.

1 Like