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

* Re: MTOOLS (MSDOS file system) on an Alphastation/Unix, or how to read raw floppies
  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
  2 siblings, 1 reply; 5+ messages in thread
From: Vikas Sontakke @ 1995-11-09  5:00 UTC (permalink / raw)


Przemek Klosowski (przemek@rrdjazz.nist.gov) wrote:
: 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 


Try

        {'A', "/dev/rfd0c", 0L, 12, 0, (int (*) ()) 0, 80, 2, 18},
        {'A', "/dev/rfd0c", 0L, 12, 0, (int (*) ()) 0, 80, 2, 36},

instead, that seems to work for me.
--
Vikas Sontakke				sontakke@helix.enet.dec.com




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

* Re: MTOOLS (MSDOS file system) on an Alphastation/Unix, or how to read raw floppies
  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-13  5:00 ` David Thomas Richard Given
  2 siblings, 0 replies; 5+ messages in thread
From: Vikas Sontakke @ 1995-11-09  5:00 UTC (permalink / raw)



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

use /sbin/fddisk i.e.
# /sbin/fddisk -fmt /dev/rfd0c 
and try to format a disk

--
Vikas Sontakke				sontakke@helix.enet.dec.com




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

* Re: MTOOLS (MSDOS file system) on an Alphastation/Unix, or how to read raw floppies
  1995-11-09  5:00 ` Vikas Sontakke
@ 1995-11-09  5:00   ` Bob Kras
  0 siblings, 0 replies; 5+ messages in thread
From: Bob Kras @ 1995-11-09  5:00 UTC (permalink / raw)



In article <47tkua$va@mrnews.mro.dec.com>, sontakke@hobby.nl (Vikas Sontakke) writes:
>
|>Try
|>
|>        {'A', "/dev/rfd0c", 0L, 12, 0, (int (*) ()) 0, 80, 2, 18},
|>        {'A', "/dev/rfd0c", 0L, 12, 0, (int (*) ()) 0, 80, 2, 36},
|>
|>instead, that seems to work for me.

FWIW: 
You might want to make the change and call it "/dev/rfloppy", and then
create a symbolic link in /dev to rfd0c - this way you can use the same
set of mtools binaries on all alpha platforms by just changing the link.



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

* Re: MTOOLS (MSDOS file system) on an Alphastation/Unix, or how to read raw floppies
  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-13  5:00 ` David Thomas Richard Given
  2 siblings, 0 replies; 5+ messages in thread
From: David Thomas Richard Given @ 1995-11-13  5:00 UTC (permalink / raw)


-- 
Why do people surf the Information | GCS -d+(?)(++) p(-+)(---) c++++ !l+(+)
Superhighway? Won't they get run   | u++ e*(++) m*(++) s !n h+(++) f+ g+
over?                              | w+(+++) t--(+) r y? (Archimedes owner)
http://www.st-andrews.ac.uk:80/~www_sa/socs/virtual (Use at your own risk)



^ 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