You are not logged in.

#1 2011-08-22 17:42:49

xalabin
Member
Registered: 2011-08-22
Posts: 9

Automount whitout HAL [SOLVED]

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

#2 2011-08-22 18:47:56

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Automount whitout HAL [SOLVED]

Offline

#3 2011-08-22 20:30:03

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: Automount whitout HAL [SOLVED]

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

#4 2011-08-22 21:15:03

xalabin
Member
Registered: 2011-08-22
Posts: 9

Re: Automount whitout HAL [SOLVED]

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

#5 2011-08-22 22:19:47

xalabin
Member
Registered: 2011-08-22
Posts: 9

Re: Automount whitout HAL [SOLVED]

Offline

#6 2011-08-22 22:23:42

xalabin
Member
Registered: 2011-08-22
Posts: 9

Re: Automount whitout HAL [SOLVED]

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

#7 2011-08-22 23:33:29

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Automount whitout HAL [SOLVED]

xalabin wrote:

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

#8 2011-08-23 01:54:09

tlawren
Member
From: Colorado, US
Registered: 2009-04-06
Posts: 80

Re: Automount whitout HAL [SOLVED]

@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

#9 2011-08-23 02:49:52

kabbalah
Banned
Registered: 2011-08-23
Posts: 150

Re: Automount whitout HAL [SOLVED]

Hello, install Hal, its is in Aur:

Install hal-git and all perfect.


kabbalah

Offline

#10 2011-08-23 10:56:02

xalabin
Member
Registered: 2011-08-22
Posts: 9

Re: Automount whitout HAL [SOLVED]

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

#11 2011-08-23 13:23:20

Anonymo
Member
Registered: 2005-04-07
Posts: 427
Website

Re: Automount whitout HAL [SOLVED]

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

#12 2011-08-25 20:42:41

xalabin
Member
Registered: 2011-08-22
Posts: 9

Re: Automount whitout HAL [SOLVED]

I confirmed that i have a mistake during the install because default permission in a btrfs subvolume is 700 not 755.

Offline

Board footer

Powered by FluxBB