This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Automount different media to the same name

Tags: None
(comma "," separated)
necroborg
Registered Member
Posts
2
Karma
0
OS
Hi everyone,
First, a little greeting as this is my first post on the community forums, so nice to meet you everyone :)

I have a little trouble with the automount functionality in KDE4 (using 4.6.5 at the moment).
Let's start by saying that basically, it works. I plug in an SD card, it shows up in the device notifier. It gets automounted if so configured in the automount configuration. That's generally perfect to use on my computer.

Things complicate a little when you know what I want to do. As it happens, I'd like to make the sdcard available through the network. Specifically, I got a second computer running windows in the room - and being windows, SD card works or not, but mostly not. So I basically have the user of this computer to insert the SD card in my machine, and export it through samba so that the windows machine can see it.
My current setup involves having a symbolic link under my home that points to the mount point of the SD card, and automatic mounting of the SD card.

However in the practice, this does not work, for two reasons. The first one is, KDE will mount the SD card to a directory name that is dependent on the label name of the file system, which means my symbolic link will not point to the right place when I insert a different SD card. There is no way for me, as far as I know, to have it automount always in the same place ; what I'd actually like it to do would be to mount any medium inserted in a specific drive always to the same directory. If my windows user rocks in home with a new SD card my machine has never seen, I want them to be able to just ram it into my machine and see it from the network even if I'm not home to unlock my screen for them.

The other problem is, (I think this starts with KDE4.6), the medium is mounted with the permissions to read for exactly MY user. While this is a very sensible thing to do by default, my use case does require the samba user to be able to read the SD card too.

I've been searching through documentation all around the place, googling a lot for solutions or configuration file places with no luck. I have been so far unable to find any place where I could change these behaviors, that are good for normal user defaults but totally break my own use case.

If anyone has any pointers to give on where I could configure this, advice or otherwise any help, I'd be really happy. I don't especially insist on having this work the way I described ; I'd be happy to setup pretty much anything that does not compromise my system security, be it using autofs or whatever, so if you think I could do it easier using another setup by all means don't refrain.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The mount point and permissions of the device are regulated by UDisks under KDE 4.6 and later, and HAL in KDE 4.5 and earlier.

For UDisks, you may need to patch the kdelibs sources to change the arguments sent by KDE to UDisks when performing the mount.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
necroborg
Registered Member
Posts
2
Karma
0
OS
bcooksley wrote:For UDisks, you may need to patch the kdelibs sources to change the arguments sent by KDE to UDisks when performing the mount.


Thank you very much for the information, I'll look into UDisks possibilities and configurations. I sure hope I don't have to patch the libs, I like having my distrib's automatic updates >.>

Anyway thank you very much. I'll post again if I make any interesting findings.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]