[dolphin] [Bug 445468] Cannot mount NTFS with the new ntfs3 module from Linux 5.15
Alexander M.
bugzilla_noreply at kde.org
Mon Nov 22 09:33:38 GMT 2021
https://bugs.kde.org/show_bug.cgi?id=445468
Alexander M. <apmichalopoulos at protonmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |apmichalopoulos at protonmail.
| |com
--- Comment #2 from Alexander M. <apmichalopoulos at protonmail.com> ---
(Most of this info, the fix included, is courtesy of the nice people discussing
it at https://github.com/storaged-project/udisks/pull/917)
This isn't a KDE bug but a udisks2/libmount one and ultimately a ntfs3 one. It
does indeed happen because the new ntfs3 driver does not support the
'windows_names' flag, for the time being at least (ntfs3 upstream have
commented that it's a good and necessary flag for dual-booting with Windows, so
in the near future they'll probably be looking into implementing it), but the
flag is passed by default when trying to mount the filesystem via udisks2 (as
Dolphin does in the background), so it will fail to mount.
If you have udisks2 2.9.4+, as a temporary fix you can create the file
/etc/udisks2/mount_options.conf with the following contents:
[defaults]
ntfs_defaults=uid=$UID,gid=$GID
...and you'll be set.
For udisks 2.9.3 and earlier, because it lacks the necessary logic to recognize
and use the ntfs3 driver in the first place, you apparently can "patch" the
support in by also creating the file /etc/udev/rules.d/ntfs3.rules with the
following contents:
SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="ntfs", ENV{ID_FS_TYPE}="ntfs3"
In this case, /etc/udisks2/mount_options.conf should also include some extra
stuff added with udisks2 2.9.4 for ntfs3 to work properly:
[defaults]
ntfs_defaults=uid=$UID,gid=$GID
ntfs_allow=uid=$UID,gid=$GID,umask,dmask,fmask,locale,norecover,ignore_case,windows_names,compression,nocompression,big_writes,nls,nohidden,sys_immutable,sparse,showmeta,prealloc
Do keep in mind that these fixes will force-disable the 'windows_names' flag,
which has the potential to cause you some pain if you dual-boot with Windows
and mount the NTFS partitions.
Anyway, hopefully this mess will be resolved upstream soon, by either ntfs3
implementing 'windows_names' or at least udisks2 (or even better libmount)
implementing these overrides by default.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the kfm-devel
mailing list