Re: media:/ browsing and settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 10/19/06, Boyan Tabakov <blade.alslayer@xxxxxxxxx> wrote:
On 18.10.2006 23:53, Bogus Zaba wrote:
> There was a thread called "**Mechanism that mounts USB flashdrives
> <http://lists.kde.org/?t=115507656300002&r=1&w=2 >" **in the KDE-Linux
> forum which tried to answer this question a few months ago. IMHO it did

Thanks. I'll read that and see if it says anithing interesting.

> not get anywhere. Lots of people seem to know a bit about it but I have
> not found a really good explanation of the interactions between the
> basic fstab setup and all that the fancier tools do on top of it. From
> my experience, some of the problems you mention in your post might be to
> do with the need to do mount operations as root.

Mounting should be done as root, unless it is specified in the fstab file that
a user can mount some of the devices. However, if there is an entry in the
fstab file for that device, you can't override the settings in KDE's Media
Manager, since you are normally not root. If there is no such entry in fstab,
you can't mount the volume. So that's why I wonder what are these media
manager settings for? How can they take effect?
Maybe these are meant to work for removable devices only... To be honest I've
made some hacks in order to avoid the default "mountpoint-as-label" behavior,
and maybe by doing so (modifying some of the hal's fdi rules) I have broken
some of the media manager's functionality (for example, my optical drives are
not mounted automatically upon insert, but rather when I try accessing them
with KDE).
If anyone else has some ideas, please share those!

--
Blade hails you...

From cradle to coffin
Shall my wickedness be your passion
                        --Nightwish


___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/ .
More info: http://www.kde.org/faq.html.


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.

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.

Benol

PS. pumount can unmount devices.


___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux