Quote:
Originally Posted by
Corona688
Hard drives, cdroms, dvd's, and other media still come in units of powers of two -- they have to talk to computers, they could scarcely be anything else! They have sector sizes of 512, 2048, or 4096 bytes, not 500, 2000, and 4000. They're just advertised in powers of ten to make the number bigger.
I dread the days when they figure out how to make arbitrary sizes of RAM. They've already done it for flash media, somehow. Then RAM'll start shrinking too, no doubt.
Yes, of course sector sizes are 2048 for cdroms, but that can be also said for hard drives, which are 512 bytes.
What I wanted to say is that 4.7GB dvds are 4.37GiB and 25GB Blu Rays are 23.3GiB.
But what made my laugh is that:
Quote:
As used for storage capacity, one megabyte (MB) = one million bytes, one gigabyte (GB) = one billion bytes, and one terabyte (TB) = one trillion bytes. Total accessible capacity varies depending on operating environment. As used for buffer or cache, one megabyte (MB) = 1,048,576 bytes. As used for transfer rate or interface, megabyte per second (MB/s) = one million bytes per second, megabit per second (Mb/s) = one million bits per second, and gigabit per second (Gb/s) = one billion bits per second.
Taken from Western Digital's web site.
MB of hard disk = 1,000,000B
MB of cache = 1,048,576B
Go figure!
Anyway, I just recalled that the user @nithyanandan wanted to store a tar file (uncompressed) to the tape, thus he will utilize the tape drives compression features, so my code is useless since I can't predict the chuck size that will be compressed to fit perfectly on the tape.
Speaking tape drives: Most say compression is 2:1. I've heard a 2.4:1. But today I saw a 3:1
IBM Magstar MP 3570 - Wikipedia, the free encyclopedia !!
I mean why don't they test zero filled files so they can achieve a 1million:1.