Solved

easy question

Posted on 2001-06-08
7
183 Views
Last Modified: 2010-04-27
how do you get a hard drives size using the sectors heads and cylinders
0
Comment
Question by:hilltop
7 Comments
 
LVL 23

Expert Comment

by:slink9
ID: 6168913
I generally don't calculate it that way.  I go to the manuf web site and look up the model number.  You also get other pertinent info by doing that.
0
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 6168957
SECTORS/TRACK x TRACKS/DISK x HEADS x BYTES/SECTOR = CAPACITY

Example:  63 sector/track, 16383 tracks, 16 heads, 512 bytes/sector

Capacity = 63 X 16383 X 16 X 512 = 8.4GB.
0
 
LVL 16

Expert Comment

by:Kyle Schroeder
ID: 6168975
http://www.pcguide.com/ref/hdd/geom/geomPhysical-c.html

That page may get you headed on the right track...or this information:
Figure 1.1 Detail of a Basic Disk with Four Partitions

The Ending Cylinder field in the partition table is 10 bits long, which limits the number of cylinders that can be described in the partition table to a range of 0?1,023. The Starting Head and Ending Head fields are each one byte long, which limits the field range to 0?255. The Starting Sector and Ending Sector fields are each six bits long, which limits the range of these fields to 0?63. However, the enumeration of sectors starts at 1 (not 0, as for other fields), so the maximum number of sectors per track is 63.

Because all hard disks are low-level formatted with a standard 512-byte sector, the maximum disk capacity described by the partition table is calculated as follows:

Maximum capacity = sector size x cylinders (10 bits) x heads (8 bits) x sectors per track (6 bits)


Using the maximum possible values yields:

512 x 1024 x 256 x 63 (or 512 x 2^24) = 8,455,716,864 bytes or 7.8 GB

See http://www.microsoft.com/technet/win2000/win2ksrv/reskit/sopch01.asp
for more information.

-d
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 2

Expert Comment

by:melchioe
ID: 6169082
You'll need the sector size as well.

Bytes in sector * sectors per track * # of cylinders  * # of heads should equal raw capacity of the hard drive.

Let's assume 512 byte sectors,
2100 cylinders
16 heads
63 sectors per track
(this is from a Caviar AC31000)

512*2100*16*63 = 1,083,801,600 bytes

If you are trying to translate the number of bytes into MB or GB, remember that 1000 != 1024, and 1024 bytes = 1K.  

This might look like 1.083 G, but remember 1000 bytes does not equal 1K.  So divide that number by 1024 several times and you wind up with 1.009G and you might feel you were cheated out of 74 MB.  Also remember that many manufacturers are inconsistent - sometimes they divide by 1000, sometimes by 1024, even in the same calculation.  

A notorious example is calling a diskette with 1,457,664 bytes a 1.44MB floppy when it really only has 1.38 MB of space.  There are really 1.44 million bytes available on that disk, but not 1.44MB.  Microsoft actually got that one right.

With the floppy example, note that the real cpacity of the disk is 1,474,560. 33 sectors (16.5K) is used for overhead like FAT, boot sector, etc.  A similar circumstance will happen with a hard drive, so raw capacity does not equal usable capacity.

0
 
LVL 32

Expert Comment

by:jhance
ID: 6169150
melchioe,

You mean you came up with this all on your own?
0
 
LVL 16

Expert Comment

by:Kyle Schroeder
ID: 6169442
heh heh heh....
0
 
LVL 2

Author Comment

by:hilltop
ID: 6169497
Great Answer
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Upper back Pain: My back hurt for months. Upper back, mostly my neck, spine and across my shoulder blades. I was getting headaches too, that felt like they were caused by tension in my shoulders, but now I feel fine! I'm sharing this hoping someone…
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now