vrj
April 26, 2021, 2:36pm
1
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
kmod-usb-storage
kmod-usb-storage-uas
ntfs-3g
ksmbd-server
luci-app-ksmbd
I am new to OpenWrt. could I please get some help
vrj
April 26, 2021, 2:47pm
2
block-mount is also installed
mike
April 26, 2021, 4:59pm
3
For ntfs-3g you can use the commands here (/etc/rc.local can be also be done in luci>system>startup>local startup).
vrj
April 26, 2021, 5:37pm
4
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
vrj
April 26, 2021, 6:03pm
7
{
"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:
/sbin/mount.ntfs-3g
/usr/bin/ntfs-3g.probe
/usr/bin/ntfs-3g
/usr/lib/libntfs-3g.so.88
/usr/lib/libntfs-3g.so.88.0.0
root@OpenWrt:~#
1 Like
ln -f -s $(readlink -f $(type -p ntfs-3g)) /sbin/mount.ntfs
1 Like
vrj
April 26, 2021, 6:16pm
9
ln -f -s $(readlink -f $(type -p ntfs-3g)) /sbin/mount.ntfs
nothing returned
vrj
April 26, 2021, 6:41pm
11
Thanks.....
Drive mounts now but I cannot access it on my pc anymore
Here is a copy of my log
https://justpaste.it/6g792
1 Like
vrj
April 26, 2021, 7:05pm
13
fstab.@global[0]=global
fstab.@global[0].anon_swap='0'
fstab.@global[0].anon_mount='0'
fstab.@global[0].auto_swap='1'
fstab.@global[0].auto_mount='1'
fstab.@global[0].delay_root='5'
fstab.@global[0].check_fs='0'
fstab.@mount[0]=mount
fstab.@mount[0].uuid='01D67094A3823AE0'
fstab.@mount[0].enabled='1'
fstab.@mount[0].target='/mnt/usb-ntfs'
1 Like
vrj
April 26, 2021, 7:30pm
15
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
vrj
April 28, 2021, 5:54pm
17
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?
vrj
April 28, 2021, 6:27pm
19
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.
vrj
April 28, 2021, 7:09pm
21
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