Why I need several boot partitions (EFI and bios grub)?
Solution 1
Short answer: What Timur Fayzrakhmanov wrote is right, replace the /boot
-partition with an EFI partition.
What I know or found out:
- For booting UEFI you need a FAT32 EFI partition, one for each drive is sufficient and can handle several operating systems (this depends mostly on your UEFI firmware).
- For booting Linux in legacy mode on a GPT drive you need a BIOS-GRUB-partition without any filesystem and flagged as BIOS_GRUB.
- For booting another legacy operating system from a GPT partition table the general advice is that you need a separate BIOS-BOOT-partition. To my experience and as far as I can remember just installing Windows 7/8 in legacy mode will create the necessary partitions (IIRC MSR, BOOT and OS).
- The
/boot
-partition that is sometimes suggested for advanced setups (RAID, Full Disk Enrcyption, etc.) is really just for advanced systems. With UEFI a boot partition for Linux isn't really necessary for advanced setups either, because the EFI partition can be configured hold the kernel and initrd images as well. The gummiboot developers published a specification how they like to see it implemented and published a new version just a few days ago that would combine all the necessary files and configuration in one file.
So for UEFI and MBR booting you would at least need an EFI partition (all EFI bootable OS) and a BIOS_GRUB partition (GRUB PC manages all legacy OS). Don't remove or reuse any existing MSR partition. You can try to install a Windows 7 EFI loader to the EFI partition with bcdboot
, the Windows 8 version has some more improvements like the /f uefi
option.
Booting a /
, /boot
, swap
and /home
4 partition layout from GPT in BIOS as well as UEFI mode is not possible, you need a partition for each mode. However with GPT there is no real limitation.
I posted further details/instructions in Is it still possible to install Ubuntu to an external harddrive with UEFI?
Solution 2
To install Ubuntu on GPT drive and UEFI there is must be "EFI boot partition". The other partitions like "/home", "/boot" are optional. For me optimal are the following partitioning:
- EFI boot partition
- swap
- / (root)
- /home
and that's all)
Related videos on Youtube
Timur Fayzrakhmanov
Updated on September 18, 2022Comments
-
Timur Fayzrakhmanov over 1 year
I'm trying to understand how to properly partitioning the disk for future Ubuntu installations.
The reason: after trying to install Windows 7 alongside Ubuntu, I enabled "Legacy mode" on my HP pavilon laptop's BIOS (I think it is EFI, but it looks like traditional BIOS). For now I've understand that is complicated task to use GPT and EFI on Windows 7. However at the moment it doesn't matter, because my Ubuntu doesn't start, at the startup EFI says that "no operation system have installed, please check the disk". I can successfully start Ubuntu by choosing "boot from EFI file" option and specifying boot file at startup.
Please see the screen shot below. This is how my disk looks like:
I've read these two very helpful topics: efi-boot-partition-and-biosgrub-partition and how-to-use-manual-partitioning-during-installation. But can't find analogical situation.
So the questions are: Can I install Ubuntu 14.10 with only 4 parts: "/", "/boot", "swap" and "/home"? What the partitions are odd here? (in the example above)
-
Rod Smith over 9 yearsI mostly agree with this; however, Windows ties its boot mode (BIOS vs. EFI) to its partition table type (MBR vs. GPT): MBR is usable only with BIOS/CSM/legacy boots and GPT is usable only with EFI/UEFI boots. Thus, enabling legacy support to install Windows to an existing GPT disk was a mistake. Linux is much more flexible about this, which can lead people down blind alleys (a BIOS-mode Linux install to a GPT disk that already holds Windows, say).
-
Csabi Vidó over 9 years@RodSmith May be a misunderstanding on my side but this works, even though it's not optimal. Trying to install legacy with other GPT drives present though seems to be not possible.
-
Rod Smith over 9 yearsThe question/answer you referenced involves two disks, one GPT and one MBR. Timur appears to have a single disk, and in that situation I stand by my statement that Windows ties its boot mode to the disk's partition table type. (Hybrid MBRs, commonly used on Macs, can twist the rules into a pretzel shape, but I wouldn't recommend doing that on a UEFI-based PC.)
-
Ed_ almost 8 yearswould you give some rough percent to each partition
-
Timur Fayzrakhmanov almost 8 yearsEFI - 350MB, swap - twice of RAM (in my case is 6GB), / - 25GB, /home - 300GB and the last 150GB I leave for Windows.
-
Tim about 5 yearsThanks. I have some trouble understanding your reply, though it is a great one. unix.stackexchange.com/questions/502145/…
-
16851556 about 3 yearsSo if i am having Linux in MBR mode, i can format FAT32 the /boot partition an add, boot, esp flags and then use it for EFI (grub-install ...;update-grub wiki.manjaro.org/… ) and it will make the mounted /boot partition ready to boot my system under UEFI? Then converting the MBR to GPT using gdisk?