Before I had:
Partition 1: 100MB (EFI)
Partition 2: 300GB Windows 7
Now I added these 2 partitions and installed Ubuntu 18.04:
- Partition 3: 100MB (second EFI partition) --> "Device for boot loader installation" /dev/sda3
- Partition 4: 100GB Ubuntu 18.04
Then I read a few things and realized:
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?
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?
efibootmgr
command would be required, with which parameters? (Could you include it?) – Basj Jun 27 '20 at 07:33man efibootmgr
Some examples here: https://askubuntu.com/questions/486752/dual-boot-win-8-ubuntu-loads-only-win & https://askubuntu.com/questions/668506/changed-the-uefi-motherboard-on-a-dell-laptop-now-it-says-no-os-detected It defaults to first drive, so if ESP not sda1, you have to add parameters for drive & partition. – oldfred Jun 27 '20 at 13:16