Subject: Re: Accessing an entire DOS FAT32 SCSI Drive
To: ALBURQUERQUE JOSE A <albu3619@css1s0.engr.ccny.cuny.edu>
From: Michael L. VanLoon -- HeadCandy.com <michaelv@MindBender.serv.net>
List: port-i386
Date: 08/29/1997 13:54:30
>On Tue, 26 Aug 1997, Mike Long wrote:
>> >Date: Tue, 26 Aug 1997 03:10:02 -0400 (EDT)
>> >From: Jose Alburquerque <csjaa@css3s0.engr.ccny.cuny.edu>
>> >
>> >I guess you're right about the FAT32 problem.  I backed up my system and
>> >reformatted my drive to use the FAT16 file system.
>> 
>> >	panic: allocbuff: buffer larger than MAXBSIZE requested

>> msdosfs doesn't work well on FAT filesystems with cluster sizes larger
>> than MAXBSIZE.  Try breaking up your MSDOS partition into multiple
>> partitions such that the cluster size of each is <= MAXBSIZE.  You
>> should be able to find the definition of MAXBSIZE in (IIRC)
>> <machine/param.h>.

>I did exactly what you said.  I split my DOS partition into two partitions
>each of 800MB (C: and D: under Win95/DOS) both FAT16 format.  What's funny
>is that I can access the d: partition fine (with long filenames and all),
>but I keep getting the same panic upon trying to access the c:  partition
>(where win95 resides) at all.  I'm wondering if it has to do at all with 
>the fact that Win95 is on the disk.  Thanks for a lot for your suggestion 
>though as now I'm at least able to access one partition!

>From what I understand, all DOS partitions you access via the current
msdos fs code need to be smaller than roughly 540MB.  This is because
when you go over 540MB, DOS uses 32K clusters, and the maximum cluster
size allowable by the NetBSD filesystem code is 16K.  It's probably
sheer lock that you're not crashing accessing both DOS partitions.

This info may be old and this may be fixed in current.  Then again, it
may not be.

-----------------------------------------------------------------------------
  Michael L. VanLoon                           michaelv@MindBender.serv.net
      Contract software development for Windows NT, Windows 95 and Unix.
             Windows NT and Unix server development in C++ and C.

        --<  Free your mind and your machine -- NetBSD free un*x  >--
    NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3,
        Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX, MVME68k, arm32...
    NetBSD ports in progress: PICA, others...
-----------------------------------------------------------------------------