Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 08-14-2005, 12:40 PM   #1
Senior Member
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,421

Rep: Reputation: 55
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"?
Old 08-14-2005, 02:18 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"I have a 6.4gb hard drive can am getting conflicting data."

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

Steve Stites
Old 08-14-2005, 09:59 PM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 245Reputation: 245Reputation: 245
Moved: More suitable in hardware.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cylinders, heads and spt-command? kpachopoulos Linux - General 1 07-05-2005 02:52 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Hard Disk Starting Sectors robhargreaves Linux - Hardware 1 05-20-2004 03:58 PM
Units/blocks/heads/cylinders ???? leighsd Linux - Newbie 1 12-11-2003 12:25 PM
just a heads up about remote Xsessions and disk space antken Linux - General 0 11-26-2003 03:40 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration