You are not logged in.

#1 2012-04-19 20:56:44

John0000
Member
Registered: 2012-04-12
Posts: 40

[SOLVED] Automount extern usb devices with xfce4 doesn't work

Hi all,
I would like that when I plug a usb device, it mounts itself, but it's not working.

The error says : "Not autorizhed" when I click on the icon on nautilus or thunar. My arch install is fresh and up to date. Note that with mount /dev/sdb1 /path/to/folder/ it's working.

Through my internet searches, I've found some posts stating that xfce4 "would" need HAL, but in the documentation it says it's deprecated (the posts are a few years old).. I also found out that udev should replace hal, but it's already installed and up to date, the doc says automount should work properly "out of the box", so I'm a little confused...

I tried to configure fstab, everything seems fine (the icon with the name of the folder I configured shows up in nautilus) but when I click I have :
Error mounting: mount exited with exit code 1: helper failed with:
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged

I'm a little at a loss...any help appreciated smile

Last edited by John0000 (2012-04-20 12:00:11)

Offline

#2 2012-04-19 21:33:37

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: [SOLVED] Automount extern usb devices with xfce4 doesn't work

Offline

#3 2012-04-20 04:05:37

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] Automount extern usb devices with xfce4 doesn't work

How do myou start xfce? Do you have dbus and consolekit running for the session?

Offline

#4 2012-04-20 04:18:35

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: [SOLVED] Automount extern usb devices with xfce4 doesn't work

Also, in addition to Padfoot, if you launch your session in "~/.xinitrc" then the launch line should look like this:

exec ck-launch-session dbus-launch --exit-with-session startxfce4

Offline

#5 2012-04-20 06:09:36

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] Automount extern usb devices with xfce4 doesn't work

Another option is to use udev rules for it. See here for an explanation and various examples.


Burninate!

Offline

#6 2012-04-20 11:56:13

John0000
Member
Registered: 2012-04-12
Posts: 40

Re: [SOLVED] Automount extern usb devices with xfce4 doesn't work

Hi, and thanks for the replies, it worked perfeclty when I changed .xinitrc : before I just had "exec ck-launch-session startxfce4"

For the info, gvfs and thunar-volman were installed already on my comp (Do I still need thunar-volman since I use mainly nautilus ?)

Out of curiosity, what is dbus-launch doing that dbus isn't ? Because I have dbus in the DAEMONS line in rc.conf...and I can see on boot that it is started correclty.

Offline

#7 2012-04-20 12:09:30

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: [SOLVED] Automount extern usb devices with xfce4 doesn't work

There's the daemon for the system and one for your session.

Offline

Board footer

Powered by FluxBB