Linux fdisk partition calculation method

The formula to calculate the hard disk size :
Cylinders*Heads*Sectors*512 byte

========================

1 sector is generally 512 bytes in size
One of your tracks has 63 sectors, so the size of one track of your hard disk is: 512 bytes * 63 = 32256 bytes
You have 9729 cylinders, so the size of your one disk is 32256 bytes * 9729 = 313818624 bytes
You have 16 heads (disks), so your entire hard disk size is 313818624 bytes * 16 = 5021097984 bytes = 4.676261902G

=====================
So you want to draw a 100M partition, and the number of cylinders you want to enter is:
100MB*1024*1024/(16 heads *63 sectors*512 byte) = 203.174603175 = 204 cylinders

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326924374&siteId=291194637