LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How can I calcuate disk space from cylinders, heads, and sectors? (https://www.linuxquestions.org/questions/linux-hardware-18/how-can-i-calcuate-disk-space-from-cylinders-heads-and-sectors-353185/)

abefroman 08-14-2005 12:40 PM

How can I calcuate disk space from cylinders, heads, and sectors?
 
How can I calcuate disk space from cylinders, heads, and sectors?

I have a 6.4gb hard drive can am getting conflicting data.

The harddrive label says
Capacity: 6.4gb
Cylinders: 16383
Heads: 16
Sectors: 63

fdisk -l says
Capacity: 6849M (6,849,124,864 bytes)
Cylinders: 14,155
Heads: 15
Sectors: 63
Units = cylinders of 945 * 512 = 483,840

Why is there a discrepancy between the hd label and fdisk?

Also when I multiple Units by Cylinders I get 6,848,755,200b which is 369,664 less than the capacity that fdisk calculated. Does units * cyclinders = capcity?

Where does the 945 come from where fdisk says "cylinders of 945"?

jailbait 08-14-2005 02:18 PM

"I have a 6.4gb hard drive can am getting conflicting data."

Here is a thread that explains how disk space is calculated:

http://www.linuxquestions.org/questi...hreadid=171828

--------------------------
Steve Stites

trickykid 08-14-2005 09:59 PM

Moved: More suitable in hardware.


All times are GMT -5. The time now is 12:05 AM.