Possible Duplicate:
hard drive size

For example, I have a 250GB hard drive and when I add up all the partitions (and there are no hidden partitions), it comes out to 232GB. I know that this is normal, but I was curious as to why, so I Googled around a bit and have came across two theories.

One said this happens because the hard drive manufacturers use 10^3 to define a kilobyte (1000 bytes) while windows uses 2^10 (1024 bytes).

The other theory said that 1GB=1024MB=1024*1024KB. Therefore 1024*1024*232=243,269,632~250GB.

Which theory is true? Or is there a different reason that is the correct reason?

link|improve this question

feedback

closed as exact duplicate by techie007, studiohack Mar 21 '11 at 15:07

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

3 Answers

up vote 6 down vote accepted

The whole point is in prefixes. Standard SI prefixes increase by 10^3. So we have kilo which is 1000 (10^3), then we have mega which is 1000000 (10^6) and so on. For some reason that prefixes are being incorrectly used by computer scientists to represent 2^10 (which is 1024).

To solve the problem, new set of prefixes was introduced whose step is 2^10. So now we have one kibibyte (KiB) which is 1024 bytes, one mebibyte (MiB) which is 1048576 (2^20) bytes and so on.

Unfortunately, these new unambiguous prefixes have not been adopted by Microsoft and Apple, so operating systems made by them are still spreading confusion.

So to cut the long story short, hard drive manufacturers are correct, but their interpretation of mega and giga is different than one commonly used in computer science.

Here's a nice Wikipedia article on that.

link|improve this answer
Computers natively work with binary and thus really like things when they are even powers of 2. That's why the convention of 1Kbyte=1024bytes came about. – ultrasawblade May 2 '11 at 19:27
But Apple has adopted the standard SI prefixes for file and disk sizes, which is even better. – endolith Jun 15 '11 at 4:57
feedback

It is how GB is defined. The difference between how the manufacturer markets it and how the OS reads it is based on different criteria, exactly as you mentioned in your question. If you look closely on the boxes for most major brands they will indeed add a disclaimer that states that they measure a gigabyte by 1,000,000,000 bytes, not 1,073,741,824 bytes as the OS does.

The wikipedia article for gigabyte goes over this in detail. You can also see the lawsuit against WD for this.

link|improve this answer
feedback

As well as the difference between binary and decimal powers, when you prepare a disk for storing data, a percentage of the disk is taken up with the information needed to make this all happen - it's a bit like finding that a '250 page' book is actually 246 pages + 4 pages for the preface and index.

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.