5

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:

enter image description here

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)

2 Answers 2

7

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?

5
  • I 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).
    – Rod Smith
    Feb 4, 2015 at 21:04
  • @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.
    – LiveWireBT
    Feb 4, 2015 at 21:22
  • The 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.)
    – Rod Smith
    Feb 5, 2015 at 1:58
  • 1
    Thanks. I have some trouble understanding your reply, though it is a great one. unix.stackexchange.com/questions/502145/…
    – Tim
    Feb 21, 2019 at 18:43
  • So 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?
    – 16851556
    Mar 4, 2021 at 23:49
4

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:

  1. EFI boot partition
  2. swap
  3. / (root)
  4. /home

and that's all)

2
  • would you give some rough percent to each partition
    – Ed_
    Aug 5, 2016 at 1:42
  • 1
    EFI - 350MB, swap - twice of RAM (in my case is 6GB), / - 25GB, /home - 300GB and the last 150GB I leave for Windows. Aug 11, 2016 at 8:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .