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

FS#3168 - Mount Points page in LuCI does not correctly use options to mount NTFS USB 3.0 External Drive #7918

Open
openwrt-bot opened this issue Jun 10, 2020 · 1 comment
Labels

Comments

@openwrt-bot
Copy link

PalebloodSky:

-WRT32X

-OpenWrt 19.07.x and Master, ntfs-3g, kmod-fs-ntfs

-Issue: using a USB 3.0 external drive, formatted for NTFS, it mounts as "ntfs" "ro" every time regardless of LuCI configuration in System > Mount Points. With this bug the drive cannot be written to as it needs the "rw" option for NTFS.

As per the manpages I set the file system from auto to "ntfs-3g" and "rw" (read write) under options, then when remounting it immediately goes back to "auto" and "ro" (read only). If you SSH into the router and run mount, it confirms that it incorrectly mounts as ro:
mount /dev/sda1 on /mnt/sda1 type ntfs (ro,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=iso8859-1,errors=continue,mft_zone_multiplier=1)

Work-around: SSH in and umount it with "umount -l /dev/sda1", then remount it with "ntfs-3g /dev/sda1 /mnt/sda1 -o rw".

Once mounted this way the drive reads at 60-80MB/s and writes at 30-40MB/s. Almost half the speed of the stock Linksys firmware which uses kernel 4.4.14, but it does work. The stock firmware also handles all this with one click, so there must be a simple config that works. The bug may be in LuCI but I suspect it's deeper than that. After rebooting, all of these settings are lost despite of the LuCI page saving, and it must again be umounted/remounted.

@M95D
Copy link
Contributor

M95D commented Feb 28, 2022

You probably are not aware that there are two ntfs drivers for linux:
NTFS-3g is a driver from outside the kernel tree (probably not included in kernel due to license, I'm not sure)
kmod-fs-ntfs is the official kernel module that is not capable of writing. It can only mount ro.

When you use mount command, the system uses the read-only kernel driver.
When you use ntfs-3g command, it mounts using ntfs-3g read-write driver.

I never used ntfs on linux so I can't tell you exactly how to do it, but this is the general ideea:
You should remove the kmod-fs-ntfs driver and update your mount command to use ntfs-3g driver (it's probably a different -t option). The driver module must be loaded first for the mount to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants