Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* MTOOLS (MSDOS file system) on an Alphastation/Unix, or how to read raw floppies
@ 1995-11-06  5:00 Przemek Klosowski
  1995-11-09  5:00 ` Vikas Sontakke
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Przemek Klosowski @ 1995-11-06  5:00 UTC (permalink / raw)


Did anyone compile MTOOLS (programs to read MSDOS floppy disks
under Unix) on DEC Unix? I used /dev/rfd0c as the device to be
read, and I came up with this configuration (devices.c)

#ifdef ALPHASTATION
struct device devices[]={/*off,fat,of,gioctl,         tr  hd sc */
	{'A', "/dev/rfd0c", 0L, 12, 0, (int (*) ()) 0, 80, 2, 18},
	{'A', "/dev/rfd0c", 0L, 12, 0, (int (*) ()) 0, 80, 2, 9},
	{'\0', (char *) NULL, 0L, 0, 0, (int (*) ()) 0, 0, 0, 0}
};
#endif 

I can't get it to work: e.g. mdir tries to read the fat,
and issues the read request for 36*512=18432 bytes which
fails. I have checked that upto 16384 bytes can be
read, but 16385 byte read result in an error (errno=5, I/O error).

indeed  dd if=/dev/rfd0c bs=1k count=16  works, while
dd if=/dev/rfd0c bs=1k count=17 fails, reading only 16384 bytes.
I tried dd if=/dev/xx bs=1k count=17 with xx={rfd0a,rfd0c,fd0a,fd0c},
all giving the error.

What am I doing wrong? Could it be that my floppy drive is bad?
How would I check it?

			przemek klosowski (przemek@nist.gov)
			Reactor Division (bldg. 235), E111
			National Institute of Standards and Technology
			Gaithersburg, MD 20899,      USA

			(301) 975 6249

--
			przemek klosowski (przemek@nist.gov)
			Reactor Division (bldg. 235), E111
			National Institute of Standards and Technology
			Gaithersburg, MD 20899,      USA

			(301) 975 6249



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1995-11-13  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-06  5:00 MTOOLS (MSDOS file system) on an Alphastation/Unix, or how to read raw floppies Przemek Klosowski
1995-11-09  5:00 ` Vikas Sontakke
1995-11-09  5:00 ` Vikas Sontakke
1995-11-09  5:00   ` Bob Kras
1995-11-13  5:00 ` David Thomas Richard Given

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox