[comp.sys.3b1] Mtools package for SPARCs with floppy drives

ralph@laas.fr (Ralph P. Sobek) (04/10/91)

We have recently recovered version 2.0 of the mtools package which, I
believe, was posted to the unix-pc.sources newsgroup.  The version we
have is at patchlevel 3.

When we try to install an MS-DOS system with mformat on a low-density
formatted floppy, mformat assumes that the floppy is high-density.  In
SunOS 4.0 there are two devices for floppy drive: /dev/fd0c and /dev/fdl0c.
In SunOS 4.1.1 the drive "auto-senses the density of the floppy."

We would like to have mtools work both under SunOS 4.0.3 and 4.1.1.
Has anyone else had similar problems?  Do there exist further patchs
for mtools?  Has anyone added auto-sensing code to mformat.c or
devices.c?

The following excerpt from devices.c seems to imply SunOS 4.1.

#ifdef SPARC
struct device devices[] = {
	{'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 /* SPARC */

All suggestions would be appreciated.  Thanks a lot.

--
Ralph P. Sobek			  Disclaimer: The above ruminations are my own.
ralph@laas.fr				   Addresses are ordered by importance.
ralph@laas.uucp, or ...!uunet!laas!ralph		
If all else fails, try:				      sobek@eclair.Berkeley.EDU
===============================================================================
THINK: Due to IMF & World Bank policies 100 million Latin American children are
living, eating, and sleeping in the streets -- Le Monde Diplomatique