From: przemek@rrdjazz.nist.gov (Przemek Klosowski)
Subject: MTOOLS (MSDOS file system) on an Alphastation/Unix, or how to read raw floppies
Date: 1995/11/06 [thread overview]
Message-ID: <PRZEMEK.95Nov6152425@rrdjazz.nist.gov> (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
next reply other threads:[~1995-11-06 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-06 5:00 Przemek Klosowski [this message]
1995-11-09 5:00 ` MTOOLS (MSDOS file system) on an Alphastation/Unix, or how to read raw floppies 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
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox