Skip to content

Conversation

1Naim
Copy link
Member

@1Naim 1Naim commented Jan 3, 2025

ntfs is classified as an unknown filesystem according to Linux and users can't directly mount such partitions directly. Instead, users must explicitly specify the filesystem type, e.g. mount -t ntfs3 /dev/sdxY /mnt to mount the partition successfully.

As a QoL change, adding this udev rule can use the ntfs3 kernel driver by default without explicitly specifying it. Note that this can apparently confuse 3rd party tools and isn't recommended by the Arch wiki. (I'm not entirely sure what this "confusion" is. I guess we would need to have some NTFS users test this.)

Link: https://wiki.archlinux.org/title/NTFS#unknown_filesystem_type_'ntfs'

`ntfs` is classified as an unknown filesystem according to Linux and users can't directly mount such partitions directly.
Instead, users must explicitly specify the filesystem type, e.g. `mount -t ntfs3 /dev/sdxY /mnt` to mount the partition
successfully.

As a QoL change, adding this udev rule can use the `ntfs3` kernel driver by default without explicitly specifying it.
Note that this can apparently confuse 3rd party tools and isn't recommended by the Arch wiki.

Link: https://wiki.archlinux.org/title/NTFS#unknown_filesystem_type_'ntfs'
Signed-off-by: Eric Naim <[email protected]>
@1Naim 1Naim requested a review from ventureoo January 3, 2025 13:15
@ventureoo
Copy link
Member

Wouldn't this break the current NTFS-3G installations? Because mounting without specifying a type when ntfs-3g is installed causes it to be used.

@1Naim
Copy link
Member Author

1Naim commented Jan 3, 2025

Wouldn't this break the current NTFS-3G installations? Because mounting without specifying a type when ntfs-3g is installed causes it to be used.

https://wiki.archlinux.org/title/NTFS-3G#Manual_mounting. Reading this, it seems like ntfs-3g partitions mounted via fstab shouldn't break, and with what the udev rule is doing, the mount should be using /usr/bin/mount.ntfs3 so it won't call ntfs-3g. This is all just speculation and nothing concrete. This is a valid concern so we should hold off on merging this for now. In the meantime, I guess we could add this to the wiki.

@1Naim 1Naim marked this pull request as draft January 3, 2025 14:47
Make sure that installations with ntfs-3g are not affected by this rule.

Co-authored-by: Vasiliy Stelmachenok <[email protected]>
@1Naim 1Naim marked this pull request as ready for review January 3, 2025 15:00
@ventureoo ventureoo merged commit 261c1d9 into master Jan 3, 2025
@1Naim
Copy link
Member Author

1Naim commented Jan 3, 2025

One more thing to note is that it's commong for ntfs partitions to be marked as "dirty" making them unmountable unless fixed with ntfsfix. For this change to make sense, we would need to add https://aur.archlinux.org/packages/ntfsprogs-ntfs3 to our repos.

@1Naim 1Naim deleted the feat/ntfs-udev branch January 5, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants