Disk management-partition table MBR and GPT

There are two common partition tables in Linux: MBR and GPT (GUID)

MBR

MBR :
Master boot program: 446byte
partition table: 64byte (16 bytes save one partition information, so four partitions)
Effective identifier: 2byte

MBR has been gradually eliminated with the increase in the capacity of current storage devices, and the maximum capacity supported by a single partition is very limited

GPT

The globally unique disk partition table is mainly used to replace the MBR partition table, which breaks the storage limit.

The composition of the GPT partition table:

Add an LBA (logical block address) to use LBA for addressing, MBR and GPT use this structure for addressing and addressing

  1. LBA 0

    In the first sector of the GPT partition, because of compatibility issues, the MBR partition table is still stored at the beginning , but the 0xEE logo is stored in it to declare that the disk uses the GPT partition table.

     我们可以实现0055H与0xEE的转换来转换MBR与GPT
    
  2. LBA 1

    The total storage space of the hard disk and the GPT partition boot information are stored. The space occupied by each partition information is 128 bytes.

  3. LBA 2-33

    The location where each partition information is stored, 32 sectors (the size of one sector is 512byte), (32x512) / 128 = the number of partitions that can be recorded The number of partitions can be calculated by this formula.

The difference between the two partition tables:

 MBR:单个分区最大支持2TB;最多4个分区,也就是最多支持单块8TB的硬盘

 GPT:最大支持9.4ZB的硬盘,128EB个扇区;分区数无限制(linux中)(windows中最多128个分区)
Published 51 original articles · Likes5 · Visits 1082

Guess you like

Origin blog.csdn.net/weixin_46669463/article/details/105662968
Recommended