[ previous ] [ next ] [ threads ]
 
 From:  Jim Thompson <jim at netgate dot com>
 To:  Manuel Kasper <mk at neon1 dot net>
 Cc:  m0n0wall at lists dot m0n0 dot ch, Flemming Munk Jensen <flemming at postboksen dot dk>
 Subject:  Re: [m0n0wall] 8Mb CF card too small for 1.2bx ?
 Date:  Thu, 3 Mar 2005 03:21:17 -1000
On Mar 3, 2005, at 2:49 AM, Manuel Kasper wrote:

> On 03.03.2005 13:03 +0100, Flemming Munk Jensen wrote:
>
>>> -rw-r--r--  1 jim users 7995392 Mar  3 01:14 wrap-1.2b6.raw
>>>
>>> Jim
>>
>> And that proves i am right, because Storage manufactors define 8Mb
>> as 8000000 / 1024 bytes wich leaves me with 7812500 bytes.. 182892
>> bytes short ?
>
> Huh? I always thought storage manufacturers defined 8 MB as 8000000
> bytes, which would mean that the 1.2b6 WRAP image with its 7995392
> bytes should fit. I intentionally made the CF root filesystem
> slightly less than 8 million bytes in the hope that it'd still fit on
> an 8 MB CF card, but apparently that didn't work out (maybe due to
> CHS?). Can you determine how many sectors your 8 MB CF card actually
> has?

I too think that storage manufacturers think 8MB is 8 x 1000000 bytes.  
The 'complaint' is
that on a computer, 'mega' is 1024 x 1024 (1048576), so 8 MB (of, say, 
*ram*) would be
8388608 bytes, not 8000000.

But yes, CF cards and disk drives are typically sold where X MB =  X 
*1000000 bytes.

I would think that the 1.2b6 image would fit, unless the 8MB card above 
is actually smaller than 15625
512 byte sectors.   If its 15616 512 byte sectors, things should fit 
(with no room to spare.)