You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to mount a Windows formatted NTFS U disk using NTFS-3G in android environment. However, the mounting fails,and the error information is "ntfs-3g-mount: mount failed: No such file or directory".
When i tried to modify the source code as follows(In the fusermount.c file, I replace '$' in source with ','. And In the ntfs-3g_common.c file, I replace ',' in popts->device with '$'.), it can mount the Windows-formatted NTFS U disk successfully. I wonder if this problem is a bug or some mount parameters need to be set?
I tried to mount a Windows formatted NTFS U disk using NTFS-3G in android environment. However, the mounting fails,and the error information is "ntfs-3g-mount: mount failed: No such file or directory".
When i tried to modify the source code as follows(In the fusermount.c file, I replace '$' in source with ','. And In the ntfs-3g_common.c file, I replace ',' in popts->device with '$'.), it can mount the Windows-formatted NTFS U disk successfully. I wonder if this problem is a bug or some mount parameters need to be set?
diff --git a/third_party/fs/ntfs-3g-2022.10.3/libfuse-lite/fusermount.c b/third_party/fs/ntfs-3g-2022.10.3/libfuse-lite/fusermount.c
index 680fee1c..2502ea0d 100644
--- a/third_party/fs/ntfs-3g-2022.10.3/libfuse-lite/fusermount.c
+++ b/third_party/fs/ntfs-3g-2022.10.3/libfuse-lite/fusermount.c
@@ -418,9 +418,13 @@ static int do_mount(const char *mnt, char **typep, mode_t rootmode,
strcpy(source, fsname);
} else
strcpy(source, dev);
if (restore_privs())
diff --git a/third_party/fs/ntfs-3g-2022.10.3/src/ntfs-3g_common.c b/third_party/fs/ntfs-3g-2022.10.3/src/ntfs-3g_common.c
index 29021dfc..083aea72 100644
--- a/third_party/fs/ntfs-3g-2022.10.3/src/ntfs-3g_common.c
+++ b/third_party/fs/ntfs-3g-2022.10.3/src/ntfs-3g_common.c
@@ -239,7 +239,7 @@ static int missing_option_value(char *val, const char *s)
char *parse_mount_options(ntfs_fuse_context_t *ctx,
const struct ntfs_options *popts, BOOL low_fuse)
{
@@ -247,6 +247,7 @@ char *parse_mount_options(ntfs_fuse_context_t *ctx,
int acl = 0;
int want_permissions = 0;
int intarg;
@@ -564,8 +565,16 @@ char *parse_mount_options(ntfs_fuse_context_t *ctx,
@@ -581,6 +590,8 @@ exit:
free(options);
return ret;
err_exit:
Anyone with similar issue?
Best regards
The text was updated successfully, but these errors were encountered: