About The GPT
About The GPT
About The GPT
A partition is a contiguous space of storage on a physical or logical disk that functions as though
it were a physically separate disk. Partitions are visible to the system firmware and the installed
operating systems. Access to a partition is controlled by the system firmware before the system
boots the operating system, and then by the operating system after it starts.
Another common practice is to use partitioned or "hidden" sectors to hold specific information.
That practice is undocumented and results in severe system problems that are difficult to
debug. Over the years, vendor-specific implementations and tools have been released to the
public, making support difficult.
The GPT disk partition format is well defined and fully self-identifying. Data critical to platform
operation is located in partitions and not in unpartitioned or "hidden" sectors. GPT disks use
primary and backup partition tables for redundancy and CRC32 fields for improved partition
data structure integrity. The GPT partition format uses version number and size fields for future
expansion.
Each GPT partition has a unique identification GUID and a partition content type, so no
coordination is necessary to prevent partition identifier collision. Each GPT partition has a 36-
character Unicode name, which means that any software can present a human-readable name
for the partition without any additional understanding of the partition.
The maximum partition (and disk) size is a function of the operating system version. Windows
XP and the original release of Windows Server 2003 have a limit of 2TB per physical disk,
including all partitions. For Windows Server 2003 SP1 Windows XP x64 edition, and later
versions, the maximum raw partition of 18 exabytes can be supported. (Windows file systems
currently are limited to 256 terabytes each.)
12. If the disk is larger than the maximum size an MBR can report, will the entire disk
contents be protected?
The EE partition in the Protective MBR is specified to be the maximum size allowable in an MBR.
Top of page
14. Can the 32-bit version of Windows XP read, write, and boot from GPT disks?
No. The 32-bit version will see only the Protective MBR. The EE partition will not be mounted or
otherwise exposed to application software.
15. Can the 32-bit versions of Windows Server 2003 read, write, and boot from GPT disks?
All versions of Windows 2003 since Server Pack 1 can use GPT partitioned disks for data.
Booting is only supported for Itanium-based systems.
16. Can Windows Vista and Windows Server 2008 read, write, and boot from GPT disks?
Yes, all versions can use GPT partitioned disks for data. Booting is only supported for EFI-based
systems.
17. Can Windows 2000, Windows NT 4, or Windows 95/98 read, write, and boot from GPT?
No. Again, legacy software will see only the Protective MBR.
18. What about mixing and matching GPT and MBR disks on the same system?
GPT and MBR disks can be mixed on systems that support GPT, as described earlier the
following restrictions apply:
•Systems that support EFI require that the boot partition must reside on a GPT disk. Other hard
disks can be either MBR or GPT.
•Both MBR and GPT disks can be present in a single dynamic disk group. Volume sets can span
both MBR and GPT disks. However, the MBR cylinder alignment restriction might cause some
difficulties mirroring or striping MBR and GPT disks.
The media manufacturer performs any MBR partitioning of removable media. If the media does
have an MBR, only one partition is supported. There is little user-discernible difference between
MBR-partitioned media and superfloppies.
Examples of removable media include floppy disk drives, JAZ disk cartridges, magneto-optical
media, DVD-ROM, and CD-ROM. Hard disk drives on external buses such as SCSI or IEEE 1394
are not considered removable.
21. What is the default behavior of Windows XP 64-Bit Edition Version 2003 when
partitioning media?
For Windows XP 64-Bit Edition Version 2003 only (for Itanium-based systems), fixed disks are
partitioned using GPT partitioning. GPT disks can be converted to MBR disks only if all existing
partitioning is first deleted, with associated loss of data.
22. What is the default behavior of the 32-bit version of Windows XP, Windows Server 2003
and Windows XP x64 when partitioning media?
Only MBR disks can be used. MBR disks cannot be converted to GPT disks.
23. How can a drive letter in the operating system be mapped to a partition in EFI firmware?
There is no inherent mapping between drive letter and partition that can be used to determine
one from the other. A basic data partition must be identified by its partition GUID.
Windows XP supports only MBR partitioning on detachable disks. For more about removable
media, see questions 19-21. Later versions of Windows support GPT partitions on detachable
disks.
Top of page
28. Do only GPT Disks have ESPs? No, MBR disks can also have ESPs. EFI specifies booting from
either GPT or MBR. The ESP on an MBR disk is identified by partition type 0xEF. However,
Windows does not support booting EFI from MBR disks or 0xEF partitions..
35. Where should a system manufacturer place files such as platform diagnostics or other
value-added files?
The preferred option is for system manufacturers to place value-add contents in an OEM-
specific partition. Just like MBR OEM partitions, the contents of GPT OEM (or other
unrecognized) partitions are not exposed (given drive letters or returned in volume lists). Users
are warned that deleting the partition can cause the system to fail to operate. An OEM-specific
partition should be placed before the MSR and after any ESP on the disk. Although not
architectural, this placement has the same benefits as placing the ESP first. For example, it is
also impossible to span volumes when an OEM-specific partition is logically between the two
data partitions you are attempting to span.
Placement in the ESP is an option for applications or files that execute in the pre-operating
system boot environment. However, the ESP is architecturally shared space and represents a
limited resource. Consuming space in the ESP should be considered carefully. Files that are not
relevant to the pre-operating system boot environment should not be placed in the ESP.
39. Why must the MSR be created when the disk is first partitioned?
After the disk is partitioned, there will be no free space left to create an MSR.
40. How big is the MSR?
When initially created, the size of the MSR depends on the size of the disk drive:
Top of page
All basic data partitions on the drive should be contiguous. As noted above, placing an OEM-
specific or other unrecognized partition between data partitions imposes limitations on later
volume spanning.
44. Will end users see the ESP, MSR, and OEM-specific partitions?
The user won't see these partitions exposed in Windows Explorer, nor is any recognized file
system exposed to legacy programs such as Context Indexing. The ESP, OEM-specific, and other
unrecognized partitions will be visible only in the Disk Management MMC snap-in since they
will not have a recognizable file system.
45. What partitions are mounted by default by Windows?Windows XP exposes only basic data
partitions. Other partitions with FAT file systems may be mounted, but not exposed only
programmatically. Only basic data partitions are assigned drive letters or mount points.
The ESP FAT file system is mounted, but not exposed. This allows programs running under
Windows to update the contents of the ESP. Assigning a drive letter to the ESP using
'mountvol /s' will allow access to the partition. Access to the ESP requires admin privilege.
Although the MSR, and any partitions created from the MSR, could have recognizable file
systems, none are exposed.
Any OEM-specific partitions or partitions associated with other operating systems are not
recognized by Windows. Unrecognized partitions with recognizable file systems are treated like
the ESP. They will be mounted, but not exposed. Unlike MBR disks, there is no practical
difference between OEM-specific partitions and other operating system partitions; all are
"unrecognized."
46. How can the user see the ESP, OEM, and other unrecognized partitions?
The user can use disk management tools such as the Disk Management utility or the
diskpart.exe Windows command line. The MSR and any partitions created from the MSR are
only visible from the command line.
•A data container partition corresponding to the MBR partition 0x42, with the following GUID:
DEFINE_GUID (PARTITION_LDM_DATA_GUID, 0xAF9B60A0L, 0x1431, 0x4F62, 0xBC, 0x68,
0x33, 0x11, 0x71, 0x4A, 0x69, 0xAD);
•A partition to contain the dynamic configuration database, with the following GUID:
DEFINE_GUID(PARTITION_LDM_METADATA_GUID, 0x5808C8AAL, 0x7E8F, 0x42E0, 0x85,
0xD2, 0xE1, 0xE9, 0x04, 0x34, 0xCF, 0xB3);
Volumes are created in the data container and mounted by default. Again, this is exactly the
same as the contents of 0x42 MBR partitions.
The first step in conversion is to separate a portion of the MSR to create the configuration
database partition. All non-bootable basic partitions are then combined into a single data
container partition. Boot partitions are retained as separate data container partitions. This is
analogous to conversion of primary partitions.
Windows XP and later versions of the Windows operating system differs from Windows 2000 in
that basic and extended partitions are preferentially converted to a single 0x42 partition, rather
than being retained as multiple distinct 0x42 partitions as on Windows 2000.
49. Can a system contain a mix of GPT and MBR dynamic disks?
Yes. See answer #18 earlier.
Windows Firmware
Diskpart.efi Disk Partition Tool ESP MSR Data
Diskpart.exe Disk Partition Tool ESP MSR Data
Diskmgmt.msc Logical Disk ESP Data
Manager
Explorer.exe File Explorer Data
You can also develop your own tools, using the Microsoft Platform SDK APIs, to access the GPT
disk partitions at their primitive levels.
53. Can a disk be converted from GPT to MBR, and vice versa?
Yes, but only if the disk contains no partitions or volumes. Any data on the disk will be
destroyed.
Top of page
56. Is there any way to copy a whole GPT disk using the OPK imaging tools?
Yes; however, there are some key caveats. The OEM Preinstallation Kit (OPK) initializes the Disk
and Partition GUIDs to zero. On first boot of Windows, the operating system generates unique
GUIDs. The OPK only supports generation of ESP, MSR, and basic data partitions.
If an application has recorded any Disk or Partition GUIDs it may break. Any applications,
drivers, utilities, or firmware implementations supplied by system manufacturers or application
vendors that rely on GUIDs should be capable of handling GUIDs that change from the OPK
initialization values to those generated by the operating system.
For example, consider a possible disk configuration called BOOT_DISK. In the event of business
failure recovery, MAKE BOOT_DISK would allow the customer to completely repartition a boot
disk to the original factory defaults.