Subject: can't mount msdos fs on floppy anymore
To: None <current-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2007.salmi.ch>
List: current-users
Date: 01/20/2007 15:20:14
Hi,

I just noticed that I can't mount msdos file systems on floppy disks
anymore. I do this about once a year, so I don't know when it stopped
working... However, it fails on a 4.99.8 system while it still works
fine with 3.2_STABLE (both NetBSD/i386):

$ uname -sr
NetBSD 4.99.8
$ 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.

Any hints what could cause this problem?


TIA, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~