Advertisement

07.16.2008 at 07:43AM PDT, ID: 23569863
[x]
Attachment Details

Disk Space Calculation Formula

Asked by brittonv in Hard Drives & Storage, Computer Hard Drives, Storage Technology

I would like to start by saying this, I think, is a complicated question.  I know that Disk manufactures base the stated disk size on kilo=1000 (decimal math) where computers see it as kilo=1024 (binary math).

However, I am looking for detailed information on how to calculate Formated Disk Space exactly.  How do I take the information that a drive manufacture gives me and figure out what my OS will see when it's formated and all is said and done.  I know how to guess close, but as an educational exercise I wanted to know how to figure it out Exactly (or damn near close).  

That being said if you have a good method for closely estimating the final formated size of a Drive, feel free to share.

For Example I have a 500 Gig Western Digital Hard Drive.  When I check the capacity of the drive in Vista Disk Mananger I see a Capacity of 476812 MB.  Explorer shows the capacity as 499,972,567,040 bytes or 465 GB.  So my formated disk space on my 500 GB Drive is @$465GB.  How how do we get there?

Looking at the Technical information for my drive (WD500KS-00MNB0) I am given the following information:
http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409
     Physical Specifications:
     Model Number WD5000KS, WD5000AAKS
     Formatted Capacity  500,107 MB
     Used Sectors Per Drive 976,773,168
     Bytes Per Sector 512

There is a foot note that states WD defines a MB as 1,000,000 bytes

So there real size of my drive is 500,107,000,000 bytes or for even more accuracy I can multiply the Sectors by the bytes per sector and get 976,773,168 * 512 = 500,107,862,016 bytes

Okay, my hardrive has 500,107,862,016 bytes.  I can convert that by dividing it by 1024/1024 for MB and 1024/1024/1024 for GB giving me what I presume is my actual disk size of 476,940.023 MB and 465.761742 GB respectively.

That is very close to what my OS says is my disk size.  Again Windows states that my disk capacity is 476,812 MB.  It shows I have 1 MB of unallocated Space giving me a volume of 476,811 MB, or more accurately as shown by my Volume Properties 499,972,567,040 bytes.

And that is as far as I can calculate with the information I have available to me.  My volume is 500,107,862,016 in actual bytes.  The OS formated it out to 499,972,567,040 bytes.  What happened to the 135,294,976 bytes (129 MB) that are missing?  

I assume that it is File System overhead, and NTFS is doing something, but how to I calculate it?  Furthermore how do I calculate it for FAT, FAT32, ZFS, EXT3, etc...  Or is it not the filesystem, but something else coming into play, or are my calculations wrong?

Start Free Trial
[+][-]07.16.2008 at 08:53AM PDT, ID: 22017171

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 09:10AM PDT, ID: 22017354

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 04:27PM PDT, ID: 22021091

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Hard Drives & Storage, Computer Hard Drives, Storage Technology
Sign Up Now!
Solution Provided By: garycase
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628