OpenWrt Forum Archive

Topic: Simple NOT! need to set up simple USB drive share

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have a 5TB external drive I just want to plug in OpenWRT and be able to access via Windows Network share.   Sounds like it might be a popular option but if so I can't find an up to date for Chaos Calmer cook-book to configure it.  At least I can't make it work.

Here are my info sources I am using as a guide:
https://wiki.openwrt.org/doc/uci/samba
https://wiki.openwrt.org/_detail/media/ … binterface
http://www.geektalks.org/setup-usb-driv … m-scratch/
https://wiki.openwrt.org/doc/howto/extroot

Now #1 I am not too swift on Linux.   I know not even the concept of "mount".   I am able to configure by following cook-book style configuration but I can't make this work.

I installed all the extra packages that each of these guides called for to use Samba just to be sure I had everything.   But still I can't make it work.

Software Installed:

base-files - 157-r46767
block-mount - 2015-05-24-09027fc86babc3986027a0e677aca1b6999a9e14
busybox - 1.23.2-1
ddns-scripts - 2.4.3-1
dnsmasq - 2.73-1
dropbear - 2015.67-1
firewall - 2015-07-27
fstools - 2015-05-24-09027fc86babc3986027a0e677aca1b6999a9e14
hd-idle - 1.04-1
hostapd-common - 2015-03-25-1
ip6tables - 1.4.21-1
iptables - 1.4.21-1
iw - 3.17-1
jshn - 2015-06-14-d1c66ef1131d14f0ed197b368d03f71b964e45f8
jsonfilter - 2014-06-19-cdc760c58077f44fc40adbbe41e1556a67c1b9a9
kernel - 3.18.20-1-7bed08fa9c06eb8089e82c200340ec66
kmod-ath - 3.18.20+2015-03-09-3
kmod-ath9k - 3.18.20+2015-03-09-3
kmod-ath9k-common - 3.18.20+2015-03-09-3
kmod-cfg80211 - 3.18.20+2015-03-09-3
kmod-crypto-aes - 3.18.20-1
kmod-crypto-arc4 - 3.18.20-1
kmod-crypto-core - 3.18.20-1
kmod-fs-exfat - 3.18.20+git-20150301-1
kmod-fs-ntfs - 3.18.20-1
kmod-fs-vfat - 3.18.20-1
kmod-gpio-button-hotplug - 3.18.20-1
kmod-ip6tables - 3.18.20-1
kmod-ipt-conntrack - 3.18.20-1
kmod-ipt-core - 3.18.20-1
kmod-ipt-nat - 3.18.20-1
kmod-ipv6 - 3.18.20-1
kmod-ledtrig-usbdev - 3.18.20-1
kmod-lib-crc-ccitt - 3.18.20-1
kmod-mac80211 - 3.18.20+2015-03-09-3
kmod-nf-conntrack - 3.18.20-1
kmod-nf-conntrack6 - 3.18.20-1
kmod-nf-ipt - 3.18.20-1
kmod-nf-ipt6 - 3.18.20-1
kmod-nf-nat - 3.18.20-1
kmod-nf-nathelper - 3.18.20-1
kmod-nls-base - 3.18.20-1
kmod-nls-cp437 - 3.18.20-1
kmod-nls-iso8859-1 - 3.18.20-1
kmod-ppp - 3.18.20-1
kmod-pppoe - 3.18.20-1
kmod-pppox - 3.18.20-1
kmod-scsi-core - 3.18.20-1
kmod-slhc - 3.18.20-1
kmod-tun - 3.18.20-1
kmod-usb-core - 3.18.20-1
kmod-usb-ohci - 3.18.20-1
kmod-usb-storage - 3.18.20-1
kmod-usb-storage-extras - 3.18.20-1
kmod-usb-uhci - 3.18.20-1
kmod-usb2 - 3.18.20-1
libblobmsg-json - 2015-06-14-d1c66ef1131d14f0ed197b368d03f71b964e45f8
libc - 0.9.33.2-1
libgcc - 4.8-linaro-1
libip4tc - 1.4.21-1
libip6tc - 1.4.21-1
libiwinfo - 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371
libiwinfo-lua - 2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371
libjson-c - 0.12-1
libjson-script - 2015-06-14-d1c66ef1131d14f0ed197b368d03f71b964e45f8
liblua - 5.1.5-1
liblzo - 2.08-1
libnl-tiny - 0.1-4
libopenssl - 1.0.2g-1
libubox - 2015-06-14-d1c66ef1131d14f0ed197b368d03f71b964e45f8
libubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
libubus-lua - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
libuci - 2015-04-09.1-1
libuci-lua - 2015-04-09.1-1
libxtables - 1.4.21-1
lua - 5.1.5-1
luci - git-15.248.30277-3836b45-1
luci-app-ddns - 2.2.4-1
luci-app-firewall - git-15.248.30277-3836b45-1
luci-app-samba - git-15.248.30277-3836b45-1
luci-base - git-15.248.30277-3836b45-1
luci-i18n-samba-en - git-15.248.30277-3836b45-1
luci-lib-ip - git-15.248.30277-3836b45-1
luci-lib-nixio - git-15.248.30277-3836b45-1
luci-mod-admin-full - git-15.248.30277-3836b45-1
luci-proto-ipv6 - git-15.248.30277-3836b45-1
luci-proto-ppp - git-15.248.30277-3836b45-1
luci-theme-bootstrap - git-15.248.30277-3836b45-1
mtd - 21
netifd - 2015-06-08-8795f9ef89626cd658f615c78c6a17e990c0dcaa
odhcp6c - 2015-07-13-024525798c5f6aba3af9b2ef7b3af2f3c14f1db8
odhcpd - 2015-05-21-2ebf6c8216287983779c8ec6597d30893b914a7c
openssl-util - 1.0.2g-1
openvpn-easy-rsa - 2013-01-30-2
openvpn-openssl - 2.3.6-5
opkg - 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-7
ppp - 2.4.7-6
ppp-mod-pppoe - 2.4.7-6
procd - 2015-08-16-0da5bf2ff222d1a499172a6e09507388676b5a08
rpcd - 2015-05-17-3d655417ab44d93aad56a6d4a668daf24b127b84
samba36-server - 3.6.25-5
swconfig - 10
uboot-envtools - 2014.10-2
ubox - 2015-07-14-907d046c8929fb74e5a3502a9498198695e62ad8
ubus - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
ubusd - 2015-05-25-f361bfa5fcb2daadf3b160583ce665024f8d108e
uci - 2015-04-09.1-1
uhttpd - 2015-08-17-f91788b809d9726126e9cf4384fedbbb0c5b8a73
uhttpd-mod-ubus - 2015-08-17-f91788b809d9726126e9cf4384fedbbb0c5b8a73
usign - 2015-05-08-cf8dcdb8a4e874c77f3e9a8e9b643e8c17b19131
wpad-mini - 2015-03-25-1
zlib - 1.2.8-1

I created a new user per:

root:!:0:0:root:/root:/bin/ash
nobody:*:65534:65534:nobody:/var:/bin/false
daemon:*:65534:65534:daemon:/var:/bin/false
newuser:*:1000:65534:newuser:/var:/bin/false

On Windows, I can go to network, see my OpenWrt router in the available network resources along with other PC file shares on my network.   I click the OpenWRT link and I can see a directory under the name of the new userID I created, plus I can see a share "F-drive" share that I created which has a share directory of "/"

Under each of these appears to be a Linux like directory tree of folders and files but the USB drive plugged in is no where to be found in this list (under mnt as I understand it should be????) .    Searching further, I found this https://wiki.openwrt.org/doc/recipes/us … binterface and following that guide, I do not see my USB drive listed under "Mount Points".   It's just a blank list.   What might I be doing wrong?    The drive is a 5TB USB 3 and 2.0 compatible drive.    I can see the files on it when I plug it in the laptop.   (Please note the RANK Linux amateur status)

Hi¡¡
you have created a directory in /mnt?
if you have not done Make it (console)
# mkdir /mnt/usb5t for example
now give these permissions
# chmod 777 /mnt/usb5t
Now in blockmount (Luci) mount the disk on that directory
cheers

Thank you... OK, I did that, this is what I get from "System", "Mount Points":

Mount Points
Mounted file systems
Filesystem    Mount Point    Available    Used
            
rootfs
    
/
    
25.08 MB / 28.31 MB
    
11% (3.23 MB)
/dev/root
    
/rom
    
0.00 B / 2.25 MB
    
100% (2.25 MB)
tmpfs
    
/tmp
    
60.57 MB / 61.62 MB
    
2% (1.05 MB)
/dev/mtdblock8
    
/overlay
    
25.08 MB / 28.31 MB
    
11% (3.23 MB)
overlayfs:/overlay
    
/
    
25.08 MB / 28.31 MB
    
11% (3.23 MB)
tmpfs
    
/dev
    
512.00 KB / 512.00 KB
    
0% (0.00 B)
Mount Points
Mount Points define at which point a memory device will be attached to the filesystem
Enabled    Device    Mount Point    Filesystem    Options    Root    Check     
                            
    
? (not present)
    
?
    
?
    
defaults
    
no
    
no
    
SWAP
If your physical memory is insufficient unused data can be temporarily swapped to a swap-device resulting in a higher amount of usable RAM. Be aware that swapping data is a very slow process as the swap-device cannot be accessed with the high datarates of the RAM.
Enabled    Device     
        

This section contains no values yet

Powered by LuCI (git-15.248.30277-3836b45) / OpenWrt Chaos Calmer 15.05

Below the line are some of my install notes, which are based on a number of wikis, some of which you do not reference.  The numbers in parens link the ipkg to the wiki.  the file versions will probably be dated as this was from CC 15.05 RC2.  I have not bumped your files up against the list below.

I never got NTFS to work and read much indicating that those that do find it slow.  USB is slow compared to running off a PC.  I use Vfat for devices I need to use on Windows, and EXT for those that I leave connected.

Wiki Articles
Basic USB Support (1)
http://wiki.openwrt.org/doc/howto/usb.essentials
USB Storage (2)
http://wiki.openwrt.org/doc/howto/usb.storage
Samba (3)
http://wiki.openwrt.org/doc/howto/cifs.server
Share USB Hard-drive with Samba (4)
http://wiki.openwrt.org/doc/recipes/usb … binterface
NTFS RW (5)
http://wiki.openwrt.org/doc/howto/writable_ntfs
Samba (smb) (6)
http://wiki.openwrt.org/doc/uci/samba
Linux Permissons on files and folders (7)
http://www.grymoire.com/Unix/Permissions.html
Block Mount (8)
http://wiki.openwrt.org/doc/techref/block_mount
Partitioning, Formatting and Mounting Storage Devices
http://wiki.openwrt.org/doc/howto/storage (9)
Fstab Configuration (10)
http://wiki.openwrt.org/doc/uci/fstab?s[]=enabled&s[]=fsck

The following are packages that will need to be installed

USB Packages
------------
(1)kmod-usb-core (3.18.11-1)
(1)kmod-usb-uhci (3.18.11-1)
(1)kmod-usb-ohci (UHCI or OHCI depending on system)
(1)kmod-usb2 (3.18.11-1)

(2)kmod-usb-storage (3.18.11-1)
(2)kmod-scsi-core (3.18.11-1)    => maybe not
(2)block-mount (2015-04-14-e6004000ff15d7bd32cf5663e8690fc94d7ec747)
File Systems
(2)kmod-fs-ext4 (3.18.11-1)        Ext file systems
(2)kmod-fs-msdos (3.18.11-1)        FAT    => Test witout this
(2)kmod-fs-vfat (3.18.11-1)        FAT
(2)kmod-fs-ntfs (3.18.11-1)        NTFS    => Test witout this
(5)ntfs-3g (2014.2.15-1-fuseint)    NTFS
(5)fdisk (2.25.2-4)

(3)(4)samba36-server (3.6.25-3)
(3)(4)luci-app-samba (git-15.126.50380-7a54785-1)

http://wiki.openwrt.org/doc/techref/block_mount (8)
EXT4 needs:  kmod-fs-ext4
(8)libext2fs
(8)kmod-fs-autofs4

VFAT Neeeds: kmod-fs-vfat AND
(8)kmod-nls-base  (3.18.11-1)
(8)kmod-nls-cp437
(8)kmod-nls-iso8859-1
(8)kmod-nls-utf8

The following files will be "touched" and can be seen with WinSCP

etc\config\samba.conf
etc\config\fstab.conf
etc\config\firewall.conf
etc\samba\smb.conf
etc\samba\smb.conf.template

I am not sure what I just did to my router.   I set it off in some kind of loop, using this command :

(from https://wiki.openwrt.org/doc/howto/extroot ):

mount /dev/sda1 /mnt ; tar -C /overlay -cvf - . | tar -C /mnt -xf - ; umount /mnt

Did I destroy anything by entering the command above?

.

/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/lib/upgrade/
./upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/lib/upgrade/keep.d/
./upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/lib/upgrade/keep.d/openvpn
./upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/lib/modules/
./upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/lib/modules/3.18.20/
./upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/lib/modules/3.18.20/ums-cypress.ko
./upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/lib/modules/3.18.20/ums-alauda.ko
./upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/lib/modules/3.18.20/nls_cp437.ko
./upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/lib/modules/3.18.20/ums-datafab.ko
./upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/mnt/upper/lib/modules/3.18.20/vfat.ko
^C

Once assembled and set to block-mount type this in console
in console put
# df -h
and
# mount
Put them here

NTFS is slower and consumes a lot of CPU but is now not the case. The case is simply mount a disk
extroot why???
cheers

###########edit#############
Like this
http://i65.tinypic.com/osgak6.jpg

http://i65.tinypic.com/25qeofb.jpg

follow my pointer smile

(Last edited by dimoni on 27 May 2016, 23:55)

Note: I have replaced the 5TB drive with a 32G USB stick for testing, not wanting to wipe out my 5TB drive:

-----------------------------------------------------
root@Buffie:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   28.3M     16.0M     12.4M  56% /
/dev/root                 2.3M      2.3M         0 100% /rom
tmpfs                    61.6M      1.2M     60.4M   2% /tmp
/dev/mtdblock8           28.3M     16.0M     12.4M  56% /overlay
overlayfs:/overlay       28.3M     16.0M     12.4M  56% /
tmpfs                   512.0K         0    512.0K   0% /dev

root@Buffie:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock8 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
root@Buffie:~#

ntfs partitions will never be mounted automatically, you need to manually create mount point for it at System->Mount Points in your router web iface

(Last edited by stas2z on 27 May 2016, 23:54)

the 32G USB stick is not mounted see my pictures
you can see similar to that

root@NAS1043ND:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    4.6M      3.8M    808.0K  83% /
/dev/root                 2.3M      2.3M         0 100% /rom
tmpfs                    30.0M    828.0K     29.1M   3% /tmp
/dev/mtdblock3            4.6M      3.8M    808.0K  83% /overlay
overlayfs:/overlay        4.6M      3.8M    808.0K  83% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sdb1                 1.8T      1.4T    414.2G  77% /mnt/disco
/dev/sda1                14.5M     10.9M      2.4M  82% /mnt/mmcsis
/dev/sda2                10.6M      4.3M      5.5M  43% /mnt/mmc
root@NAS1043ND:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock3 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlayfs (rw,noatime,lowerdir=/,upperdir=/overlay)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sdb1 on /mnt/disco type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /mnt/mmcsis type ext4 (rw,relatime,data=ordered)
/dev/sda2 on /mnt/mmc type ext4 (rw,relatime,data=ordered)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
root@NAS1043ND:~#

/dev/sdb1                 1.8T      1.4T    414.2G  77% /mnt/disco
and
/dev/sdb1 on /mnt/disco type ext4 (rw,relatime,data=ordered)

This is my 1043v2
cheers

(Last edited by dimoni on 28 May 2016, 00:03)

As someone who understands only the most basic Linux file manipulation commands, this is way beyond my understanding.   I can issue a "mount" command when I copy it off an instruction sheet, but that's about the extend of my knowledge.  Also I searched quite extensively online and cannot find any ntfs-3g package to install.   Thanks!

**** Even though I had refreshed the Opkg list several times today and attempted to install ntfs-3g, the package was never found.   I tried it again just now and it installed!    Not sure what is going on here.

(Last edited by DonJuane on 28 May 2016, 06:23)

root@Buffie:/dev# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   28.3M     16.2M     12.1M  57% /
/dev/root                 2.3M      2.3M         0 100% /rom
tmpfs                    61.6M    740.0K     60.9M   1% /tmp
/dev/mtdblock8           28.3M     16.2M     12.1M  57% /overlay
overlayfs:/overlay       28.3M     16.2M     12.1M  57% /
tmpfs                   512.0K         0    512.0K   0% /dev

root@Buffie:/dev# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock8 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)

root@Buffie:/dev# ntfs-3g /dev/sda1 /mnt/usb-ntfs -o rw,sync
NTFS signature is missing.
Failed to mount '/dev/sda1': Invalid argument
The device '/dev/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
root@Buffie:/dev#

http://s20.postimg.org/woglku39p/No_Mount.jpg

(Last edited by DonJuane on 28 May 2016, 06:49)

This is certainly no walk in the park, is it?

I think I got the thumb drive mounted .... maybe?    Off to bed and will try my luck sharing it then tomorrow.

http://s20.postimg.org/cv4hs4pvx/Usb_Thumb.jpg

*** Thank you y muchos gracias to all those y todo personas who helped me que ayuda mi!

(But don't leave yet, I have yet to share :-0

(Last edited by DonJuane on 28 May 2016, 07:04)

Yeah¡¡
I'am hapy to you
Now if you have it up and running i'm glad, because basically with the disk of 5 Teras is the same process but instead of vfat serious with ntfs-3g in box where you told the usb vfat 32

####ahora si que lo tienes montado y funcionando me alegro, pues basicamente con el disco de 5 teras es el mismo proceso pero en vez de vfat seria con ntfs-3g en la casilla donde le dijiste vfat al usb de 32####

cheers/salut¡¡

OK, when I removed the USB thumb drive and plugged in the 5TB drive, this time when I click "Add" button I don't see the device listed in the UUID pull-down list like I did with the USB thumb drive.    How do I get the NTFS 5TB drive to appear under the "UUID:" list under the option of "Mount Entry"?  Thanks!

What is it?   The fool is the one who tries the same process over and over and expects a different result.   Not with OpenWRT.    Seriously, maybe it was the fact that I downloaded fdisk that made it work this time ...

# ntfs-3g /dev/sda1 /mnt/usb5t -o rw,sync
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing

At last!  the ntfs 5tb mounted!

https://wiki.openwrt.org/doc/howto/writable_ntfs

(Last edited by DonJuane on 28 May 2016, 14:29)

Next: How to get this drive to spin down while not being accessed ...

in console
# opkg update
# opkg install hd-idle luci-app-hd-idle

or by Luci as you prefer

cheers

Works great !   Thanks to all who helped so graciously!   This should get me started.   I just tested and it spins down after the specified time once I configured it.    Not an easy task for the untrained but hopefully this post will help someone else who's been afraid to try.

So in summary it looks like the way this thing works is first you have to ensure you have the flash to hold all of these (I have a Buffalo router with 128M, would say forget it on anything smaller).  If you have the space, then install the score of packages for usb support as illustrated by RangerZ, then using the additional valuable info above from dimoni, stas2z and others, the following has been my observation:

- installing the packages does basically nothing as far as showing you something new in your Mount Points menu
- you can create a mount for anything besides a ntfs drive by clicking "ADD" button and you should see the device appearing under UUID then and be able to easily then assign a mnt/Usbdevice name
- for a ntfs drive, you will not be able to see the Mount Points menu to control the ntfs drive or make it appear by any action, you have to use the ntfs-3g command to mount it originally, then use other portions of that tool to have the mount happen automatically at boot time or construct and install a script that serves as a "hot mount" mechanism (haven't tried this yet"
- if the drive is an occasional use item and you want the drive to spin down when not in use, you will want to add the hd-idle package, and then either configure the control file for it in etc/config or use the luci graphical interface to customize it.

(Last edited by DonJuane on 28 May 2016, 17:54)

When you have the time can you run some speed tests on this.
I like this tool (windows) http://totusoft.com/lanspeed1/

Your NTFS mount instructions may have been my issue with it.

I spoke too soon.   I tried your tool and it could never even close the file it wrote to the NetBios shared drive that it was trying to use to run the speed test.    I used conventional drag and drop to copy a 122K file to the drive from my laptop and it took about 3 minutes to copy that small file.   

So I would say that after all the effort, as it is it is unusable in its current implementation, because it is deathly slow.

***** Write speed was Mbps: 0.371040  Read failed.

**** Update 2:  This crawling speed encountered is via a Samba Netbios share to windows.  If I use WinSCP to drag and drop a large file, the average speed while copying is 1,949 Kb/s (relatively fast)

**** Update 3: This 1,949 Kb/s was the download speed from the USB drive on the router.    The upload speed is ~ 14,000 B/s  (very, very slow)

(Last edited by DonJuane on 28 May 2016, 21:10)

Unfortunately these results are in line with what I see.  You may do better with other file systems, but the reality is they are all a magnitude or more slower than one sees attached to a PC.

Technically works, practically fails. 

Not to different than wifi hotspots which seem to run between 1.5 and 2.5Mbps, and even slower under VPN.

Wonder how the little NAS Linux servers manage their drives with high speed data throughput?   Maybe by not routing LOL.

dont expect anything on OpenWRT's Samba, its terrible im telling you. You will be loosing about 80% of the actual speed you should be getting when running a windows OS with windows shares on it or a Ubuntu/Arch Linux vs a Plain OpenWRT.

In windows im getting full 120MB/s transfer speed samba using Windows and Arch Linux with only 20-25% CPU usage, while OpenWRT can only manage to get 30MB/s with one of the cores reaching 100% with average CPU usage of 35%. Tried applying some samba performance tweaking on it but non of them works.

im talking about a OS here hosting a WIndows Share aka Samba.

(Last edited by remlei on 29 May 2016, 02:07)

remlei wrote:

dont expect anything on OpenWRT's Samba, its terrible im telling you. You will be loosing about 80% of the actual speed you should be getting when running a windows OS with windows shares on it or a Ubuntu/Arch Linux vs a Plain OpenWRT.

In windows im getting full 120MB/s transfer speed samba using Windows and Arch Linux with only 20-25% CPU usage, while OpenWRT can only manage to get 30MB/s with one of the cores reaching 100% with average CPU usage of 35%. Tried applying some samba performance tweaking on it but non of them works.

im talking about a OS here hosting a WIndows Share aka Samba.

Is this the Arch Linux vs OpenWrt performance comparison on the same (x86 I presume) box? Or were you comparing performance of the x86/ARM Arch Linux with a SATA drive vs OpenWrt on low-power MIPS with USB-connected drive?

The discussion might have continued from here.