此转储是dd if=/dev/sda bs=512 | hexdump -C
2GiB 硬盘(.vdi
在 Virtual Box 上)上 a的输出,GUID Partition Table
使用cfdisk
. 这就是LBA 1
(GPT 标头逻辑块)的样子:
45 46 49 20 50 41 52 54 | EFI signature
00 00 01 00 | GPT version
5c 00 00 00 | GPT header size
f8 8f 25 0d | CRC32 (header)
00 00 00 00 | reserved
01 00 00 00 00 00 00 00 | current LBA (this is LBA 1)
ff ff 3f 00 00 00 00 00 | backup LBA (last LBA on disk)
00 08 00 00 00 00 00 00 | first LBA available for partitions
de ff 3f 00 00 00 00 00 | last LBA available for partitions
a1 4b 7c df ca 02 95 4c | disk's GUID [1/2]
98 16 bb f0 73 d3 c8 0c | disk's GUID [2/2]
02 00 00 00 00 00 00 00 | partition entries' first LBA
80 00 00 00 | total amount of partition entries
80 00 00 00 | size of a single partition entry
86 d2 54 ab | CRC32 (entries)
00 .. | zeroed out until next LBA
该标头声明有 80h (128d) 个分区条目,每个条目长度为 128 位,因此条目从16KiB 或 32 个扇区开始LBA 2
并跨越 16KiB 或 32 个扇区(此磁盘中每个扇区 512B),意思是从LBA 02h
到LBA 21h
。
为什么LBA 800h
报告为分区的第一个可用 LBA 而不是LBA 22h
分区条目之后的下一个?条目和实际分区不是连续存储在磁盘上吗?