Subject: Re: Floppy Disk Access
To: None <netbsd-help@NetBSD.org>
From: Peter Seebach <seebs@plethora.net>
List: netbsd-help
Date: 10/08/2003 03:08:15
In message <200310080455.06013.dbolgheroni@uol.com.br>, Daniel Bolgheroni write
s:
>I'm trying to use a floppy disk in a i386 machine.

>So, I formated with "fdformat" and created a MSDOS filesystem with 
>"newfs_msdos -f 1440 /dev/rfd0a". Now I'm trying to boot:

># mount -t msdos /dev/fd0a tmp
>mount_msdos: /dev/fd0a on /home/dbolgheroni/tmp: Inappropriate ioctl for 
>device
># mount -t msdos /dev/rfd0a tmp
>mount_msdos: /dev/rfd0a on /home/dbolgheroni/tmp: Block device required
>#

I assume you mean 'mount'.

Hmm.  You may need to use /dev/fd0b, depending on your system's BIOS.

>I'm trying these two commands without success. What's wrong? What's the 
>difference between /dev/fd0a and /dev/rfd0a?

fd0a is a "block device".  rfd0a is a "character device".  In general, you
most often want to use the block device.

As to "inappropriate ioctl", it'd be hard to say what it means without running
ktrace, but my guess would be that the driver has guessed the disk's size
wrong.

-s