You are not logged in.
dbus and hal wont work.
i would like to automount my camera or memorystick
sudo /etc/rc.d/dbus restart
:: Stopping D-BUS system messagebus [BUSY]
/etc/rc.d/dbus: line 24: kill: (8854) - Processo inexistente
[FAIL]
:: Starting D-BUS system messagebus [BUSY]
Failed to start message bus: The pid file "/var/run/dbus.pid" exists,
if the message bus is not running, remove this file
[FAIL]
sudo /etc/rc.d/hal restart
:: Stopping Hardware Abstraction Layer [FAIL]
:: Starting Hardware Abstraction Layer [BUSY]
this is the daemons in the rc.conf
DAEMONS=(syslog-ng network samba hal sonypid hplip ptal-init cups netfs crond alsa sshd fam ipw3945d stbd)
cheers:)
Last edited by osc~ (2008-01-25 13:20:12)
Offline
Hi osc~,
if exists try to remove the pid file
/var/run/dbus.pid
and start dbus again.
Also what is the version of dbus and hal in your system?
Last edited by luca (2007-12-28 07:36:00)
Offline
I have the same problem but removing /var/run/dbus.pid doesn't resolve it. Btw, what's strange is that even if dbus says "fail" at boot it is running nonetheless
ps aux | grep dbus
dbus 7489 0.0 0.0 2252 932 ? Ss 09:17 0:00 /usr/bin/dbus-daemon --system
root 9235 0.0 0.0 3712 856 pts/2 S+ 09:34 0:00 grep dbus
To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github
Offline
ps aux | grep dbus
dbus 7567 0.0 0.0 2388 1024 ? Ss 14:49 0:00 /usr/bin/dbus-daemon --system
root 7683 0.0 0.1 2256 1208 ? S 14:49 0:00 dbus-daemon --session --print-address --nofork
true it is running.
is this a bug in arch?
nevertheless, when i insert a memory stick or a digital cam; they dont automount.
what must i do?
Offline
Maybe some other daemon called dbus on system startup?
Did you tried to add your user to the "camera" group?
gpasswd -a user camera
Offline
to me it all seems ok. but still i cant manage to automount a usb flash memory or a camera or a memory stick.
here goes some info that might help:
groups
sys adm lp wheel locate games dbus hal network video audio optical storage scanner camera power users gdm stb-admin adesklets
id noise
uid=1000(noise) gid=100(users) grupos=100(users),3(sys),4(adm),7(lp),10(wheel),50(games),90(network),91(video),92(audio),93(optical),95(storage),
98(power),21(locate),81(dbus),82(hal),101(gdm),97(camera),96(scanner),102(stb-admin),107(adesklets)
DAEMONS=(syslog-ng dbus hal network netfs samba sonypid @hplip @ptal-init @cups !crond @alsa @sshd ipw3945d fam @stbd)
thanks
Offline
could anybody give me a hand with this one. i am stuck. everything seems ok, but it still wont auto mount.
Last edited by osc~ (2008-01-20 00:21:25)
Offline
osc~:
To automount your camera on connecting it, you need to (I know you already have some steps, but just to list it all):
1 - Have HAL and dbus properly instaled and up to date
2 - Have "hal" daemon entry on rc.conf (no need to start dbus, hal starts dbus by itself)
3 - Add your user to the groups: dbus, storage, camera. Use:
gpasswd -a <user> <group>
as root
4 - If you use GNOME, start the following process via the GNOME Session Preferences on every login:
gnome-volume-manager --sm-disable
This will do the trick.
Offline
steps 1,2,3 are ok.
if i type:
noise ~ $ /etc/rc.d/hal start
:: Starting Hardware Abstraction Layer [FAIL]
noise ~ $ /etc/rc.d/dbus start
:: Starting D-BUS system messagebus [BUSY] Failed to start message bus: The pid file "/var/run/dbus.pid" exists, if the message bus is not running, remove this file
[FAIL]
i get these errors even though at startup they manage to load.
Offline
To start/stop daemons after boot you need to be logged as root, and doesn't look like you're:
noise ~ $ /etc/rc.d/hal start
...
Last edited by freakcode (2008-01-20 00:39:10)
Offline
i actually had tried it as root as well, but ended up posting as normal user.
root /home/noise # /etc/rc.d/hal start
:: Starting Hardware Abstraction Layer [FAIL]
root /home/noise # /etc/rc.d/dbus start
:: Starting D-BUS system messagebus [BUSY] Failed to start message bus: The pid file "/var/run/dbus.pid" exists, if the message bus is not running, remove this file
[FAIL]
man what a problem.
Last edited by osc~ (2008-01-20 00:41:26)
Offline
"hal start" will NEVER work if HAL is already running. Use "hal restart" instead.
Anyway, if HAL is already running, you shouldnt need to do anything else than the above instructions to get the camera automounting working.
Last edited by freakcode (2008-01-20 02:27:10)
Offline
dbus and hal wont work.
i would like to automount my camera or memorystick
this is the daemons in the rc.confDAEMONS=(syslog-ng network samba hal sonypid hplip ptal-init cups netfs crond alsa sshd fam ipw3945d stbd)
cheers:)
When Arch boots up, the Daemons are started in the order they are listed in the /etc/rc.conf file. If some Daemons are dependent on others, then the order is important. For example, fam should be started before hal, and you have it the opposite. Plus, portmap isn't even listed in your rc.conf and I THINK (emphasis on think) portmap is necessary for automount. Other examples are, network needs to be started before firestarter, and netfs needs to be started before sshd. Here is a listing of my DAEMONS line in my /etc/rc.conf file. Try rearranging the order of startup and add portmap to the list.
DAEMONS=(syslog-ng network firestarter netfs sshd crond portmap fam dbus hal !avahi-daemon samba cups stbd alsa)
HTH
Pudge
Last edited by Pudge (2008-01-20 04:15:59)
Offline
What info does dmesg show after you plug in your devices?
Offline
hi
i changed my daemons as you recommended.
DAEMONS=(syslog-ng network netfs @sshd crond portmap fam dbus hal samba sonypid @hplip @ptal-init @cups @alsa ipw3945d @stbd)
but still nothing.
osc~ wrote:dbus and hal wont work.
i would like to automount my camera or memorystick
this is the daemons in the rc.confDAEMONS=(syslog-ng network samba hal sonypid hplip ptal-init cups netfs crond alsa sshd fam ipw3945d stbd)
cheers:)
When Arch boots up, the Daemons are started in the order they are listed in the /etc/rc.conf file. If some Daemons are dependent on others, then the order is important. For example, fam should be started before hal, and you have it the opposite. Plus, portmap isn't even listed in your rc.conf and I THINK (emphasis on think) portmap is necessary for automount. Other examples are, network needs to be started before firestarter, and netfs needs to be started before sshd. Here is a listing of my DAEMONS line in my /etc/rc.conf file. Try rearranging the order of startup and add portmap to the list.
DAEMONS=(syslog-ng network firestarter netfs sshd crond portmap fam dbus hal !avahi-daemon samba cups stbd alsa)
HTH
Pudge
Offline
here is the dmesg part.
sd 4:0:0:0: [sdb] 1942528 512-byte hardware sectors (995 MB)
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Mode Sense: 87 00 00 00
sd 4:0:0:0: [sdb] Assuming drive cache: write through
sd 4:0:0:0: [sdb] 1942528 512-byte hardware sectors (995 MB)
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Mode Sense: 87 00 00 00
sd 4:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
What info does dmesg show after you plug in your devices?
Offline
"hal start" will NEVER work if HAL is already running. Use "hal restart" instead.
Anyway, if HAL is already running, you shouldnt need to do anything else than the above instructions to get the camera automounting working.
i did sudo /etc/rc.d/hal restart and it started fine.
so then i rebooted my computer.
but still i cant automount anything.
cheers
Offline
freakcode wrote:"hal start" will NEVER work if HAL is already running. Use "hal restart" instead.
Anyway, if HAL is already running, you shouldnt need to do anything else than the above instructions to get the camera automounting working.
i did sudo /etc/rc.d/hal restart and it started fine.
so then i rebooted my computer.
but still i cant automount anything.
cheers
hi osc~.
i experienced exactly the same problem on my girlfriend's laptop. as it turned out, i once installed gparted which created some hal-specific file in /usr/share/.... which prevented removable devices from being mounted by gnome. i hope this information is helpful for you.
cheers...
Offline
hey dw
thanks for the help, but i cant really know how it could help.
what did you do to solve the problem?
osc~ wrote:freakcode wrote:"hal start" will NEVER work if HAL is already running. Use "hal restart" instead.
Anyway, if HAL is already running, you shouldnt need to do anything else than the above instructions to get the camera automounting working.
i did sudo /etc/rc.d/hal restart and it started fine.
so then i rebooted my computer.
but still i cant automount anything.
cheershi osc~.
i experienced exactly the same problem on my girlfriend's laptop. as it turned out, i once installed gparted which created some hal-specific file in /usr/share/.... which prevented removable devices from being mounted by gnome. i hope this information is helpful for you.
cheers...
Offline
hey.
i just uninstalled gparted (which is probably not necessary) and deleted the file /usr/share/hal/fdi/policy/gparted-disable-automount.fdi. after a reboot, automounting worked fine again in gnome. i really hope this information is helpful for you to get automounting working again
cheers
Offline
I just did some quick experiments...
/usr/share/hal/fdi/policy/gparted-disable-automount.fdi
is created by gparted when it starts up. when gparted crashes it does not get removed.
simply starting gparted again and then exiting gparted cleanly is enough to remove it and get my system working correctly. no reboot was needed on my system.
fck art, lets dance.
Offline
As far as I know, dbus doesn't need to be included in the DAEMONS list anymore I believe. If you have added your user to the groups listed in previous posts, you need to logout to take effect. HAL needs to be in list though.
Offline
I just did some quick experiments...
/usr/share/hal/fdi/policy/gparted-disable-automount.fdi
is created by gparted when it starts up. when gparted crashes it does not get removed.simply starting gparted again and then exiting gparted cleanly is enough to remove it and get my system working correctly. no reboot was needed on my system.
thx clarence. nice to know that...
Offline
If this isnt sloved yet, i reccomend.
pacman -Syu #fix any file erros
Then remove dbus from rc.conf, I dont have it within my rc.conf and hal works fine.
Or failing that, remove all deamons from rc.conf that arent essintal, start your computer, then try starting HAL manually.
Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)
Offline
yes, finally!!!!!
thanks a lot dw and clarence.
it was the problem with gparted that caused this.
i just started gparted and then closed it. and it worked. now everything automounts.
cheers!!!
Offline