4

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)

5

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?

  • 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 '15 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 '15 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 '15 at 1:58
3

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)

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.