Hey David,
first I wanted to thank you for providing this great optimized Image you provide for WRT 1900...
Yesterday i tried to mount an NTFS-Drive over USB 3.0 and I failed to get automount working... now i would like to know, if it is my fault or if it is an openwrt bug. I use the latest image: 9b84c3ab05d95bb059b55953909485163c88d34a3f337019ea282e6cec5516b4 2018-03-25 02:27 without any further packages or modifications.
At first i tried to manually mount the device, which worked like expected:
root@OpenWrt:/etc/config# mount /dev/sda1 /mnt/sda1/
root@OpenWrt:/etc/config# mount
#[...]
/dev/sda1 on /mnt/sda1 type fuseblk (rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
Then i configured a mount point via Luci and enabled it for automount - this DID NOT WORK:
root@OpenWrt:/etc/config# cat /etc/config/fstab
config 'global'
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config 'mount'
option target '/mnt/sda1'
option uuid '8AA629B9A629A6A3'
option enabled '1'
Digging deeper i checked the /etc/fstab (which is autogenerated, but empty, even after reboot?!):
cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
Executing "/sbin/block mount" does not mount the device either:
block mount
block: /dev/ubiblock0_0 is already mounted on /rom
block: /dev/ubi0_1 is already mounted on /overlay
block: /dev/ubi1_0 is already mounted on /mnt/ubi1_0
While "/sbin/block detect" and "/sbin/block info" show the disk like expected (except that the uuid of block info is different from the one that block detect spits out):
root@OpenWrt:/etc# block info
#[...]
/dev/sda1: UUID="0000001800000048" MOUNT="/mnt/sda1" TYPE="ntfs"
Manually adding an entry with uuid to /etc/fstab and then mounting also fails (i tried both uuids and the dashed partuuid of blkid):
root@OpenWrt:/etc# cat /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=8AA629B9A629A6A3 /mnt/sda1 ntfs auto,force,defaults 0 0
root@OpenWrt:/etc# mount /mnt/sda1/
ntfs-3g: Failed to access volume 'UUID=8AA629B9A629A6A3': No such file or directory
ntfs-3g 2017.3.23 integrated FUSE 27 - Third Generation NTFS Driver
Configuration type 1, XATTRS are on, POSIX ACLS are off
Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2017 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson
Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
Options: ro (read-only mount), windows_names, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).
Example: ntfs-3g /dev/sda1 /mnt/windows
News, support and information: ...
mount: mounting UUID=8AA629B9A629A6A3 on /mnt/sda1 failed: No such file or directory
While adding an entry with /dev/... reference works like a charm:
root@OpenWrt:/etc# cat fstab
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/sda1 /mnt/sda1 ntfs auto,defaults 0 0
root@OpenWrt:/etc# mount /mnt/sda1/
root@OpenWrt:/etc#
My Questions:
Does someone know, what I am missing or doing wrong or is it an openwrt bug (e.g. in /sbin/block)?
Is there a possibility to work around this issue by detecting a plugged in usb disk and executing a shell-Script then?
(Last edited by sandreas on 29 Mar 2018, 22:31)