Linux – Ubuntu/Windows 10 Dualboot – Grub missing

bootgrublinuxUbuntu

I previously installed a standalone copy of Windows 10 on my Microsoft Surfacebook. I intend to set up Ubuntu dual-boot alongside it. Unfortunately, after installation following these instructions, it seems that Windows still boots over Ubuntu — the GRUB loader is ignored?

I have tried the following:

  • Running boot repair from Live Ubuntu USB. This apparently runs and does some things, which prevents both Windows and Ubuntu from booting altogether — gets stuck with the Surfacebook loading animation, screen flashes, goes into UEFI.
  • Going into windows and trying to change the boot according to this post (Running bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi).
  • Installing Ubuntu by itself — for some reason, the GRUB refuses to show up, and no boot-repair operations are of any help.
  • Disabling fast boot and hibernation

Here is the info output of my boot-repair program: https://pastebin.com/N1J4H9eF

Tried running this command to rename the boot entry:

sudo efibootmgr -c -L "UEFI hard drive" -l "\EFI\Boot\bootx64.efi" -d /dev/nvme0n1 -p 2 

Which gave this error

Could not prepare Boot variable: No space left on device

Here is sudo efibootmgr -c (Which I think may be pertinent):

GUID Partition Table Header signature is wrong: 0 != 5452415020494645
GUID Partition Table Header signature is wrong: 0 != 5452415020494645
GUID Partition Table Header signature is wrong: 0 != 5452415020494645
GUID Partition Table Header signature is wrong: 0 != 5452415020494645
GUID Partition Table Header signature is wrong: 0 != 5452415020494645
GUID Partition Table Header signature is wrong: 0 != 5452415020494645
Could not prepare Boot variable: No space left on device

Here is a screenshot of GParted
screenshot of gparted for my SSD

Any help would be greatly appreciated. Been wrestling with this problem for more than a few days now, and just can't figure it out… would prefer not to do backend development on Windows!

Best Answer

Insert the bootable linux usb and boot from the usb. Then run

sudo apt-get install grub2

Sometimes, if loader is UEFI it causes problems. At first switch to BIOS and then try this.

Related Question