<br><br><div><span class="gmail_quote">On 10/19/06, <b class="gmail_sendername">Boyan Tabakov</b> <<a href="mailto:blade.alslayer@gmail.com">blade.alslayer@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 18.10.2006 23:53, Bogus Zaba wrote:<br>> There was a thread called "**Mechanism that mounts USB flashdrives<br>> <<a href="http://lists.kde.org/?t=115507656300002&r=1&w=2">http://lists.kde.org/?t=115507656300002&r=1&w=2
</a>>" **in the KDE-Linux<br>> forum which tried to answer this question a few months ago. IMHO it did<br><br>Thanks. I'll read that and see if it says anithing interesting.<br><br>> not get anywhere. Lots of people seem to know a bit about it but I have
<br>> not found a really good explanation of the interactions between the<br>> basic fstab setup and all that the fancier tools do on top of it. From<br>> my experience, some of the problems you mention in your post might be to
<br>> do with the need to do mount operations as root.<br><br>Mounting should be done as root, unless it is specified in the fstab file that<br>a user can mount some of the devices. However, if there is an entry in the
<br>fstab file for that device, you can't override the settings in KDE's Media<br>Manager, since you are normally not root. If there is no such entry in fstab,<br>you can't mount the volume. So that's why I wonder what are these media
<br>manager settings for? How can they take effect?<br>Maybe these are meant to work for removable devices only... To be honest I've<br>made some hacks in order to avoid the default "mountpoint-as-label" behavior,
<br>and maybe by doing so (modifying some of the hal's fdi rules) I have broken<br>some of the media manager's functionality (for example, my optical drives are<br>not mounted automatically upon insert, but rather when I try accessing them
<br>with KDE).<br>If anyone else has some ideas, please share those!<br><br>--<br>Blade hails you...<br><br>From cradle to coffin<br>Shall my wickedness be your passion<br> --Nightwish<br><br><br>___________________________________________________
<br>This message is from the kde mailing list.<br>Account management: <a href="https://mail.kde.org/mailman/listinfo/kde">https://mail.kde.org/mailman/listinfo/kde</a>.<br>Archives: <a href="http://lists.kde.org/">http://lists.kde.org/
</a>.<br>More info: <a href="http://www.kde.org/faq.html">http://www.kde.org/faq.html</a>.</blockquote><div><br><br>Generally speaking, you're right, but there are some exceptions. First - the pmount command, which can mount removable devices as a normal user (don't ask how, it just does it). Second - HAL, Hardware Abstraction Layer, which detects atached USB disks or inserted CDs and runs pmount-hal. However, you have to configure pmount ("pmount policy") and HAL so that it mounts everything in /media or wherever you want. HAL uses dbus message bus to communicate with KDE media manager. So when an USB drive is attached, dbus message is sent to KDE, it asks you what to do, and depending on your answer mounts it or not.
<br><br>About configuration and possible problems - first, you have to be in the "plugdev" group, to which (by default) all the files and devices belong. On my gentoo box I didn't do any configuration tweaks to pmount, hal or dbus, KDE automatically starts cooperating with them.
<br><br>Benol<br><br>PS. pumount can unmount devices.<br></div><br></div><br>