TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Mike Ruskai
date: 1996-01-23 03:22:58
subject: Cluster algorithm

This is the algorithm I'm using to determine a drive's cluster size based on 
its size:

Rough cluster size is drive size divided by 65536
Convert rough cluster size to binary
Count number of digits in binary number (starting with first '1')
Actual cluster size is 2 raised to the power of the number of digits above

Is there anything wrong with this *other* than it not taking into account the 
12-bit FAT of a <16MB drive?

The reason I ask is because I have a 60MB FAT partition with 2048 byte 
clusters, but according to my reasoning, it should have only 1024 byte 
clusters.

I shrunk it down from 100MB with PartitionMagic (1.0), but I also reformatted
the drive.

Is the cluster size still being affected by what PartitionMagic did, or is my 
algorithm (and hence my understanding of FAT) flawed?

--- RG 10-5 Exp/GE 1.02+
* Origin: The Licking Factory, OS/2 in NJ! (908)815-3146 (1:107/634)
SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 107/634 677 696 411 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.