Subject: kern/35457: can't mount msdos fs on floppy anymore
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <j+nbsd@2007.salmi.ch>
List: netbsd-bugs
Date: 01/21/2007 15:55:00
>Number:         35457
>Category:       kern
>Synopsis:       can't mount msdos fs on floppy anymore
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 21 15:55:00 +0000 2007
>Originator:     Jukka Salmi
>Release:        NetBSD 4.99.9
>Environment:
System: NetBSD moray.salmi.ch 4.99.9 NetBSD 4.99.9 (MORAY.APM) #2: Sun Jan 21 15:20:58 CET 2007 [...]
Architecture: i386
Machine: i386
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec

>Description:
Mounting an msdos file system on a floppy disk doesn't work anymore;
it used to work some months (years?) ago, but I can't remember when
exactly. However, it fails on a 4.99.8 system while it still works
fine with 3.2_STABLE.

>How-To-Repeat:
$ sudo mount -t msdos /dev/fd0a /mnt/tmp
mount_msdos: /dev/fd0a on /mnt/tmp: Inappropriate ioctl for device

Tracing mount_msdos:

  5936  1 mount_msdos CALL  mount(0x8049222,0xbfbfebee,0,0xbfbfe964)
  5936  1 mount_msdos NAMI  "/mnt/tmp"
  5936  1 mount_msdos NAMI  "/dev/fd0a"
  5936  1 mount_msdos RET   mount -1 errno 25 Inappropriate ioctl for device

The floppy drive seems to be ok, e.g. fdformat(1) works fine.
Furthermore creating a ffs on the floppy and mounting it succeeds.

>Fix:
unknown

>Unformatted: