You are not logged in.

#1 2009-01-28 00:38:16

cb951303
Member
Registered: 2007-03-17
Posts: 91

[SOLVED] USB automount doesn't work with normal user

My user is a member of storage, disk and optical group
If I put a cd on the drive it automatically mounts, I can access the files, and I can unmount it succesfully.
But If I plug in a usb flash disk, it doesn't automount. (if I'm root, it *does* automount)
Here is the dmesg

usb 1-8: new high speed USB device using ehci_hcd and address 4
usb 1-8: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi6 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
scsi 6:0:0:0: Direct-Access     OCZ      ATV              1100 PQ: 0 ANSI: 0 CCS
sd 6:0:0:0: [sdb] 3915776 512-byte hardware sectors: (2.00 GB/1.86 GiB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
sd 6:0:0:0: [sdb] Assuming drive cache: write through
sd 6:0:0:0: [sdb] 3915776 512-byte hardware sectors: (2.00 GB/1.86 GiB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
sd 6:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 6:0:0:0: [sdb] Attached SCSI removable disk
sd 6:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete

Thanks

PS: forgot to tell that hal and dbus works...

Last edited by cb951303 (2009-01-28 00:55:23)

Offline

#2 2009-01-28 00:46:19

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] USB automount doesn't work with normal user

I don't know if this has anything to do with your problem or not, but I needed to have the config section of /etc/PolicyKit.conf look like this:

<config version="0.1">
    <match action="org.freedesktop.hal.storage.mount-removable">
        <return result="yes"/>
    </match>
</config>

Offline

#3 2009-01-28 00:55:07

cb951303
Member
Registered: 2007-03-17
Posts: 91

Re: [SOLVED] USB automount doesn't work with normal user

It worked thanks!

I also added fam to my daemon list but I highly doubt it has anything to do with it.

Offline

#4 2009-01-28 01:52:29

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: [SOLVED] USB automount doesn't work with normal user

Use gamin instead of fam smile

Offline

Board footer

Powered by FluxBB