0

I messed up my UEFI boot. I used to have an ubuntu partition and a windows partition, booting from the efi partition.

But now I can't seem to boot on anything. I removed my windows partition via live ubuntu and gparted (and resized it).

I also ran boot-repair tool and followed the gparted FAQ.

You can find the boot-repair report.

The boot repair detects the grub2 partition and the ubuntu partition, but if I boot my system, I have nothing in the boot options... the hard drive is correctly detected.

What should I do?

I could just remove everything and re-install but I would much prefer not to have to re-install everything on my machine :(

dyesdyes
  • 103
  • 1
    Grub on gpt partitioned drives can boot in either UEFI mode using ESP - efi system partition (FAT32) or in BIOS mode using a tiny 1 or 2 MB bios_grub partition. It looks like you converted UEFI boot Ubuntu to BIOS boot with a huge bios_grub. The bios_grub probably was the ESP?? I would convert your sda1 back to an ESP, by formatting to FAT32 with boot flag with gparted. Then in Boot-Repair's advanced options do a total reinstall of grub to get UEFI version of grub. Be sure to boot Ubuntu installer in UEFI mode to run Boot-Repair in UEFI mode. – oldfred Jan 11 '19 at 16:54
  • It worked!! Thanks XXXX times! Create an answer for me to accept ? – dyesdyes Jan 11 '19 at 17:33

1 Answers1

2

Grub on gpt partitioned drives can boot in either UEFI mode using ESP - efi system partition (FAT32) or in BIOS mode using a tiny 1 or 2 MB bios_grub partition.

It looks like you converted UEFI boot Ubuntu to BIOS boot with a huge bios_grub. The bios_grub probably was the ESP?? I would convert your sda1 back to an ESP, by formatting to FAT32 with boot flag with gparted. Either use version in Ubuntu live installer or a gparted live ISO version.

https://gparted.sourceforge.io/index.php

Then in Boot-Repair's advanced options do a total reinstall of grub to get UEFI version of grub. Be sure to boot Ubuntu installer in UEFI mode to run Boot-Repair in UEFI mode.

https://help.ubuntu.com/community/Boot-Repair

Not sure if you recover the ESP, it it will have the Windows UEFI boot entry. If totally new partition it will not. Grub only boots working Windows and looks for the Windows ESP entry to boot from. But if Windows turns fast start back on, grub will not boot it and you must boot from UEFI boot entry to turn fast start off, or make other repairs. You can add a Windows entry by running repairs from your Windows repair disk or use efibootmgr in Ubuntu. See IV and restore Windows entry:

Dual boot Win 8 / Ubuntu loads only Win

oldfred
  • 12,100