You are not logged in.

#1 2021-11-12 22:41:43

860lacov
Member
Registered: 2020-05-02
Posts: 497

The way to update from kernel 5.14 to 5.15 with NTFS support

I have one partition NTFS formatted. Mounted automatically by fstab.
One of the changes in the new kernel is going to be native support for NTFS.
Should I take any special steps during upgrade? For example, remove ntfs-3, upgrade system and reboot?

Offline

#2 2021-11-12 22:47:17

loqs
Member
Registered: 2014-03-06
Posts: 18,853

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

Have you read through https://bbs.archlinux.org/viewtopic.php?id=270963 ?

Last edited by loqs (2021-11-12 22:47:25)

Offline

#3 2021-11-13 14:11:20

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

Thank you.
I also checked udisk support
If I understand correctly, this issue is temporary (probably).

So if I would like to use new driver I should change my fstab from:

# /dev/nvme0n1p2 LABEL=WIN10
UUID=FC346C52346C11C6   /Windows        ntfs            rw,nosuid,nodev,user_id=0,group_id=0,allow_other,blksize=4096 0 0

to

# /dev/nvme0n1p2 LABEL=WIN10
UUID=FC346C52346C11C6   /Windows        ntfs3            rw,noatime,nosuid,nodev,user_id=0,group_id=0,allow_other,blksize=4096 0 0

My fstab ntfs part was automatically by genfstab during system installation.

And to work with KDE Plasma I should add

ntfs_defaults=uid=$UID,gid=$GID,noatime,prealloc

to

/etc/udisks2/mount_options.conf in [defaults] section

Is that correct?

Last edited by 860lacov (2021-11-13 14:12:08)

Offline

#4 2021-11-13 17:31:39

loqs
Member
Registered: 2014-03-06
Posts: 18,853

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

user_id=0,group_id=0,blksize=4096

Are all fuse specific options.  I would drop them.

udisks2 no idea,  I would suggest testing it.

Offline

#5 2021-11-14 13:58:35

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

I tried to use ntfs3 but after fstab edition system didn't boot.
With lsmod I checked and there is no ntfs module loaded.
It is possible to load ntfs3 witch modprobe.
So if I would like to change ntfs-3g to ntfs3 then I have to loade this module with mkinitcpio ?

Offline

#6 2021-11-14 14:31:22

loqs
Member
Registered: 2014-03-06
Posts: 18,853

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

The module is called ntfs3 not ntfs.  Have you checked the journal for anything related to the failed mount?  Have you tried manually mounting with the same options you have in the fstab entry?

Offline

#7 2021-11-14 15:18:22

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

I didn't check the journal. After boot failure, I just restored my fstab backup.
I'm aware that the module is ntfs3

For testing purposes, I did:
Boot to working system (settings with ntfs-3g)
Unmounted Windows NTFS drive
modprobe ntfs3
Mounted NTFS drive with mount -t ntfs3

WIth something like this I had access to Windows drive.

Offline

#8 2021-11-14 15:43:10

loqs
Member
Registered: 2014-03-06
Posts: 18,853

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

860lacov wrote:

I'm aware that the module is ntfs3

This is why you are requested to post actual outputs rather than narrative as others do not know what you are aware of.  https://bbs.archlinux.org/viewtopic.php?id=57855

Offline

#9 2021-11-14 23:20:00

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

[jm@spin ~]$ cat Dokumenty/dmesg | grep ntfs -i
[    7.741047] ntfs3: Max link count 4000
[    7.741049] ntfs3: Enabled Linux POSIX ACLs support
[    7.741049] ntfs3: Read-only LZX/Xpress compression included
[    7.741274] ntfs3: Unknown parameter 'allow_other'
[    8.354539] ntfs3: Unknown parameter 'allow_other'
[    8.382619] ntfs3: Unknown parameter 'allow_other'
[    8.398465] ntfs3: Unknown parameter 'allow_other'
[    8.422018] ntfs3: Unknown parameter 'allow_other'
[jm@spin ~]$ cat Dokumenty/journal | grep ntfs -i
lis 14 20:32:12 spin kernel: ntfs3: Max link count 4000
lis 14 20:32:12 spin kernel: ntfs3: Enabled Linux POSIX ACLs support
lis 14 20:32:12 spin kernel: ntfs3: Read-only LZX/Xpress compression included
lis 14 20:32:12 spin kernel: ntfs3: Unknown parameter 'allow_other'
lis 14 20:32:13 spin kernel: ntfs3: Unknown parameter 'allow_other'
lis 14 20:32:13 spin kernel: ntfs3: Unknown parameter 'allow_other'
lis 14 20:32:13 spin kernel: ntfs3: Unknown parameter 'allow_other'
lis 14 20:32:13 spin kernel: ntfs3: Unknown parameter 'allow_other'

Offline

#10 2021-11-14 23:27:20

loqs
Member
Registered: 2014-03-06
Posts: 18,853

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

[    8.398465] ntfs3: Unknown parameter 'allow_other'

Did you try with that option removed?

Offline

#11 2021-11-15 10:51:58

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

loqs wrote:
[    8.398465] ntfs3: Unknown parameter 'allow_other'

Did you try with that option removed?

I checked it today.
System booted but ntfs partition is read only for non root user

[jm@spin ~]$ journalctl -b | grep ntfs
lis 15 11:48:10 spin kernel: ntfs3: Max link count 4000
lis 15 11:48:10 spin kernel: ntfs3: Enabled Linux POSIX ACLs support
lis 15 11:48:10 spin kernel: ntfs3: Read-only LZX/Xpress compression included
[jm@spin ~]$ sudo dmesg | grep ntfs
[    7.045149] ntfs3: Max link count 4000
[    7.045152] ntfs3: Enabled Linux POSIX ACLs support
[    7.045153] ntfs3: Read-only LZX/Xpress compression included

fstab

UUID=FC346C52346C11C6	/Windows  	ntfs3      	rw,nosuid,nodev,noatime	0 0

Last edited by 860lacov (2021-11-15 10:53:00)

Offline

#12 2021-11-15 11:48:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,094

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

You still need to specify gid and uid (... or appropriate umask/dmasks) to make it accessible to other users.

Last edited by V1del (2021-11-15 11:50:13)

Offline

#13 2022-03-30 19:08:17

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

V1del wrote:

You still need to specify gid and uid (... or appropriate umask/dmasks) to make it accessible to other users.


So should it be something like:

UUID=FC346C52346C11C6	/Windows  	ntfs3      	rw,nosuid,nodev,noatime,umask=0644,dmask=755	0 0

Offline

#14 2022-03-30 19:15:19

loqs
Member
Registered: 2014-03-06
Posts: 18,853

Re: The way to update from kernel 5.14 to 5.15 with NTFS support

Are you confusing mask with mode permissions used by chmod?

Offline

Board footer

Powered by FluxBB