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

Replace Ntfs-3g #111

Open
artivision opened this issue Mar 21, 2024 · 1 comment
Open

Replace Ntfs-3g #111

artivision opened this issue Mar 21, 2024 · 1 comment

Comments

@artivision
Copy link

Please replace Ntfs-3g with the native kernel Ntfs driver on Linux. Fuse cannot mount Ntfs partitions with the 3G driver and usually fails with a timeout. Its in a miserable state.

@theoparis
Copy link

theoparis commented Sep 11, 2024

You still need ntfs-3g for the userspace mkfs.ntfs command. I think this is something that your distribution has to deal with. On arch linux there is this for example: https://aur.archlinux.org/packages/ntfsprogs-ntfs3

With that aside, woeusb-ng does not seem to support the read-write flags needed for the mount commands with ntfs3. The following patch seems to solve it temporarily however I ran into #20

diff --git a/WoeUSB/core.py b/WoeUSB/core.py
index 1392b2f..a394f93 100644
--- a/WoeUSB/core.py
+++ b/WoeUSB/core.py
@@ -89,7 +89,7 @@ def init(from_cli=True, install_mode=None, source_media=None, target_media=None,
         target_media = args.target

         workaround_bios_boot_flag = args.workaround_bios_boot_flag
-
+
         skip_legacy_bootloader = args.workaround_skip_grub

         target_filesystem_type = args.target_filesystem
@@ -435,6 +435,8 @@ def mount_target_filesystem(target_partition, target_fs_mountpoint):
         return 1

     if subprocess.run(["mount",
+                       "-t", "ntfs3",
+                       "-o", "rw",
                        target_partition,
                        target_fs_mountpoint]).returncode != 0:
         utils.print_with_color(_("Error: Unable to mount target media"), "red")

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

No branches or pull requests

2 participants