How can I create an EFI partition while installing Ubuntu 21.04 in another disk partition where I also have Windows 10 installed?
tl;dr: Ubuntu can utilize your existing EFI partition. You also need to make sure that your new Ubuntu partition is formatted with a GPT partition table. The installer handles the rest automatically.
- Use an Ubuntu live USB to boot your computer.
- Connect to the internet
- Use the
aptpackage manager to install
gparted. You may need to
- When you open
gparted, see if a there is a small EFI partition beside your Windows partition. If there is not, your hardware probably doesn't support BIOS. If an EFI partition is there, your Ubuntu installer will automatically use that one.
- Resize your Windows partition with
gparted. Leave at least a bit of extra space in the Windows partition.
- Use the
fdiskutility to format the remaining partition to a type of
linux filesystemand to a
GPTpartition table - NOT
DOS/MBR. Make sure to write your changes to disk. (Lots of great
fdisktutorials on YouTube if this part sounds like Greek). 7.Run the installer on your new formatted partition. Since you have a
GPTpartition table and and existing EFI partition you'll be set.