Chinaunix

标题: chs当中的h的范围是多少? [打印本页]

作者: L_kernel    时间: 2011-04-08 13:03
标题: chs当中的h的范围是多少?
就是传统的硬盘寻址,header的值是哪个范围。
有点困惑,是(0~254)还是(0~255)?

下面一段是来自维基百科的。
The 16-byte entries within an MBR or EBR Partition Table have CHS-tuples which are limited to only (1023,254,63) for a total of 1024 cylinders, 255 heads and 63 sectors (values for cylinders and heads start at zero (0 ~ 1023 cylinders, 0 ~ 254 heads), and sector values start at one). For computers whose BIOS code was also limited to using only these CHS values, what was the largest size hard disk on which every sector could be accessed? Starting with the formula above, but also including the term, 512 bytes/sector, the hard disk could be no larger than:

   ((1024 * 63) * 255) * 512 = 8,455,716,864 bytes (about 7.8 GiB)


上面红色部分的计算是有错误的。应该是使用256,而不是255才可以得出等式右边的结果。

((1024 * 63) * 256) * 512 = 8,455,716,864 bytes (about 7.8 GiB)

这个怎么解释?个人倾向于(0~255)的结果。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2