LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices


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

Rep: Reputation: 54
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
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,645

Rep: Reputation: 221Reputation: 221Reputation: 221
"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
 
Old 08-14-2005, 09:59 PM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,147

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


Reply


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


All times are GMT -5. The time now is 01:38 AM.

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