GNOME Bugzilla – Bug 604532
floppy cannot be mounted: "no medium found"
Last modified: 2009-12-14 16:58:45 UTC
With the gdu volume monitor, the handling of floppies in GNOME got broken. devkit-disks detects the floppy: which is transformed into a gvfs drive without a volume: Drive(1): Diskettenlaufwerk Type: GProxyDrive (GProxyVolumeMonitorGdu) ids: unix-device: '/dev/fd0' themed icons: [drive-removable-media-floppy] [drive-removable-media] [drive-removable] [drive] is_media_removable=1 has_media=0 is_media_check_automatic=0 can_poll_for_media=1 can_eject=0 can_start=0 can_stop=0 start_stop_type=unknown (Unlike CD-ROMs, there is no polling for floppy volumes, since that'd keep the drive busy all the time). Now when you try to mount it, gvfs does not have any associated volume and thus fails: $ gvfs-mount -d /dev/fd0 No volume for device file /dev/fd0 Interestingly, when you log into such a box remotely, and you don't have a session bus running, it works: gvfs-mount -oi sees only a volume Volume(1): floppy0 Type: GUnixVolume ids: unix-device: '/dev/fd0' themed icons: [drive-removable-media] [drive-removable] [drive] can_mount=1 can_eject=0 should_automount=1 which you can mount with gvfs-mount -d /dev/fd0 just fine. For remote reproduction: gvfs-mount -li -> only drive (unmountable) dbus-launch gvfs-mount -li -> only volume (mountable) If we have a drive with is_media_check_automatic=0 and has_media=0, can we teach gvfs to just try and create a volume anyway?
Upon further investigation on that remote system (I don't have a floppy myself), I found that /etc/fstab has an entry for the floppy, which explains the volume that you get if session dbus/gvfsd aren't running. When commenting out the fstab line, a remote gvfs-mount -li (i. e. without a session dbus) does not contain anything for the floppy.
There's a udisks bug for that - http://bugs.freedesktop.org/show_bug.cgi?id=24424 Last time I was dealing with floppy, reverting commit noted in bug 23309 helped, no changes in gvfs were needed. I think we should close this bugreport as NOTGNOME.
Sounds good to me - and would be good to fix this in udisks. Closing.