Re: Adding a smaller drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/07/2009 23:03, Leslie Rhorer wrote:
[...]
I think I might take to doing that too, making my partitions/arrays
multiples of 1,000,000,000 bytes (a drive maker's 1GB) where possible,
just to be sure :-)

	Well, that's not quite possible, of course, since sectors are
usually 512 bytes, and 1E9 is not a multiple of 512.  Indeed, that's where
this whole situation is ridiculous. For drive manufacturers to even consider
using GB as a measuring basis is ludicrous.  If sectors were 1000 bytes, and
if computer registers were base 10, it would be an entirely different
matter, but the fact is the sector size is 2^9 and all the register
boundaries are going to be multiples of 2, not 10.

But 10^9 is divisible by 512: 10^9 = (2*5)^9 = 2^9 * 5^9. There are therefore 1953125 512-byte sectors in 1 drive maker's GB.

Cheers,

John.
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux