You are not logged in.

#1 2013-12-05 17:29:07

bobwya
Member
Registered: 2012-01-09
Posts: 36

Udisks2 change default options for mounting filesystems??

Hi fellow Archers,

I'm testing out the Paragon ufsd ntfs driver. It's more fussy than the standard ntfs-3g fuse driver with NTFS volumes that are marked as dirty (and will refuse to mount them). I should add I am trying to set up Udisks2 (KDE Desktop) to be able to mount NTFS volumes on demand (for a LiveDVD build).

Basically I need a way to force all NTFS volumes, mounted by Udisks2, to have the forced option passed to the actual mount command. I can see why people rant about Udisks2 - because the documentation totally sucks. It's fine if you want to interrogate/get detailed information on a partition, etc. But what about any actual user configuration??

Please don't move this thread to "Unsupported Software", etc. - my use of the Paragon software is irrelevant. Their software is working fine (i.e. I can click-mount clean NTFS volumes, using Udisks2, in Dolphin). My problem is purely down to how to configure Udisks2 - to change default ntfs filesystem mount options - if this is even possible!!

Thanks
Bob

Offline

#2 2013-12-05 22:00:58

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

Re: Udisks2 change default options for mounting filesystems??

As far as I know, there is no configuration file to change the default options for mounting with udisks2.
For ntfs-3g the manual says:

force  This option is obsolete. It has been superseded by the recover and norecover options.

       recover
              Recover  and  try  to  mount a partition which was not unmounted properly by Windows. The Windows logfile is cleared,
              which may cause inconsistencies.  Currently this is the default option.

I don't know the defaults for the Paragon ufsd ntfs driver (can you give a link to a doc about that driver).

But I know that if there is an entry in /etc/fstab for the device, udisks2 will use that entry with the driver and its options given there.
So that may be a workaround to force the non default option you want.

Offline

#3 2013-12-05 22:40:07

bobwya
Member
Registered: 2012-01-09
Posts: 36

Re: Udisks2 change default options for mounting filesystems??

berbae wrote:

As far as I know, there is no configuration file to change the default options for mounting with udisks2.
For ntfs-3g the manual says:

force  This option is obsolete. It has been superseded by the recover and norecover options.

       recover
              Recover  and  try  to  mount a partition which was not unmounted properly by Windows. The Windows logfile is cleared,
              which may cause inconsistencies.  Currently this is the default option.

I don't know the defaults for the Paragon ufsd ntfs driver (can you give a link to a doc about that driver).

But I know that if there is an entry in /etc/fstab for the device, udisks2 will use that entry with the driver and its options given there.
So that may be a workaround to force the non default option you want.

The force is not needed for ntfs-3g driver because it will mount NTFS volumes that are marked as dirty. The Paragon ufsd ntfs driver is very similar to the ntfs-3g driver - in the options it supports (minus the need for fuse options obviously). To put this in perspective my main Windows systemd mount unit went from:

[Mount]
Type=ntfs-3g
Options=allow_other,uid=robert,gid=users,umask=0002,noatime

to...

[Mount]
Type=ufsd
Options=force,uid=robert,gid=users,umask=0002,noatime

But that is on my laptop - with a bare metal install of Arch - so I have control here. Using an /etc/fstab-type override sucks balls for a LiveDVD build - surely that is obvious... I really need a universal override for the default options used, by Udisks2, when on-demand mounting NTFS volumes.

Starting to see why udisks2 is not exactly universally praised roll

I've already had to write a simple udev rule hack to translate ntfs-type partitions to ufsd-type. That works. It's just the total lack of configurability of the Udisks2 framework that reminds me very much of MS Windows - and not in a good way sad

Bob

Offline

#4 2013-12-05 22:51:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Udisks2 change default options for mounting filesystems??

bobwya wrote:

The force is not needed for ntfs-3g driver because it will mount NTFS volumes that are marked as dirty.

No. As posted by berbae, the force option is not needed because it is obsolete and has been replaced by the 'recover' mount option, which is currently the deafult.

Offline

#5 2013-12-05 23:06:32

bobwya
Member
Registered: 2012-01-09
Posts: 36

Re: Udisks2 change default options for mounting filesystems??

WonderWoofy wrote:
bobwya wrote:

The force is not needed for ntfs-3g driver because it will mount NTFS volumes that are marked as dirty.

No. As posted by berbae, the force option is not needed because it is obsolete and has been replaced by the 'recover' mount option, which is currently the default.

Ok, but that's rather irrelevant to my issue with Udisks2 and a total lack of configuration options... Udisks2 uses the FS drivers hard-coded default options for the NTFS driver being used - right? We have no way to override the default FS options used by Udisks2 without resorting to a systemd mount unit or an /etc/fstab entry? In that case it's starting to look horribly locked down to me...

Bob

Offline

#6 2013-12-05 23:29:59

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Udisks2 change default options for mounting filesystems??

I wasn't trying to say that this fact had any relevance to your issue.  But you repeated the same false statement twice, so I wanted to point that out for clarity.


Edit: I know nothing about udisks2 and don't use it at all.  I mount my partitions the old fashioned way... from the command line.  But that probably has quite a bit to do with the fact that I don't use a file manager either.

Last edited by WonderWoofy (2013-12-05 23:30:58)

Offline

#7 2013-12-06 00:08:57

bobwya
Member
Registered: 2012-01-09
Posts: 36

Re: Udisks2 change default options for mounting filesystems??

WonderWoofy wrote:

I wasn't trying to say that this fact had any relevance to your issue.  But you repeated the same false statement twice, so I wanted to point that out for clarity.


Edit: I know nothing about udisks2 and don't use it at all.  I mount my partitions the old fashioned way... from the command line.  But that probably has quite a bit to do with the fact that I don't use a file manager either.

Yeh, sorry, I wasn't really referring to the ntfs-3g options correctly (due to extreme work-induced tiredness - now fixed by Becks smile ) - simply meant to say by default it will mount dirty NTFS volumes.

I know how to mount stuff from the command line and run both Gentoo & Arch installs on all my PC's. But it's 2013 - I shouldn't need to do manual mounting so often these days - unless I want to tongue

I give up... I'll just use...

ntfsfix -d /dev/sd??

for dirty volumes... Seems a good enough work around...

I was just thinking... What a horrible combination NTFS and Udisks2... Like a marriage made in hell... yikes
I only really need good NTFS support for messing about with the works machine (which runs Windows 7) - when the "IT" guy f's things up again roll

Bob

Offline

#8 2013-12-06 01:10:48

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Udisks2 change default options for mounting filesystems??

bobwya wrote:

I was just thinking... What a horrible combination NTFS and Udisks2... Like a marriage made in hell...

Well, if udisks2 is a unconfigurable as it would seem, I think that this can be said about any filesystem that you might wish to mount with something besides the defaults.  I am a btrfs user, and there are a couple mount options which would make amazing defaults, but are not yet deemed rock-solid enough to set automatically yet.  So I think I too would be up shit creek if I had to use udisks2 on those.

Offline

Board footer

Powered by FluxBB