Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux5.15/ntfs-3g: use mount.ntfs as alternative #34148

Closed
wants to merge 1 commit into from

Conversation

Animeshz
Copy link
Contributor

Testing the changes

  • I tested the changes in this PR: YES

@Animeshz
Copy link
Contributor Author

Default mount mount /dev/sdxx /mnt/point without explicit -t ntfs3 or -t ntfs-3g to be controlled by xbps-alternatives.

@ericonr
Copy link
Member

ericonr commented Nov 19, 2021

This is definitely the wrong place for this; otherwise linux5.16 will have to carry the same alternative, then 5.17, then ...

It does sound like something we should fix, though. I assume that if you uninstall ntfs-3g, it uses the kernel's driver automatically?

@Animeshz
Copy link
Contributor Author

@ericonr It does not, it mounts with read-only driver ntfs, we've to specify -t ntfs3 properly for the new 5.15's ntfs3 driver. For ntfs-3g it automatically selects ntfs-3g instead of ntfs.

@Animeshz
Copy link
Contributor Author

Animeshz commented Nov 19, 2021

Problem is ntfs-3g overwrite the symlink to /usr/bin/mount.ntfs, so even if linux5.15+ able to overwrite it, later after removal of ntfs-3g it'll be a broken symlink, which i think is properly managed by xbps-alternatives (previous present alternative default, and manually selectable, and also selects linux5.15+ one if removed ntfs-3g).

@ericonr
Copy link
Member

ericonr commented Nov 19, 2021

it mounts with read-only driver ntfs, we've to specify -t ntfs3 properly for the new 5.15's ntfs3

Wow, that really sucks :/

And yes, alternatives sounds reasonable-ish to solve this, except that if one opts into the new driver, booting into an older kernel and trying to mount something via ntfs won't work properly.

I will open an issue with upstream util-linux.

@ericonr
Copy link
Member

ericonr commented Nov 19, 2021

util-linux/util-linux#1508

@github-actions
Copy link

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label Jun 15, 2022
@github-actions github-actions bot closed this Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants