Subject: Re: How to get to my floppy?
To: Paul Boven <e.p.boven@student.utwente.nl>
From: Jeremy Cooper <jeremy@broder.com>
List: port-sparc
Date: 06/05/1997 18:32:02
On Fri, 6 Jun 1997, Paul Boven wrote:

> [ "eject floppy" gives a "device not configured". ]

Paste your dmesg output regarding fdc0 and fd0.  It's possible that your
kernel has recognized the controller, but not necessarily the floppy
drive attached to it.

> Also, how does one usually mount and format floppies? Would I be able
> to read/write msdos-compatible disks with this?

Before you begin using your floppy drive, be aware of the following
potential pitfall: NetBSD/sparc's floppy driver does not automatically
sense the geometry of the disk inserted into the floppy drive.  The
geometry is really determined by the device node you open, not all of
which make sense with the SPARC 3 1/2" floppy drive.

Device         Geometry       DOS capacity   Drive type
              cyl sec hd
/dev/fd0a      80  18  2      1.44MB         3 1/2"
/dev/fd0b      80  15  2      1.2 MB         5 1/4"
/dev/fd0c      40   9  2      360 KB         5 1/4"
/dev/fd0d      40   9  2      360 KB         3 1/2"
/dev/fd0e      80   9  2      720 KB         3 1/2"
/dev/fd0f      80   9  2      720 KB         5 1/4"
/dev/fd0g      40   9  2      360 KB         5 1/4"

/usr/sbin/fdformat, which exists in NetBSD-current, can be used to
format floppy disks. /sbin/mount_msdos, which has been around for a
while, is pretty straightforward.  Example:

mount_msdos /dev/fd0a /mnt

-J