Summary: | Cannot mount NTFS with the new ntfs3 module from Linux 5.15 | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | herobrineak |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | amel_ancoli, apmichalopoulos, ashark, bugseforuns, dans64, heri+kde, kfm-devel, nemeskey.david, svn, tagwerk19, tinozzo123 |
Priority: | NOR | ||
Version: | 22.12.2 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
herobrineak
2021-11-14 11:22:33 UTC
Also having this issue, hopefully it gets resolved soon. (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. I can't mount a usb flash drive with ntfs3 kernel driver, Dolphin says: "An error occurred while accessing '28,9 GiB Removable Media', the system responded: The requested operation has failed: Error mounting /dev/sdd1 at /media/111D369D6BDE9734: Filesystem type ntfs3,ntfs not configured in kernel." Operating System: Arch Linux KDE Plasma Version: 5.27.0 KDE Frameworks Version: 5.103.0 Qt Version: 5.15.8 Kernel Version: 6.1.11-zen1-1-zen (64-bit) Graphics Platform: Wayland I, too, have this issue; can't mount ntfs partition in dolphin. It does mount just fine via terminal, though. Operating System: KDE neon Testing Edition KDE Plasma Version: 5.27.3 KDE Frameworks Version: 5.105.0 Qt Version: 5.15.8 Kernel Version: 5.19.0-35-generic (64-bit) Graphics Platform: X11 This issue is fixed on my end. Recently mounted two ntfs3 drives from Dolphin with no problem. Operating System: NixOS 23.11 KDE Plasma Version: 5.27.6 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.9 Kernel Version: 6.4.4-cachyos (64-bit) Nobody is replying "not fixed for me", so I think this can be closed. (Especially since this was an issue on udisks end) Not fixed for me. Just hit the same thing with Kubuntu 24.04 and the udisks workaround does not help, even after restarting the udisks2 systemd service. Turns out the underlying reason was that the partition was marked dirty (seen in dmesg), so running `ntfsfix -d` on it made it all dandy again. Not working for me. I am on Arch, udisks2 version is 2.10.1-5. I created the file /etc/udisks2/mount_options.conf with this content: ``` [defaults] ntfs_defaults=uid=$UID,gid=$GID ``` then rebooted. Did not help. Dolphin still fails to mount ntfs usb stick. I have two laptops, one with KDE neon 6.1 (22.04) and another one with KDE neon 6.2 (24.04). On the former, Dolphin could mount a "dirty" NTFS volume; on the latter, it couldn't until I ran `ntfsfix -d` (thanks Jaka!). udisks2 versions are 2.9.4-1ubuntu2 and 2.10.1-6build1, respectively. |