Portable hard drive will not mount

        "kernel": "5.4.111",
        "hostname": "OpenWrt",
        "system": "MediaTek MT7621 ver:1 eco:3",
        "model": "D-Link DIR-882 A1",
        "board_name": "dlink,dir-882-a1",
        "release": {
                "distribution": "OpenWrt",
                "version": "21.02.0-rc1",
                "revision": "r16046-59980f7aaf",
                "target": "ramips/mt7621",
                "description": "OpenWrt 21.02.0-rc1 r16046-59980f7aaf"
mount.ntfs: not found
Package ntfs-3g (2017.3.23-4-fuseint) is installed on root and has the following                                                                                                              files:
1 Like
ln -f -s $(readlink -f $(type -p ntfs-3g)) /sbin/mount.ntfs
1 Like

ln -f -s $(readlink -f $(type -p ntfs-3g)) /sbin/mount.ntfs

nothing returned

Drive mounts now but I cannot access it on my pc anymore
Here is a copy of my log

1 Like
uci show fstab
1 Like

Unable to gain write access in samba share drive - #24 by vgaetera

Screenshot error

Is the problems I am having due to a bug in the build?
If so can you help figure out the root cause so that it can be fixed in future builds.
Having access to the drive immediately is not of importance to me.
Thanks so much for your help

The only thing that works for getting a shared drive to work is if I add the following to my local startup file.
sleep 1

ntfs-3g /dev/sda1 /mnt/usb-ntfs -o rw,lazytime,noatime,big_writes

Is there any error while mounting, or is it missing the necessary permissions?

This is from the log when I mount

Wed Apr 28 18:24:40 2021 daemon.notice ntfs-3g[3905]: Version 2017.3.23 integrated FUSE 27
Wed Apr 28 18:24:40 2021 daemon.notice ntfs-3g[3905]: Mounted /dev/sda1 (Read-Write, label "", NTFS 3.1)
Wed Apr 28 18:24:40 2021 daemon.notice ntfs-3g[3905]: Cmdline options:
Wed Apr 28 18:24:40 2021 daemon.notice ntfs-3g[3905]: Mount options: allow_other,nonempty,relatime,fsname=/dev/sda1,blkdev,blksize=4096
Wed Apr 28 18:24:40 2021 daemon.notice ntfs-3g[3905]: Ownership and permissions disabled, configuration type 1

1 Like

Specify in fstab the same options which work for you when mounting manually.

sorry newbie, could you help with the method of specifying fstab options. do I do that through the command line, if so what commands do I use

found something in my log thats curious, is it an error
kern.err kernel: [ 2320.501934] blk_update_request: critical medium error, dev sda, sector 38040 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 0

uci set fstab.@mount[-1].options="rw,lazytime,noatime,big_writes"
uci commit fstab
block umount
block mount

I flashed a development build today and ntfs auto-mount is working on it if you want to give it a try.

I upgraded to the latest development build, does not work for me, same problem
Do I need to flash from recovery or is system upgrade from luci web interface fine.

I did a system upgrade through luci without keeping settings, you probably already have the right packages, but just in case these are what I have installed (edit - if the default options aren't working try changing them to rw,big_writes) -


Thanks. Have the packages installed. Did not work for me however
ln -f -s $(readlink -f $(type -p ntfs-3g)) /sbin/mount.ntfs solved the drive mount problem but same problem opening on pc.

Changing default to rw,big_writes did the trick, now I can browse the drive on my pc

sorry.... I had
ntfs-3g /dev/sda1 /mnt/usb-ntfs -o rw,lazytime,noatime,big_writes
in my start up script

Still does not work for me. I guess I will just wait a week or two and then do a clean install of a development build.