You are not logged in.
Hello everyone.
I just reinstalled my system and i discovered that hal is no longer suported.
My trouble is mount automatically usb discks, sdcards, dvds, etc.
I read about it and i'm follow the steps inside
https://wiki.archlinux.org/index.php/Ud … n-mounting
but i'm not comfortable with the fact that you need to harcode one user for enable the unmount only for this.
I'm waiting a multiuser solution, maybe whit autofs or pmount, but all i readed in arch wiki uses HAL.
Do you have some sugests?
Thanks!
Last edited by xalabin (2011-08-22 22:26:02)
Offline
Try devmon or udiskie.
Offline
As long as you have dbus started as a daemon, and X session started with with ck-launch-session and dbus-launch most gui file-managers seems to support auto mounting of removable devices. If you depend on cli based file-managers udiskie could be an easy solution.
You don't need special udev rules, unless you want special control, to get mounting of removable devices to work. If you use a DE it's usually taken care of. Just don't forget to start dbus.
Offline
Hello.
I'm using xfce4, i launch xfce with exec ck-launch-session dbus-launch startxfce4
and dbus daemon is running.
I have installed udisks and thunar.
When i launch udisks --enumerate claims "udisks-WARNING **: Couldn't enumerate devices: The permission of the setuid helper is not correct"
My user is inside groups storage and dbus.
Because this first problem i tried to use udev rules.
Offline
I discovered that maybe it is a bug of btrfs betwen dbus
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569058
or maybe not:
http://us.generation-nt.com/answer/bug- … 07441.html
Offline
I solved it with
chmod a+x /usr/lib/dbus-1.0/dbus-daemon-launch-helper
Maybe dbus package needs to be patched with this?
Offline
I solved it with
chmod a+x /usr/lib/dbus-1.0/dbus-daemon-launch-helper
Maybe dbus package needs to be patched with this?
No... you don't go randomly chmod'ing setgid executables. This is not a proper solution. Look into consolekit and udisks. The bugs you linked both deal with retaining the setgid nature of the executable on upgrade.
Offline
@Xalabin - I think I'm experiencing the same problem and it started under similar circumstances (system purge and upgrade). I just sat down to look into the issue, so I will note this post and reply back if I learn something.
Also, I start xfce4 with the following line in .xinitrc.
exec ck-launch-session startxfce4
dbus is loaded as a daemon in rc.conf, but I don't have "dbus-launch" in my .xinitrc file. Do I need it there? I think dbus-launch is running because of the following.
$ ps -A | grep dbus
827 ? 00:00:00 dbus-daemon
1688 ? 00:00:00 dbus-launch
1689 ? 00:00:00 dbus-daemon
EDIT: I can mount my devices from the command line using the following command. No password is requested, so clearly I'm assuming I have the permission to mount drives. Still no automount though.
udisks --mount [device name]
Last edited by tlawren (2011-08-23 02:29:28)
Offline
Hello, install Hal, its is in Aur:
Install hal-git and all perfect.
kabbalah
Offline
Hello.
I launch my wm with : exec ck-launch-session dbus-launch startxfce4
and my user is in storage group.
I believe that my problem started at the installation because when you create a subvol in btrfs this is maked only readable for root.
Now is working, but because is a very recent instalattion and i need to add more things i will reinstall all having this issue in mind, just for play.
Offline
Install devmon
.xinitrc
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec ck-launch-session startkde
exec dbus-launch ck-launch-session xfce4-session
# ...or the Window Manager of your choice
/etc/rc.conf
DAEMONS=(dbus hwclock syslog-ng network netfs crond cupsd @alsa)
Last edited by Anonymo (2011-08-23 13:23:48)
Offline
I confirmed that i have a mistake during the install because default permission in a btrfs subvolume is 700 not 755.
Offline