FS#8489 - Gnome does not automount USB devices

Attached to Project: Arch Linux
Opened by Robert Hollencamp (rhollencamp) - Friday, 02 November 2007, 20:13 GMT
Last edited by Greg (dolby) - Monday, 12 May 2008, 18:44 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture i686
Severity High
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I did a fresh install of Arch on two seperate systems and installed gnome on both. Neither system will automount usb devices when they are inserted. CDs/DVDs will automount, and I formatted a partition using gparted and that automounted as soon as it was partitioned, but nothing happens when I insert a usb drive.

I can mount the devices manually, using mount /dev/sdb1 /mnt/usb. Everything in dmesg looks normal, there just is no automounting.

Additional info:
One system fully updated to core, one fully updated to testing. Both have same problem.


Steps to reproduce:
Install Arch Linux
Install Xorg/Gnome
Start Gnome
Insert USB drive and watch nothing happen
This task depends upon

Closed by  Greg (dolby)
Monday, 12 May 2008, 18:44 GMT
Reason for closing:  Fixed
Comment by Robert Hollencamp (rhollencamp) - Friday, 02 November 2007, 20:15 GMT
forgot to mention, I'm not the only one with this problem, here's a discussion in the forum http://bbs.archlinux.org/viewtopic.php?id=38046
Comment by Jan de Groot (JGC) - Friday, 02 November 2007, 22:04 GMT
Do you have gnome-volume-manager installed and are you member of the storage group?
Comment by Robert Hollencamp (rhollencamp) - Friday, 02 November 2007, 22:13 GMT
yes and yes
Comment by Stéphane Gaudreault (st_0xef) - Sunday, 04 November 2007, 22:59 GMT
I have similar problem with automount of USB stick in KDE. When plugging an usb device, I don't see anything in /var/log/messages.log.
I suspect this problem is kernel related, because I have this problem since I upgraded to kernel 2.6.23. Downgrading kernel to version 2.6.22 solved the problem for me.
Comment by Robert Hollencamp (rhollencamp) - Monday, 05 November 2007, 00:12 GMT
A solution was posted to the forum that works for me, here it is:

Do the following in a root terminal:

nano /etc/hal/fdi/policy/90-user-methods.fdi

insert:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="volume.fsusage" string="filesystem">
<merge key="volume.ignore" type="bool">true</merge>
<match key="@block.storage_device:storage.removable" bool="true">
<merge key="volume.ignore" type="bool">false</merge>
<merge key="storage.policy.should_mount" type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo>

reboot and external USB-Disk will be mounted automaticly after insert...


not sure if this is a gnome issue or a hal issue since other desktops seem unaffected according to other posters in the thread
Comment by Robert Hollencamp (rhollencamp) - Monday, 05 November 2007, 05:24 GMT
I wasn't paying close attention when testing this fix; while it does restore automounting of USB devices, automounting of hard drive partitions no longer functions.
Comment by Branko Vukelic (foxbunny) - Monday, 05 November 2007, 12:38 GMT
FWIW, automounting works on KDE (didn't work on GNOME, but haven't tested lately), so it might be a GNOME issue.
Comment by Roman Kyrylych (Romashka) - Monday, 05 November 2007, 13:25 GMT
Weird, I don't have any issues with automounting.
Latest Core/Extra packages, hal & dbus running, member of storage group (not member of hal or dbus), no fam running.
Comment by João Rodrigues (gothicknight) - Wednesday, 07 November 2007, 09:34 GMT
Here, all devices are working fine so... can it be a faulty hardware or maybe some weird line in udev, hal or even usb-storage blacklist that is preventing this device to be detected as an usb-storage?
Comment by Robert Hollencamp (rhollencamp) - Friday, 09 November 2007, 16:37 GMT
if you look at the HAL page in the wiki, there's actually mention of this problem there, as well as a solution that works for me (and yes I also checked the physical drive partitions this time)
Comment by Stéphane Gaudreault (st_0xef) - Friday, 09 November 2007, 17:31 GMT
I forgot to mention that I am also not able to mount my usb stick manually with kernel 2.6.23, while it's works with kernel 2.6.22. Configuration of /etc/hal/fdi/policy/preferences.fdi do not change anythings for me.
Comment by Greg Meyer (oggb4mp3) - Wednesday, 14 November 2007, 02:35 GMT
It's only a problem for ntfs formatted volumes for me. All usb sticks and external usb drives formatted fat32 work fine, while the one I have formatted with ntfs gives the error and will not mount. I also tried reformatting the drive with a problem to fat32 and it worked fine.
Comment by Greg Meyer (oggb4mp3) - Wednesday, 14 November 2007, 03:01 GMT
Okay, I did a little more searching and turns out I was going down the wrong road. Apparently ntfs cannot be mounted as user, so KDE will throw an error since the mount helper tries to mount as user. To fix it, right-click the device in storage media, then uncheck "mount as user" Now it should work.
Comment by Raymano Garibaldi (raymano) - Sunday, 13 January 2008, 17:06 GMT
This problem still exists in KDE and Milfadoodle's suggestion on the forums seems to fix it without any side effects. Thanks Milfadoodle! See:

http://bbs.archlinux.org/viewtopic.php?pid=297389#p297389

So I have created a new patched version of the package source that can be downloaded from here:

http://viewvc.faunos.com/viewvc.cgi/extra/hal/trunk.tar.gz?view=tar
Comment by Roman Kyrylych (Romashka) - Saturday, 09 February 2008, 19:42 GMT
Jan, what do you think about the comment above?
Comment by Riri (chicha) - Friday, 09 May 2008, 13:15 GMT
Did you activate gnome-volume-manager in your session with Gnome 2.20 ?
A new Gnome version is out since then : 2.22.
Is this problem still valid ?

Also this new Gnome version uses GIO/GVFS and nautilus is responsible for mounting peripheral instead of gnome-volume-manager, so disabling gnome-volume-manger is something you should try with Gnome 2.22.

See my comments in #10328
Comment by Danny Arnold (despairblue) - Monday, 12 May 2008, 13:31 GMT
I don't have the gnome-volume-manager installed, but automount works for everything I tested using gnome 2.22.1.
Is this fixed or is there anyone for whom it does not work with the latest gnome?

Loading...