5

Before I had:

  • Partition 1: 100MB (EFI)

  • Partition 2: 300GB Windows 7

Now I added these 2 partitions and installed Ubuntu 18.04:

Then I read a few things and realized:

  1. It's a bad idea to have 2 EFI partitions on the same disk. Is this correct indeed? Or is it the normal practice to have 2 EFI partitions for a Windows-Linux dual boot? Which solution is the best?

  2. Therefore I deleted "Partition 3". Of course I cannot boot on Ubuntu anymore, but I can boot on the Ubuntu Live USB. Now that I only have Partition 1, 2, 4, how to to recreate a boot loader for Ubuntu?

Basj
  • 201
  • 3
  • 11

1 Answers1

4

You could have copied the /EFI/Boot & /EFI/ubuntu folders from the second ESP to the first. And then used efibootmgr to update actual entry in UEFI to use correct ESP.

You can only have one working ESP per device. Boot flag is used by parted/gparted to define the ESP using a long GUID that the UEFI uses to find the ESP.

Easiest now just to reinstall grub2. And Boot-Repair makes that easy. If you have issues, post the link, otherwise I expect the auto fix will work, but be sure to boot Ubuntu live installer in UEFI mode & add Boot-Repair to it.

Please copy & paste the pastebin link to the Boot-info summary report ( do not post report), do not run the auto fix till reviewed.

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

https://help.ubuntu.com/community/Grub2/Installing#UEFI

oldfred
  • 12,583