From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ae0da5d34b71fecb,start X-Google-Attributes: gid1164f8,public 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 Message-ID: #1/1 X-Deja-AN: 118815846 distribution: world organization: U. of Maryland/NIST newsgroups: comp.sys.dec 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