How to automatically mount USB devices rw instead of ro? (NTFS)

Hello everyone,
I was just about to setup my last task of the day (file syncing) when I ran into the problem that OpenWRT mounts my USB drives as read-only.
I tried

mount -o remount,rw /dev/sdd1 /mnt/sdd1

but nothing happened.

/dev/sdd1 on /mnt/sdd1 type ntfs (ro,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=iso8859-1,errors=continue,mft_zone_multiplier=1)

Why does "Mount Points" automatically mount USB as ro instead of rw? And can this be changed somewhere without configuring each drive manually? I sometimes hotplug usb flash drives and want them all to always be rw.

fstab shows nothing "surprising"

root@NSA325v2_2:/etc/config# nano fstab
  GNU nano 5.7                         fstab
        option target '/mnt/sda1'
        option uuid '9e69a51c-294a-4d67-b507-9bd339bff3ab'
        option enabled '1'

config mount
        option target '/mnt/sdb1'
        option uuid 'd1521cfc-e571-42f8-8637-f953372224b7'
        option enabled '1'

config mount
        option target '/mnt/sdc1'
        option uuid '27476AAA060020FF'
        option enabled '1'

config mount
        option target '/mnt/sdd1'
        option uuid '311CDAAA0C32E37F'
        option enabled '1'

Changing to e.g.

config mount
        option target '/mnt/sdd1'
        option uuid '311CDAAA0C32E37F'
        option enabled '1'
        option rw

did nothing.

Maybe it helps for troubleshooting to know that I cannot access sdc1 or sdd1 at all via samba or via SFTP despite being able to reach the identically shared sda1 and sdb1.

Thank you :slight_smile:

try something like this Portable hard drive will not mount - #22 by vgaetera

Historically, writing on NTFS volumes from Linux machines was not considered a good idea. I do not know about the current situation, but perhaps this is a safety measures.

Use ntfs-3g (not kmod-fs-ntfs).

4 Likes

Make sure that have the proper NTFS support.
Which module you are using?
kmod-fs-ntfs or ntfs-3g?
kmod-fs-ntfs is read only, so if you want to read/write you'll need to mount it with ntfs-3g

2 Likes

Thank you all for your replies!

I am sorry, I guess I am too new to OpenWRT because I thought kmod-fs-ntfs was the kernel mod and was always needed and the ntfs-3g was the driver on top that was needed to get write access. I did not know that it was one OR the other.

After removing kmod-fs-ntfs it worked!

Thank you :slight_smile:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.