From mint-bounce@lists.fishpool.fi  Mon Nov  3 12:48:10 2008
Date: Mon, 3 Nov 2008 18:43:26 +0100 (CET)
From: Frank Naumann <fnaumann@boerde.de>
X-X-Sender: fnaumann@localhost.localdomain
To: Jo Even Skarstein <joska@nvg.ntnu.no>
Cc: mint@fishpool.com
Subject: Re: [MiNT] (fwd) Revisited: HDDRIVER, FAT32, MiNT, FAT too small
In-Reply-To: <200811021055.mA2Atngt029398@tyrell.nvg.ntnu.no>
Message-ID: <alpine.LFD.2.00.0811031841550.10157@localhost.localdomain>
References: <200811021055.mA2Atngt029398@tyrell.nvg.ntnu.no>
User-Agent: Alpine 2.00 (LFD 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=- tagged_above=-50.5 required=7.0 WHITELISTED 
X-Spam-Level: 
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: fnaumann@boerde.de
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

Hello Jo Even!

> When creating a FAT32 partition of 4095 MB HDDRUTIL allocates 8386528
> sectors of 512 bytes for the FATs and the actual data area. 8174 sectors
> are allocated for each FAT, which means that 8386528-2*8174=8370180
> sectors remain for the actual data. There are 8 sectors per cluster,
> which means that there are 8386528/8=1046272 data clusters. For each of
> these 1046272 clusters a 32 bit FAT entry is required, which means that
> 1046272*4=4185088 bytes are needed per FAT. This is exactly what 8174
> sectors per FAT amount to: 8174*512=4185088.
>
> This calculation shows that the number of FAT sectors allocated by
> HDDRUTIL is exactly the number of sectors needed.
> If my calculation is right MiNT is wrong and should be fixed. If my
> calculation is wrong please point out the error so that I can fix my code.

What about the two empty (unused) entries at the start of each FAT table?


Regards,
Frank

--
ATARI FALCON 060 // MILAN 060
-----------------------------
http://sparemint.org/
e-Mail: fnaumann@boerde.de


