Slackware 12, HAL automount
I have just installed slackware 12 and cannot get the hang of Hal.
I plug in a usb drive and the box comes up asking what I want to do with it. What I want to do is automount and nothing else, no new boxes, no konquerer. How do I do this? Where is a good Hal FAQ TIA |
You should be able to choose 'do nothing' and tick the box to always do this. It's a kde feature rather than Hal.
There are also options in control centre to put device icons on the desktop when mounted. It's possible to use a combination of Hal and Autofs so it's possible to have the choice of using command line or konqueror. |
I dont know if kde's automounter will mount the cd without opening konqueror. I think ivman will function the way you want but you have to disable kde's automounting. Maybe someone that has ivman installed in kde 3.5.7 can tell you better than I can.
|
'Do nothing' leaves the device unmounted. I have the option set so that the device icon appears but it is still unmounted.
|
HAL doesn't actually mount anything; for lack of a better way to put it, HAL simply provides (in a standardized format) information about the hardware and what actions are potentially allowed, and then something else can use dbus methods (pending proper permissions) to actually *do* something with/to the hardware.
For what you're trying to do, I believe you'll want to investigate ivman and/or pmount (though there may very well be other options). http://slackbuilds.org has ivman and pmount scripts for 11.0, but they have not been tested or approved for use on 12.0, so caveat emptor. |
I don't think there is a good FAQ for HAL yet, nor much in terms of troubleshooting or tutorials on how to use it. I'm also having trouble getting into terms with HAL.
For example, just inserting and getting my CDROM mounted, is a problem. I do get the box asking what to do with it. But when I click that I want browse it, konqueror launches and I get a weird error message: A security policy in place prevents this sender from sending this message to this recipient: see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal") Anyone have a clue what this means? |
I do not know if this will help your problem but it may be worth checking that the cdrom line is commented out in fstab and that you are joined to the cdrom group.
|
Not tested, but I think you should be member of plugdev group..
info taken from CHANGES_AND_HINTS.TXT |
Quote:
" Users in the "plugdev" or "cdrom" group will be able to use such devices on the desktop without the need to mount/umount them manually." |
Quote:
But yeah, now it works. Thanks for the help :) Are there more groups for this purpose? E.g. if I want to automount an usb stick or an external usb drive, etc. Any groups I should add myself to accomplish this? |
Quote:
Quote:
|
Quote:
Reloading (as in /etc/rc.d/rc.messagebus reload) does not help. Neither does stopping and starting. Actually, automounting stops responding if I stop and start again. It's very peculiar. |
Not sure, but maybe you need to re-login after adding yourself to the relevant groups, as your login session reads the groups your user belongs to at login time... It shouldn't be necessary to reboot, but it may be necessary to restart D-BUS and/or HAL.
gargamel |
Quote:
But what about USB storage devices? Where do I need to add the users? |
Don't add users - it is unnecessary.
How to use USB flash drive with Slackware Linux First turn on HAL and D-BUS (if you don't): Code:
chmod +x /etc/rc.d/rc.messagebus Maybe you must restart KDE. |
All times are GMT -5. The time now is 12:18 PM. |