A partition type (sometimes referred to as a partition ID or partition type code) is a byte-sized or GUID-based identifier used in partition tables to indicate the file system contained within the partition, the operating system that owns the partition, or the specific purpose of the partition (e.g., boot, recovery, system).
Master Boot Record (MBR)
In the MBR partitioning scheme, the partition type is a single byte (8 bits) located in the partition table entry (offset 0x04 within the 16-byte entry). This allows for 256 possible values (0x00–0xFF).
- Historical Allocation: Originally, values were assigned ad-hoc by operating system vendors (e.g., Microsoft, IBM, Linux).
- Common Values:
0x00: Empty / Unused0x01: FAT12 (CHS addressing)0x04,0x06,0x0E: FAT16 variants0x0B,0x0C: FAT32 variants0x07: NTFS / exFAT / HPFS / QNX20x83: Linux native filesystems (ext2, ext3, ext4, xfs, btrfs, etc.)0x82: Linux swap0x8E: Linux LVM (Logical Volume Manager)0xA5,0xA6: FreeBSD / OpenBSD / NetBSD0xEE: GPT Protective Partition (indicates a GPT disk to MBR-aware tools)0xEF: EFI System Partition (ESP) on MBR disks
- Extended Partitions: Values
0x05(CHS) and0x0F(LBA) denote an extended partition, which acts as a container for logical drives defined in chained Extended Boot Records (EBRs).
GUID Partition Table (GPT)
In the GPT scheme, the partition type is a 128-bit Globally Unique Identifier (GUID). This provides a vastly larger namespace, eliminating the collision issues of the single-byte MBR IDs.
- Structure: Defined by the UEFI Specification.
- Common Type GUIDs:
C12A7328-F81F-11D2-BA4B-00A0C93EC93B: EFI System Partition (ESP)E3C9E316-0B5C-4DB8-817D-F92DF00215AE: Microsoft Reserved Partition (MSR)EBD0A0A2-B9E5-4433-87C0-68B6B72699C7: Microsoft Basic Data Partition (NTFS, exFAT, ReFS)0FC63DAF-8483-4772-8E79-3D69D8477DE4: Linux Filesystem Data0657FD6D-A4AB-43C4-84E5-0933C84B4F4F: Linux SwapE6D6D379-F507-44C2-A23C-238F2A3DF928: Linux LVM48465300-0000-11AA-AA11-00306543ECAC: Apple APFS / HFS+53746F72-6167-11AA-AA11-00306543ECAC: Apple Core Storage
Function and Limitations
- Hint vs. Enforcement: The partition type serves primarily as a hint to operating systems, bootloaders, and disk utilities. It does not strictly enforce the file system format; a partition marked as
0x07(NTFS) could technically be formatted with FAT32, though this causes interoperability issues. - Auto-detection: Modern operating systems often ignore the partition type in favor of probing the filesystem superblock (magic numbers) to determine the actual format.
- Special Purposes: Specific types are required for firmware boot processes (e.g., the ESP must have the correct GPT Type GUID or MBR ID
0xEF/0xEEcontext for UEFI boot) or for features like BitLocker (requiring a specific MSR partition type) or Linux LVM assembly.
Registration and Standards
- MBR: No central authority historically governed assignments, leading to collisions (e.g.,
0x83used for Linux, but also used by Minix in early versions). Modern assignments are typically coordinated via the Linux kernelinclude/uapi/linux/genhd.hheader or the UEFI Forum for cross-platform visibility. - GPT: Type GUIDs are standardized by the UEFI Specification. New type GUIDs can be generated randomly (UUIDv4) by vendors for proprietary partitions, ensuring global uniqueness without central registration.