# GUID分区表

**GUID分区表**（GUID Partition Table，GPT）是一种用于存储设备的分区方案，它使用64位逻辑块地址和全局唯一标识符（GUID）来描述分区，是Intel x86系统上主引导记录（MBR）方案的指定后继者。它起源于20世纪90年代末Intel的可扩展固件接口（EFI）工作，该接口现为UEFI论坛管理的统一EFI（UEFI）规范。<sup>[1](https://www.digitalforensics.ch/nikkel09.pdf)</sup><sup> • </sup><sup>[2](https://www.intel.com/content/dam/doc/product-specification/efi-v1-10-specification.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由Intel于20世纪90年代末作为EFI规范的子集开发，旨在取代DOS/MBR方案<sup>[1](https://www.digitalforensics.ch/nikkel09.pdf)</sup> |
| 磁盘布局 | LBA 0处为保护性MBR，LBA 1处为主头，随后是分区项数组，最后一个LBA处为备份头<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup> |
| 最大容量 | 理论上最多2^64个逻辑块；64位大小字段在512字节扇区下允许8 ZiB，而MBR为2 TB<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup><sup> • </sup><sup>[1](https://www.digitalforensics.ch/nikkel09.pdf)</sup> |
| 分区数量 | 规范允许几乎无限数量；Windows将GPT磁盘限制为128个分区<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup> |
| 冗余 | 主分区表和备份分区表，均含CRC32字段以保证完整性<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup> |
| 标识 | 每个分区携带唯一GUID和分区内容类型，外加36个字符的Unicode名称<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup> |
| 平台规则 | 在UEFI系统上，Windows要求包含Windows分区的驱动器使用GPT<sup>[5](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions?view=windows-11)</sup> |

## 磁盘布局

GPT磁盘以位于LBA 0（第一个逻辑块）的**保护性MBR**开头。UEFI规范要求在可引导GPT磁盘上设置它，以保持与不理解GPT分区结构的工具的兼容性。<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup>其OSType字段设为0xEE（GPT保护），StartingLBA设为0x00000001。<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup>保护性MBR是一个普通MBR，包含一个类型为0xEE的单一分区，为该分区分配尽可能多的驱动器空间。<sup>[6](https://keramics.github.io/gpt.html)</sup>MS-DOS FDISK和Windows NT磁盘管理器等传统MBR工具原本会将GPT磁盘视为未分区空间，现在则会看到这个跨越整个磁盘的保护性分区。<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup>

设备上存储两个GPT头结构：主头和备份。主GPT头必须位于LBA 1（第二个逻辑块），备份GPT头位于设备的最后一个LBA；每个头中的MyLBA和AlternateLBA字段互相指向对方。<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup>头签名必须为ASCII字符串“EFI PART”，编码为64位常量0x5452415020494645。HeaderSize必须在92字节与逻辑块大小之间，头修订版本为1.0（0x00010000）。<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup>

主头之后是**分区项数组**。必须为其预留至少16,384字节，每个分区项大小必须为128 × 2^n字节。<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup>在512字节块下，这为分区项预留32个块，因此首个可用LBA至少为34（1块用于保护性MBR，1块用于头，32块用于分区项数组）；在4096字节块下，首个可用LBA的最小值为6。<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup>

## 容量与限制

GPT的寻址全程为64位。理论上GPT磁盘长度可达2^64个逻辑块，逻辑块通常为512字节。<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup>微软文档给出的最大分区大小为18 EB，约合1880万TB。<sup>[5](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions?view=windows-11)</sup>规范允许几乎无限数量的分区，但Windows实现将GPT磁盘限制为128个分区，受限于为分区项预留的空间。<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup>分区最大数量通常为128，但也可以为256，取决于具体实现。<sup>[6](https://keramics.github.io/gpt.html)</sup>

扇区大小会改变固定开销。在512字节扇区下，可用空间之前预留前34个LBA；在4K原生（4096字节扇区、无512字节模拟的驱动器）扇区下仅预留6个，因为同样的16,384字节分区项数组占用的块数更少。<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup>微软对EFI系统分区的最小大小为：512原生或512e扇区设备上200 MB，4K原生扇区设备上300 MB。<sup>[5](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions?view=windows-11)</sup>

## 与MBR的比较

与MBR的对比在容量方面最为鲜明。MBR分区大小字段固定为32位宽，将分区限制在2 TB（0xFFFFFFFF个扇区）；GPT使用64位分区大小字段，支持最多0xFFFFFFFFFFFFFFFF个扇区，在512字节扇区下即8 ZiB。<sup>[1](https://www.digitalforensics.ch/nikkel09.pdf)</sup>MBR磁盘仅支持四个主分区表项，超过四个需要称为扩展分区的次级结构；GPT不需要扩展分区。<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup>

两种方案在结构和标识上也不同。GPT磁盘使用主分区表和备份分区表实现冗余，并使用CRC32字段提高分区数据结构完整性。<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup>由于每个GPT分区既携带自身GUID用于标识，又携带指示其内容的类型，标识符无需任何协调机构也不会冲突；分区还被赋予最多36个字符的Unicode名称。<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup>

## 操作系统与工具支持

Windows的支持是分阶段到来的。最初仅基于64位Itanium的系统支持从GPT引导；从[Windows Server](https://www.edgepedia.org/zh/windows-server) 2003 SP1开始，所有版本的Windows Server均可将GPT分区磁盘用于数据，Windows Server 2003 SP1、Windows XP x64及更高版本支持18 EB的原始分区，不过Windows文件系统目前每个限制为256 TB。<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup>在基于UEFI的系统上，微软要求包含Windows分区的驱动器格式化为GPT；其他驱动器可使用GPT或MBR。<sup>[5](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions?view=windows-11)</sup>

基于BIOS的系统也可以从GPT引导。保护性MBR与普通MBR一样具有引导代码区域，可用于基于BIOS的系统上的BIOS/GPT引导。<sup>[7](https://wiki.archlinux.org/title/GUID_Partition_Table)</sup>

Linux的GPT工具包括util-linux中的fdisk、GPT fdisk（gdisk、cgdisk、sgdisk）以及Parted。fdisk和parted也支持MBR，而gdisk仅支持GPT；fdisk和GPT fdisk可以创建分区结构的备份，GPT fdisk生成二进制备份。<sup>[7](https://wiki.archlinux.org/title/GUID_Partition_Table)</sup>

## 冗余、恢复与数据完整性

GPT使用校验和保护自身元数据。GPT头包含头本身的32位CRC（计算时将HeaderCRC32字段置零），以及分区项数组的CRC32；更新分区项数组CRC时需要同时更新头CRC。GPT头和分区项使用UEFI指定的CRC算法（而非POSIX cksum）以CRC-32保护。<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup><sup> • </sup><sup>[8](https://github.com/u-boot/u-boot/blob/100e12ea/doc/README.gpt)</sup>

更新顺序有明确规定，以确保磁盘上始终保留有效副本。软件必须先更新备份GPT再更新主GPT，这样如果设备大小发生变化（例如卷扩展期间）且更新被中断，备份GPT仍位于磁盘上的正确位置。<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup>如果主GPT无效，则使用备份恢复；如果主GPT和备份GPT均损坏，则该块设备被定义为不具有有效的GUID分区头。<sup>[3](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)</sup>恢复工具直接利用这一结构：fdisk可以创建分区表的备份，GPT fdisk可以创建结构的二进制备份。<sup>[7](https://wiki.archlinux.org/title/GUID_Partition_Table)</sup>

## 混合MBR

混合GPT包含一个常规MBR，其分区表寻址与GPT相同的分区，而常规GPT仅包含一个用于占位的保护性MBR。libfdisk文档建议不要使用混合GPT，因为受MBR限制。<sup>[9](https://cdn.kernel.org/pub/linux/utils/util-linux/v2.34/libfdisk-docs/libfdisk-UEFI-GPT.html)</sup>所涉限制即上文所述：四个表项和32位大小字段，因此混合方案的MBR一侧无法忠实表示大型或含大量分区的GPT布局。<sup>[4](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)</sup><sup> • </sup><sup>[1](https://www.digitalforensics.ch/nikkel09.pdf)</sup>

## References

1. [Forensic Analysis of GPT Disks and GUID Partition Tables (Nikkel, 2009)](https://www.digitalforensics.ch/nikkel09.pdf)
2. [Extensible Firmware Interface Specification v1.10, Intel](https://www.intel.com/content/dam/doc/product-specification/efi-v1-10-specification.pdf)
3. [GUID Partition Table (GPT) Disk Layout, UEFI Specification 2.10, UEFI Forum](https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html)
4. [Windows and GPT FAQ, Microsoft Learn](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/windows-and-gpt-faq?view=windows-11)
5. [Configure UEFI/GPT-based hard drive partitions, Microsoft Learn](https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions?view=windows-11)
6. [GUID Partition Table (GPT), Keramics data format specifications](https://keramics.github.io/gpt.html)
7. [GUID Partition Table, ArchWiki](https://wiki.archlinux.org/title/GUID_Partition_Table)
8. [doc/README.gpt, U-Boot documentation](https://github.com/u-boot/u-boot/blob/100e12ea/doc/README.gpt)
9. [UEFI GPT: libfdisk Reference Manual, util-linux](https://cdn.kernel.org/pub/linux/utils/util-linux/v2.34/libfdisk-docs/libfdisk-UEFI-GPT.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Storage devices & memory › Storage devices overview

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/guid-partition-table

English original: https://www.edgepedia.org/guid-partition-table
