After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 604532 - floppy cannot be mounted: "no medium found"
floppy cannot be mounted: "no medium found"
Status: RESOLVED NOTGNOME
Product: gvfs
Classification: Core
Component: [obsolete] gdu volume monitor
1.4.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-12-14 13:09 UTC by Martin Pitt
Modified: 2009-12-14 16:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Pitt 2009-12-14 13:09:53 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?
Comment 1 Martin Pitt 2009-12-14 13:14:58 UTC
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.
Comment 2 Tomas Bzatek 2009-12-14 16:06:54 UTC
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.
Comment 3 David Zeuthen (not reading bugmail) 2009-12-14 16:58:45 UTC
Sounds good to me - and would be good to fix this in udisks. Closing.