You are not logged in.

#1 2016-11-08 23:05:50

6ng4n
Member
Registered: 2012-02-07
Posts: 84

Changing default behavior of Udisks2

I'm using KDE Plasma 5 desktop. As I can see it uses udisks2 to mount the partitions and Plasma 5 offers a nice UI for selecting devices to automount so I want to keep Plasma as automount manager. However the default mount options  of udisks2 for NTFS drives (mode: 0777 really?!!) bugs me a lot. I did some research but found nothing about changing the behavior using a config file. I don't want to use fstab since I am not able to know UUIDs/Labels of every device and they're tend to change. There is a launchpad bug report sent in 2010 about the issue (*). It's confirmed but it looks like nothing has been done. I remember there was a source that suggests editing the source code of udisks, but i couldn't find it.  Is the situation same for udisks2?

(*) https://bugs.launchpad.net/ubuntu/+sour … bug/682589

Offline

#2 2016-11-09 09:47:01

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Changing default behavior of Udisks2

Yes.
AFAIK udisks2 is not configurable for default mount mode options.
But you can configure it to use '/media/VolumeName' as mount point, with the mode you choose for '/media',  instead of '/run/media/$USER/VolumeName',
using the 'UDISKS_FILESYSTEM_SHARED' udev property in a udev rule.
See https://wiki.archlinux.org/index.php/ud … udisks2.29

Offline

#3 2016-11-11 00:35:48

6ng4n
Member
Registered: 2012-02-07
Posts: 84

Re: Changing default behavior of Udisks2

That's sad sad  freedesktop.org developer's way of thinking bothers me. I'll keep looking, maybe with a bit help from Udev side a solution is possible.

Offline

Board footer

Powered by FluxBB