22

I wonder what the GPT Reserved Partition and the GPT EFI System Partition are for. Do I need them and what would happen if I removed them?

Also what is it for?

I mean the 2nd and 3rd one in the picture.

Partition manager screenshot

6
  • I'm asking because I'm trying to install linux and when I install it (Crunchbang) when I boot it shows ubuntu there even though I don't ahve that. So I'm wondering if it's from an old install. Oct 5, 2013 at 17:49
  • Have you opened them to see what files are in there? Check all of the first three partitions listed.
    – Synetech
    Oct 5, 2013 at 17:52
  • I can't they are hidden in windows. Oct 5, 2013 at 18:06
  • You can assign a drive letter to them with the Disk-Management snap-in (diskmgmt.msc).
    – Synetech
    Oct 5, 2013 at 22:00
  • Deleting those partitions is bad advice. Don't mess with them. If you're interested, search, like I did: UEFI/GPT-based hard drive partitions. Though you could have malware on your system, in which case you should backup all your valuable data, run everything through anti-malware (anti-virus) software and clean all your files, do the same on the system (could be a BIOS/UEFI rootkit) and then reinstall Windows. But otherwise: leave those partitions alone.
    – luttztfz
    Sep 2, 2023 at 16:02

2 Answers 2

31

I think that proper answer needs some technical details.

Introduction

Your computer probably has only one hard disk. What you can see in the window presented on a screenshot are in fact partitions, even if your system refers to them as disks.

Generally speaking, drives can be used without partitioning. Floppy disks used to work like that.[1] But using partitions has many advantages on drives with higher caapcity, just to name some of them:

  • You can have two OSes sitting on the same hard drive and not interfering with each other. Each one will treat its partition as a logical drive and won't mess with other ones unless you tell it to.
  • You can logically separate your data. If one partition becomes corrupted for some reason, other partitions will very likely remain intact.
  • Using partitions is better than using multiple smaller hard drives, because your system is quieter, consumes less energy and you can resize, delete, move them around etc.
  • You can use some parts of the hard drive for some special purposes.

Partition tables

Your hard drive has a partition table on it. It's a structure that describes its partition layout.

Until around 2010, MBR partitioning scheme was used in most cases. It was called so because the partition table was inside a Master Boot Record – a reserved part of the disk (the very first physical sector) that contains the first bootstrap code that's read from the disk, and also contains the partition table for the drive - which tells how many partitions there are, where they are, and what file system type each one uses (eg. FAT32, NTFS etc.)

During bootstrap, the machine's firmware reads the MBR code and transfers control to it. The MBR code in turn reads the first block of the Volume Boot Record from the active partition that's identified in the partition table, and transfers control to it. That code in turn reads the rest of the VBR, which, finally, loads appropriate files from the partition and boots the operating system.

This scheme had a number of advantages. It was very simple to implement and use, even on old hardware or when only limited disk space was available. What's more, the VBR code (written during OS installation) is the first executed piece of code that has to understand file systems, so BIOSes could be kept relatively simple and compact. But MBR partition tables are now 30 years old. Hardware and software has changed. A major limit is that the format of the partition table only supports hard drives of about 2 TiB in size. There were many other problems with MBR partitioning.

MBR partition tables are now superseded by GUID Partition Tables, or GPT for short. That's the type of partition table you have on your hard disk (if you didn't, you wouldn't have an "EFI system partition"[2]). GPTs don't have an MBR[3] and are complemented by UEFI – new type of firmware that replaces legacy BIOSes. (That is, to boot from a GPT disk, your machine must have UEFI firmware.) UEFI doesn't have to rely on Volume Boot Records provided by single partitions, but can rather use OS loaders provided by OSes.

How booting works

When BIOS is booting from a hard disk, it's first looking at the MBR; the partition table in the MBR allows the MBR code to locate and identify the active partition; the code from the active partition's Volume Boot Record locates, reads, and transfers control to the OS's loader.

UEFI is more sophisticated. The UEFI firmware is capable of understanding at least some details of a FAT-formatted partition, enough to locate an executable file, load it into RAM, and transfer control to it. For Windows this file is bootmgr.exe.

The UEFI firmware looks for a partition containing such files. It's the one called "EFI System partition" on your screenshot. (It's identified as an "EFI system partition" by a numeric identifier, a GUID, that's inside the partition. Only one such partition is permitted per hard drive. And since the UEFI firmware only understands the FAT family of file systems, the EFI system partition should preferably be formatted with FAT32.)

Then it reads all available OS loaders from that partition and checks if the one you've specified as default is present. It's likely that you can press some button before UEFI starts booting to choose another OS loader. So UEFI is independent from any boot code found in an MBR or VBR; instead it's relying on loaders provided by installed OSes.

It's worth noting that many UEFIs contain a Compatibility Support Module, although sometimes disabled by default. It restores backwards compatibility with MBR-based BIOS boot sequence. Unfortunately, BIOS booting requires some additional initialization to be performed by system firmware, which makes booting slower overall.

So, can I remove the EFI System Partition?

At this point you should understand that deleting the EFI System partition will erase all OS loaders, thus making it impossible to boot that hard drive with UEFI.

The Reserved Partition

It's a placeholder invented by Microsoft. It doesn't contain any meaningful data and it's there just in case you'd ever need to create some additional partition for special uses. In that case, Windows will shrink the Reserved partition and create a new one using the reclaimed space. Deleting it shouldn't do any harm now, but you may face some problems in the future.

The Big Question

Now, before you delete any of these, you should ask yourself a question: "why would I do that?"

The free disk space you gain probably isn't worth it. Your hard drive has 700 GB of usable disk space. Those two partitions take up less than 400 MB combined. That's 0,05714% of your hard drive. You'll recover just a little piece of the disk, while risking boot failure and possible problems with Windows in the future.

Another reason why you would do that made sense for MBR partition tables – they had a limitation of 4 partitions, so every single one was precious. That's not the case with GPT, so no reason to delete those two here.


[1] Modern drives formatted entirely with a single filesystem, without a partition table, are still sometimes referred to as "superfloppies".

[2] As a Windows user, because Windows required GPT to boot in EFI mode. It's an arbitrary limitation that Linux doesn't have.

[3] Thats's not entirely true. GPT specifies the first sector where the MBR resided as reserved and doesn't make any use of it. One can put a dummy MBR table with a pseudo-partition that spans over first 2 TB of the hard drive there to trick legacy tools that don't support GPT into thinking that a drive contains valid MBR partition table and a single partition with no free space. This at least hints that there's some usable data on the drive, rather than making it seem empty.

2
  • Excellent write-up. Your third point at the top is not entirely correct. There is a severe performance hit from using multiple partitions on a standard HDD (as opposed to an SSD) because the head has to move between different partitions when doing I/O from more than one at the time.
    – Itai
    Apr 20, 2014 at 1:41
  • 1
    According to Microsoft every GPT disk must have an MSR. The fact that a system still works without it doesn't mean it always will.
    – jiggunjer
    Jan 12, 2017 at 5:02
6

From Windows and GPT FAQ

The ESP (EFI System partition) contains the NTLDR, HAL, Boot.txt, and other files that are needed to boot the system, such as drivers.

The Microsoft Reserved Partition (MSR) reserves space on each disk drive for subsequent use by operating system software.

You must log in to answer this question.

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