KDE automounting problem (or HAL problem?)
This is a branch of the thread http://www.linuxquestions.org/questi...esktop-662319/ since I believe my problem is substantially different (though at first I thought that it was the same problem).
The problem is KDE no longer automounts either a CD/DVD or a USB device when they are plugged in. This suddenly stopped working shortly after updating my KDE to slackware-current, although this may well not have been the problem. I can't recall whether anything successfully automounted between that update and the time that things definitely went wonky. My user is in all the requisite groups. I can manually mount everything. Running ps ax | grep hald gives: 2798 ? Ss 0:00 /usr/sbin/hald --daemon=yes If relevant in Control Centre -> Peripherals -> Storage Media -> Advanced, the options for Enable HAL backend and Enable CD polling are greyed out (though they are checked). I'm not sure what else could be useful to finding the problem. This one has been puzzling me for some time. Any help would be grand. |
Some things to check:
Open the KDE Control Center. Open the KDE Components/ Service Manager section. Verify BOTH the KDE Media Manager and Media Notifier Daemon are enabled and running. Find the file $HOME/.kde/share/config/mediamanagerrc. If you want a fresh start, then delete the file. Otherwise open with a text editor and delete any device references with which you are having problems. |
Thanks for the response. Both of the services you mentioned are running. For good measure I stopped and re-started them, but no luck.
I don't have a $HOME/.kde/share/config/mediamanagerrc or something similar. Also I forgot to mention that the Konqueror's "Storage Media" on the "System" tab in the Navigation Panel is empty. My harddisk partitions used to show up there but now there's nothing. I tried another user account and it has the same problem so it's not as though I messed up my personal config files. But it is a KDE problem, no? |
Quote:
Also from a command line, run ps ax | grep polling to verify the hal daemon is watching those devices. Another easy check is to run Xfce and then notice whether automounting is working there. If not (and Xfce is configured correctly) then the problem is more fundamental. If the device automounts then focus on KDE. You can insert a USB stick and then run lsusb to verify the stick is recognized. A wild guess. Check /etc/hal/fdi/information for any configuration files. If you find any, open them to see whether the enable option is set to false. If the device is set to false then hal will not monitor those devices. |
Of your suggestions, the only one that points to a problem is that hald is not polling. Is this why "Enable HAL backend" and "Enable CD polling" are greyed out in the KDE Control Centre?
|
I installed xfce and tried it as well, but no luck there either.
Could a recent install of iscan be behind this? I'm racking my brains for what has changed on the comp. that would suddenly make automount/HAL stop working. |
ok first check if hal is the problem or not -
do a "lshal -m" and then plugin in your device. Does it show anything ? If it doesn't , then problem is hal. If it does then problem is somewhere else. install ivman & pmount and see if they are able to mount (at command line , there must be some million how-tos for this ) if they can't mount either then it is a problem with DBUS probably. |
Ah, I see you found my thread :)
I never resolved the problem, although in xfce, the automounting started working again (and I have now switched to it permanently as a result), after I accidentally formatted one of the external disks that wasn't showing up. I think it was something wrong with udev and that particular drive that broke everything; at least, that's my gut feeling. I know it's probably not a solution, and since everything started working after I did that, I haven't bothered to find out exactly what changed (if it ain't broke...). I don't know if there's a way of clearing all the udev "caching", but perhaps that's something to look into, since when the disk changed significantly, it all started working again... |
pwc101 - my fingers are crossed that it will spring back to life as yours did ... i even unplugged my ide dvd drive and rebooted since it's been a bit flaky of late. no luck though. one difference is that hald is not polling anything -- with you it was.
anyhow, i used lshal -m and my usb is picked up immediately there. should there be a reaction from the dvd/cd drive as well? because there wasn't (yes i tried _before_ unplugging it :) ). i'm trying ivman & pmount next ... |
Did you check /etc/hal/fdi/information for any configuration files? That your USB stick appears but CDs and DVDs do not, and that you stated hald is not polling the drive, indicates that polling is disabled. A likely culprit is a configuration file in /etc/hal/fdi/information.
The file will look something like this: Code:
<?xml version="1.0" encoding="UTF-8"?> |
Hi Woodsman,
There are no files in /etc/fdi/infomation. In fact the entire /etc/fdi tree only has empty directories. |
I also have the same problem since upgrading to current.
So far I have not been able to find a solution either. |
Try the following:
/usr/bin/hal-disable-polling --device /dev/hdc --enable-polling Substitute hdc with the appropriate device. If I recall correctly, running this command will create a config file in /etc/fdi/infomation similar to the one I posted. Notice that if the --enable-polling option is not used, then the device is disabled from polling. After running this command, run ps ax | grep polling to see whether the device is being polled. |
Quote:
1. Since I have three partitions on my hd, cdrom, a camera, and a three partition usb drive; do I have to do this for every device? Or maybe something like this: /usr/bin/hal-disable-polling --device /dev/hdc* --enable-polling 2.I tried it and got the following error: Code:
root@geoff /usr/bin/hal-disable-polling --device /dev/hdc1 --enable-polling Code:
root@geoff# fdisk -l |
Just a thought: if you have the DVD/CD drive mounted in /etc/fstab, even with the noauto option, then hald is not going to poll that device.
Quote:
Quote:
|
All times are GMT -5. The time now is 12:15 AM. |