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 324839 - Remove non-mountable USB media from "Computer"
Remove non-mountable USB media from "Computer"
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: File operations
2.14.x
Other All
: Normal minor
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-22 20:58 UTC by John Richard Moser
Modified: 2008-09-06 19:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description John Richard Moser 2005-12-22 20:58:17 UTC
Please have "Computer" and disk mounter and such remove non-mountable media from
the display when "Unmounted."  Nautilus/GnomeVFS seems to 'eject' the media,
leaving USB flash drives impossible to mount until physically removed and
reinserted.

Other information:
If you try to mount an "unmounted" (ejected) USB drive, you get an error because
Linux no longer recognizes it as a connected volume, just a connected ambiguous
device.  Unless you can HUP these things back into working order, they should be
hidden.
Comment 1 Sebastien Bacher 2005-12-25 15:12:51 UTC
Thanks for your bug. Are you drive listed by /etc/fstab? What version of GNOME do you use? Is gnomevfs built with hal? What distribution do you use? The USB devices should be detected by hal and listed only when plugged, that works fine for me
Comment 2 John Richard Moser 2006-02-15 00:07:20 UTC
This is Ubuntu Dapper/Breezy/Hoary tested, using hal.

This is what happens:

 1.  Plug in USB drive
 2.  GNOME/HAL mounts
 3.  Right-click, Unmount  ("Computer" in nautilus)
 4.  Right-click, Mount.
 5.  "CANNOT MOUNT DRIVE!"

In step (3), Gnome/HAL send 'eject' to the media to force flush the buffers, because not all USB sticks flush on umount.  It's now disconnected, and the port can't be reset in the current subsystem.

To mount the media again, it has to be removed and re-inserted.  This may be done by using some kernel interface to virtually remove/insert the device (turn the USB port off and back on), but I don't know if that's physically possible by hardware spec.
Comment 3 Christian Neumair 2006-02-15 09:38:04 UTC
Reassigning to GnomeVFS.

I don't see why it shouldn't be allowed to remount this drive.
Using the patch under [1], I'm able to remount it.

[1] http://mail.gnome.org/archives/gnome-vfs-list/2006-February/msg00002.html
Comment 4 Sebastien Bacher 2006-03-27 12:41:06 UTC
Any news on that? The issue is still happening with GNOME 2.14.0 as pointed by https://launchpad.net/distros/ubuntu/+source/nautilus/+bug/34680
Comment 5 André Klapper 2008-09-06 19:10:36 UTC
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome.

If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs.

@Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of these notification emails all together.


General further information: http://en.wikipedia.org/wiki/GVFS 
Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html