|
7#
楼主 |
发表于 2020-5-31 20:59:08
|
只看该作者
是这样的,这个问题来自 https://github.com/a1ive/grub/issues/26
NOTE:For partitions which begin or end beyond the 1024th cylinder, the three CHS bytes should always be filled with: FE FF FF ; which are decoded as follows:Byte 1: FEh = 254 for a total of 255 heads.Bytes 2 and 3: FFh and FFh — split into two full binary counts of 6 bits (11 1111; 3Fh = 63 sectors), and 10 bits (11 1111 1111) or 3FFh = 1023 for a total of 1024 cylinders. CHS: 1023, 254, 63.This tuple corresponds to an LBA sector of: 16450559. That's a point where about 8.4 GB of hard disk sectors could be accessed (16,450,560 sectors * 512 bytes/sector = 8,422,686,720 bytes).16-byte partition table entries can not exceed 1024 cylinders for their Starting and Ending CHS bytes! When utility programs display CHS tuples with a cylinder value larger than 1023, they can only do so by computing pseudo-CHS values from the 4-byte "Starting Sector" or "Partition Size" values.
如果是一个很大的分区,chs应该是 fe ff ff,但是根据uefi的规范,gpt分区表硬盘的mbr上chs应该填 ff ff ff。 |
|