[comp.os.minix] dosread

dgh@killer.DALLAS.TX.US (Douglas Heatherly) (05/26/89)

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

rt2@cunixb.cc.columbia.edu (Rens Troost) (04/12/91)

I'm having some difficulty with the dos* program. If I use doswrite,
the program pretends to execute without complaint. dosdir will verify
that the file was indeed written, but will not show any 'real' dos entries.
likewise, doswritten stuff will not show up when I use dos. Any ideas?

-Rens
rt2@cunixb.cc.columbia.edu
rens@gnu.ai.mit.edu