1

I installed ubuntu 16.04 x64 on my Toshiba laptop via Bootable USB. I am booting with UEFI. Previously, only windows was installed on the laptop. I first chose 'delete disk and install ubuntu' option and when I restart, it wouldn't boot, instead I get the following error

Failed to open \EFI\BOOT\grubx64.efi - not found

and then

Reboot and Select proper Boot device or Insert Boot Media in selected Boot device

And then I tried the second answer in this link How to install Ubuntu and boot on Toshiba Satellite?. Still got the same error.

[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

returns

UEFI

I tried methods in this answer Clean Install of Ubuntu and this section Boot-Info. After I run the Boot-Info, the pastebin link I get is: 26107941

Any help is appreciated.

SOLUTION is in my answer.

oguz
  • 11
  • Could you please add a little more detail? What exactly did you do, what did you want to achieve and what happened instead? Did you encounter any warning or error messages? Please reproduce them in their entirety in your question. (see How do I ask a good question?) – dessert Dec 02 '17 at 22:28
  • Thank you, I improved my answer. I thought the paste-bin link would give people more insight about the situation then my further explanation, as I am not very experienced and I could fail elaborating the situation. – oguz Dec 02 '17 at 22:34
  • Well done! Please try if this answer helps you. – dessert Dec 02 '17 at 22:38
  • Thank you for the answer. But my problem is still going on. yet I got to boot succesfully at one time, it was totally random. I could never boot again. – oguz Dec 03 '17 at 22:31
  • That sounds like a hardware issue – please carefully check especially your drive's and memory's health. – dessert Dec 03 '17 at 22:51
  • If your /EFI/Boot/bootx64.efi is a copy of shimx64.efi, then you are missing the /EFI/Boot/grubx64.efi file, like the error message says. Copy it over from /EFI/ubuntu.grubx64.efi. – ubfan1 Dec 03 '17 at 23:01
  • @ubfan1 Thank you for your reply. I have booted from the USB now. My folder /media/ubuntu/a58fea47-5214-4a17-b847-b0d873065c1d/boot is empty. systemd-bootx64.efi is located at /media/ubuntu/a58fea47-5214-4a17-b847-b0d873065c1d/usr/lib/systemd/boot/efi, grubx64.efi.signed is located at /media/ubuntu/a58fea47-5214-4a17-b847-b0d873065c1d/usr/lib/grub/x86_64-efi-signed, shimx64.efi is located at /media/ubuntu/a58fea47-5214-4a17-b847-b0d873065c1d/usr/lib/shim Can you please clarify which file from which location to copy and paste? I couldnt figure out which one is supposed to be EFI/Boot – oguz Dec 03 '17 at 23:44
  • Use /usr/lib/shim/simx64.efi.signed to copy to /EFI/Boot/bootx64.efi and /usr/lib/grub/x86_64-efi-signe‌​d/grubx64.efi.signed copied to /EFI/Boot/grubx64.efi. Of course, these files (not renamed) should also be in /EFI/ubuntu if the install completed. The Toshiba will fall back to the /EFI/Boot versions if the first entry in boot order fails, before the second one is tried. – ubfan1 Dec 04 '17 at 00:46
  • It worked! Thanks! I added the solution steps. – oguz Dec 04 '17 at 01:57
  • If you solve your own problem, please place the solution as an answer and accept that answer. Adding "[SOLVED]" to your question title is not how questions are marked solved here. – thomasrutter Dec 04 '17 at 02:41

1 Answers1

0
  1. I first mounted sda1, the EFI partition. You can check yours with

    sudo fdisk -l
    

    and mount it with

    sudo mount /dev/sda1 /mnt
    
  2. Within this mounted sda partition, I copied grubx64.efi and shimx64.efi from /EFI/ubuntu to /EFI/Boot.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
oguz
  • 11