Portable hard drive will not mount

I am using 20.1 rc1 on a dlink dir 882 router.
I attach a portable ntfs harddrive. OpenWrt picks up the hard drive but does not mount it.
I have installed the following packages in an attempt to share the drive over the network

I am new to OpenWrt. could I please get some help

block-mount is also installed

For ntfs-3g you can use the commands here (/etc/rc.local can be also be done in luci>system>startup>local startup).

Thanks that worked...

Any idea why auto mounting is not working?

Mon Apr 26 17:19:55 2021 daemon.err block: No "mount.ntfs" utility available
Mon Apr 26 17:19:55 2021 daemon.err block: mounting /dev/sda1 (ntfs) as /mnt/usb-ntfs failed (25) - Not a tty

I get the above in my system log, ideally I would like to solve the problem

e2fsprogs exfat-utils fstools kmod-fs-exfat kmod-fs-ext4 kmod-fs-ufsd kmod-fs-vfat usb kmod-usb-core kmod-usb-ohci kmod-usb-core kmod-usb-storage kmod-usb-wdm kmod-storage-extras kmod-usb2 kmod-usb3 ntfs-3g block-mount luci-app-samba

in Mounts Points automount file system tagged

in Network Shares name -> USB Path -> /mnt Allow Gusts tagged

All is automatic

Post the output:

ubus call system board; type mount.ntfs; opkg files ntfs-3g
        "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