Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 2017 21:11:53 +0100
From:      "Martin S. Weber" <ephaeton@gmx.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: bootable ext. USB SSD for backup
Message-ID:  <92024f3c-2ab3-1741-97de-36455ca56b7e@gmx.net>
In-Reply-To: <33953.128.135.52.6.1489694167.squirrel@cosmo.uchicago.edu>
References:  <20170316194612.GA1748@c720-r314251> <33953.128.135.52.6.1489694167.squirrel@cosmo.uchicago.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/16/17 20:56, Valeri Galtsev wrote:
>
> On Thu, March 16, 2017 2:46 pm, Matthias Apitz wrote:
 >> (...)
>> Mar 16 19:36:54 c720-r314251 kernel: da0: 953869MB (1953525164 512 byte
>> sectors)
>> Mar 16 19:36:54 c720-r314251 kernel: da0: quirks=0x2<NO_6_BYTE>
>>
>> Ofc it has not the promised 1 TB volume, just only 953869 MB, i.e. only
>> 1 Marketing-TB;
>
> It may have to do with counting by power of 10 instead of power of 2 (Not
> exactly correct, but close). Which remind me an old joke:
>
> Do you know the difference between junior programmer and senior programmer?
>
> Junior programmer faithfully thinks that one kilobyte is exactly 1000 bytes.
>
> Senior programmer faithfully thinks that one kilogram is exactly 1024 grams.
>

Well, there's a proper SI prefix for powers of two, which for your joke, 
Valeri, is "kibi" (2^10), and for Matthias is "Mibi", "Gibi" 
respectively "Tebi"; they are abbreviated as KiB, MiB, GiB and TiB, 
respectively (when applied to bytes). So the junior programmer is 
actually correct, and the senior programmer should know a kibigram has 
1024 grams.  It doesn't help that FreeBSD isn't using proper prefixes 
for printouts itself.

Toshiba says this thing has 1 TB, which is 10^12 bytes, which is (10^12) 
/ 512 512-byte units, or, in other words, 1953125000 512 byte units. 
Contrast that with the reported 1953525164 512 byte units the drive 
actually lets you access. Toshiba is clearly underselling the  disk.

/anal mode off




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?92024f3c-2ab3-1741-97de-36455ca56b7e>