Re: cluster size

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 28 Jan 2002, at 20:19, Dan Moyer wrote:

> 
> Thanks Kat,
> 
> But now I'm running into a problem:  when I modify Craig Gilbert's
> disk_free_space() to return cluster_size (took me an embarrassingly long
> time to figure out it was just bytes_per_sector * sectors_per_cluster!), I
> get a return of 32K, for both a 3gig drive and a logical drive of 10gig,
> which actually seem to have 4 & 8k cluster sizes respectively.  Since FAT16
> will
> format for 32K per cluster for anything above 1 or 2 gig (I think?), I'm
> wondering if maybe Craig's function is not correct for FAT32?  His demo does
> discern that my drives are FAT32, but the free space sizes computed are maxed
> at
> 2gig, not what they really are, which seems to further suggest not compatible
> with FAT32.
> 
> Any thoughts?

Yes, Craig's utility is dos. As you know, dos is limited to the 2Gig size. The 
other file i mentioned uses the windows api thru win32lib, and should return 
good data on the big drives. YMMV tho. What i didn't check is if the newer 
win32libs have the same function as the 0.15c version.

Kat

> Dan Moyer
> 
> 
> ----- Original Message -----
> From: "Kat" <gertie at PELL.NET>
> To: "EUforum" <EUforum at topica.com>
> Sent: Sunday, January 27, 2002 10:05 PM
> Subject: Re: cluster size
> 
> 
> > On 27 Jan 2002, at 20:52, Dan Moyer wrote:
> >
> > >
> > > Sorry, I didn't explain in enough detail.   Although I was speaking in
> > > particular about two different drives, the second one *is* partitioned,
> > > which from Vern & Elliott's explanations now seems to be the cause of
> the
> > > different minimum cluster sizes.
> >
> > Ok, sorry, i didn't understand.
> >
> > > But independent of the cause, & unrelated to how to *change* the minimum
> > > cluster size, what I need to be able to do is *programmatically* find
> out
> > > *what* the minimum cluster size on any specified drive in any users
> system
> > > is.
> > >
> > > Reason is, I'm trying to finish up a "what all's taking up so much space
> on my
> > > drive!" utility I had started once before & couldn't get to work quite
> right,
> > > which now does work except for knowing the actual minimum cluster size
> for any
> > > drive.
> >
> > Ok, look to the end of function disk_free_space() in Craig Gilbert's
> diskutil.e
> > in http://www.rapideuphoria.com/diskutil.zip It's dos. Also, look in
> function
> > GetDiskFreeSpace() in win32lib v0.15c.
> >
> > Kat
> >
> >
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu