26

In a non-English Ubuntu-it.org wiki page it's stated that the UEFI partition MUST be always placed at the start of the disk.

This is not the case in the English Ubuntu Community Help Wiki page.

So does the UEFI partition either "MUST" or "SHOULD" (assuming a bad wording in the former page) be first for some reason? If so why? Or this is totally irrelevant?

1
  • 1
    For my latest installation (Arch Linux + GRUB + GPT + UEFI), it is last.
    – muru
    Commented May 4, 2015 at 18:14

2 Answers 2

23

The key words "SHOULD", "MUST" and "MAY" (capitalised) in this answer are to be interpreted as described in RFC 2119.

An (U)EFI System Partition (ESP from now on):

The only official limit is:

  • the ESP MUST reside in the first 2.2 Terabytes of the disk.

So, the ESP MUST reside anywhere in those first 2.2 TB of the disk, but there is absolutely no need for the ESP to be the first partition or reside on the beginning of the disk whatsoever.
(It's just that some large company in Redmond, WA advises system integrators differently)...

I would put it as the last partition on the disk (if < 2.2TB) as it's only used to load other OSes, but that's just a personal, totally subjective opinion!

4
  • do you mean "if < 2.2 TB" in that last sentance? otherwise I don't think your advice makes sense...
    – KutuluMike
    Commented May 4, 2015 at 23:07
  • @Fabby, In practice would a non-FAT32 UEFI work fine?
    – Pacerier
    Commented May 4, 2015 at 23:37
  • 5
    The document linked to by "official limit" in your post refers to BIOS and MBR limitations. The ESP is an EFI construct, so BIOS limits don't apply to it. I have placed ESPs well above the 2TiB mark and successfully booted computers from those ESPs. That said, an ESP on an MBR disk would necessarily reside below the 2^32 sector (usually 2TiB) mark, or at least begin there. MBR is seldom used for system disks on EFI-based systems, though, so this limit barely merits a footnote.
    – Rod Smith
    Commented May 5, 2015 at 1:07
  • Here is one good reason for not having EFI partition be first. I have a SanDisk Extreme USB Flash drive that is dual ended. One side has a standard USB connector and the other a USB-C connector for phones. The drive has multiple 5 partitions on it for various Linux installs and one data partition. By placing the data partition first, both Windows and Android can mount and read/write. Android and any pre-creator's update Windows systems will only mount the first partition of a removeable drive.
    – Brian H.
    Commented Jul 24, 2018 at 2:45
13

The EFI specification specifically states that there are no limits on this detail:

UEFI does not impose a restriction on the number or location of System Partitions that can exist on a system.

(Version 2.5, p. 540.)

As a practical matter, putting the ESP first is advisable because this location is unlikely to be impacted by partition moving and resizing operations. For instance, suppose the ESP exists between OS A and OS B partitions, and you decide to delete OS B and give its space to OS A. In this case, you'll need to move the ESP before you can expand the OS A partition. Also, some tools, such as efibootmgr, use /dev/sda1 as the default location for the ESP. Thus, if you place the ESP elsewhere and then forget to override the defaults, you can create an unbootable entry.

Putting the ESP at the end of the disk can work almost as well in most cases, but there are some subtle problems with that approach. For one thing, if you change the number of partitions, the number of the ESP may no longer match its position on the disk, or some partitioning tools may renumber it. Either outcome can cause confusion or require reconfiguration. Also, if you use RAID and add disk space, an ESP at the end of the disk will suddenly become one in the middle, which may require you to move it.

Many pre-installed Windows systems put the ESP at position #2, with #1 being occupied by a small manufacturer-specific partition. Such a configuration works fine, and since the manufacturer's partition is also unlikely to be moved or deleted, this configuration isn't really any worse than putting the ESP at position #1. I wouldn't go out of my way to "fix" such a configuration, but I also wouldn't do it that way myself, if I were given a blank disk and told to start installing OSes.

Overall, if you have some compelling reason to create an ESP at other than the first position, feel free to do so; but if you're starting with a blank disk and have no compelling reason otherwise, I'd put the ESP first.

0

You must log in to answer this question.

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