Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!bellcore!texbell!killer!dgh From: dgh@killer.DALLAS.TX.US (Douglas Heatherly) Newsgroups: comp.os.minix Subject: dosread (minix 1.4a) Keywords: fat_size > 32767 Message-ID: <8192@killer.DALLAS.TX.US> Date: 25 May 89 23:07:17 GMT Organization: The Unix(R) Connection, Dallas, Texas Lines: 25 I having a problem with dosread. The first partition on my hard disk (hd1) is MSDOS and is 32M, the second partition is Minix with 10M. I would like to be able to access the files in the DOS partition directly without copying to floppy first. I currently using the version of dosread that was modified by Al Crew. Since the number of sectors per fat for my DOS partition =64, my fat size is 32768. This is one greater than the maximum size so the integer variable fat_size overflows to a negative number and the double word variable data_start comes out negative. This obviously will cause seek errors when I try to do a dosdir of hd1. I tried changing the variable declaration of fat_size to unsigned integer, but then lseek seems to complain about mismatched types. I would prefer a software fix to dosread rather than moving around the partitions on my hard disk. Does anyone have a version of dosread that can handle the max size MSDOS partition (32M) as hd1? Thanks in advance Doug Heatherly dgh killer.dallas.tx.us