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

KDE 4.11 and problems with removable drives

Tags: None
(comma "," separated)
zeke
Registered Member
Posts
34
Karma
0
My system just upgraded to KDE 4.11 (Linuxmint 13 w/ KDE) and mounting of removable drives is not acting as I would expect or want.
- It does not automount when I log in, even tho this option is set.
- when I mount it manually, it mounts it at e.g. /media/<current user>/ExternalData. Other users in parallel sessions cannot get access to the drive.

I didn't have any problem that I recall w/ previous versions. The last version I used was 4.10.5. It always seemed to automount at e.g. /media/ExternalData and I did not have a problem getting access for multiple users. I really hope this is bug and not the intended behavior. Seeing as how the automount at login doesn't seem to be working, I am hoping it is the former.
User avatar
google01103
Manager
Posts
6668
Karma
25
Did you also upgrade to Mint to 13?

The location of the mount point is not set by KDE, the actual default in Linux is /var/run/media/<current user/ but Ubuntu and therefore Mint change it to /media/<current user>/ iirc. The reason others do not have access is that the permissions are set so only the user has access, this is all due to the change to udisks2 where device are mounted to a users folder not an open to all one which makes sense for privacy and security.

As for auto mounting see viewtopic.php?f=260&t=117063 you might need to install/upgrade udisks2


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25
If you want to replicate the older behavior you can try this (have not tried) http://askubuntu.com/a/276670
In Ubuntu 13.04 you can tell udisks2 to automount in /media/ instead of /media/[username]/ by adding a udev rule that sets the environment var UDISKS_FILESYSTEM_SHARED. You can do this by adding a file called (eg) /etc/udev/rules.d/99-udisks2.rules that contains:

ENV{ID_FS_USAGE}=="filesystem", ENV{UDISKS_FILESYSTEM_SHARED}="1"
I think udev monitors the /etc/udev/rules.d folder to detect changes, but if not, you can force it to reload its rules with "sudo udevadm control --reload". Note though that the new mount location doesn't seem to take effect until you physically remove and plug the external drive back in.

This doesn't work in Ubuntu 12.10 because it uses udisks version 2.0.0, and support for the above didn't appear until version 2.0.91.


OpenSuse Leap 42.1 x64, Plasma 5.x

zeke
Registered Member
Posts
34
Karma
0
google01103 wrote:Did you also upgrade to Mint to 13?

The location of the mount point is not set by KDE, the actual default in Linux is /var/run/media/<current user/ but Ubuntu and therefore Mint change it to /media/<current user>/ iirc. The reason others do not have access is that the permissions are set so only the user has access, this is all due to the change to udisks2 where device are mounted to a users folder not an open to all one which makes sense for privacy and security.

As for auto mounting see viewtopic.php?f=260&t=117063 you might need to install/upgrade udisks2


I did not upgrade Mint. It has been at 13 (based on ubuntu 12.04) for quite some time. It has been automounting, and the mount point has been /media/, up until the time I upgraded to KDE 4.11. Something definitely changed at that time. The behavior you mentioned seems to be the ubuntu default, but I have never seen that as far as I can recall. I would look at fstab in case I edited it and forgot and it was recently overwritten somehow, but the file date is not recent.
User avatar
google01103
Manager
Posts
6668
Karma
25
it could be that you had been running udisks and that you were upped to udisks2 because of kdelibs4 4.11 which, at least in openSUSE, has it as a requirement.


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
voodoostevie
Registered Member
Posts
1
Karma
0
OS
I believe the fix for Mint 15 shown in this post will work for Mint 13.

Or if you want a answer here:

Code: Select all
sudo apt-get install udisks2


I have been going back to 4.10.5 by re-installing Mint 15 and omitting the PPA's for kubunt-backports until this has been resolved. I tested the fix and it worked. Let me know if it works on Mint 13 as well.
zeke
Registered Member
Posts
34
Karma
0
Not sure what happened, I think the option to automount on login for the particular disk I am using somehow got unselected, so now it is automounting on login after I selected it again. I guess the mount under /media/<username> seems to be the ubuntu standard, so maybe that has changed in recent updates? Anyway, I added an entry to fstab to mount the disk under /media, and everyone has access to it.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]