Target NTFS file system mounts in read only mode #13

Closed
opened 2020-07-16 15:57:35 +03:00 by ghost · 5 comments
ghost commented 2020-07-16 15:57:35 +03:00 (Migrated from github.com)

When the target NTFS file system is being mounted at https://github.com/ValdikSS/windows2usb/blob/master/windows2usb#L199, mount (as well as mount -t ntfs -o rw) would mount file system in read only mode. Yet if i do it via ntfs-3g helper directly (mount.ntfs or mount.ntfs-3g) everything works as expected.

I don't have a good fix for it, but would be willing to dig this deeper should somebody has any ideas on how to fix it.

When the target NTFS file system is being mounted at [https://github.com/ValdikSS/windows2usb/blob/master/windows2usb#L199](), `mount` (as well as `mount -t ntfs -o rw`) would mount file system in read only mode. Yet if i do it via ntfs-3g helper directly (`mount.ntfs` or `mount.ntfs-3g`) everything works as expected. I don't have a good fix for it, but would be willing to dig this deeper should somebody has any ideas on how to fix it.
ValdikSS commented 2020-07-16 16:01:11 +03:00 (Migrated from github.com)

I suppose with mount -t ntfs kernel NTFS driver is used, which is simple and does support writing to the FS.
In most distros mouting NTFS is done by ntfs-3g. Could it be you have misconfigured system?

I suppose with `mount -t ntfs` kernel NTFS driver is used, which is simple and does support writing to the FS. In most distros mouting NTFS is done by ntfs-3g. Could it be you have misconfigured system?
ghost commented 2020-07-16 16:08:50 +03:00 (Migrated from github.com)

Yeah, i believe you're right. I do have both kernel module and ntfs-3g on machine where i ran into the issue. The fact that mount -t ntfs -o rw does succeeds with 0 result code, but just silently mounts it in read-only seems wrong to me.

Guess there is little value in accounting for such odd case here. Please close this as needed. And much thanks for the thing in the first place (and modded BIOS too) :)

Yeah, i believe you're right. I do have both kernel module and ntfs-3g on machine where i ran into the issue. The fact that `mount -t ntfs -o rw` does succeeds with 0 result code, but just silently mounts it in read-only seems wrong to me. Guess there is little value in accounting for such odd case here. Please close this as needed. And much thanks for the thing in the first place (and modded BIOS too) :)
ValdikSS commented 2020-07-16 16:11:15 +03:00 (Migrated from github.com)

What distro do you use?

What distro do you use?
ghost commented 2020-07-16 16:14:06 +03:00 (Migrated from github.com)

That happened on NixOS 20.03. Before that i ran it successfully on a Gentoo with kernel without NTFS module.

That happened on NixOS 20.03. Before that i ran it successfully on a Gentoo with kernel without NTFS module.
ValdikSS commented 2020-08-15 11:00:55 +03:00 (Migrated from github.com)

Should be fixed in new version.

Should be fixed in new version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Max/ValdikSS_windows2usb#13