Configuring SMB share with NTFS drive

I have a WRT1900ACS and a 2tb WD hard drive plugged in via USB 3.0.

I have been able to use dmesg to see it mounts fine in the kernel and is assigned sda2

[  451.747514] usb-storage 2-1:1.0: USB Mass Storage device detected
[  451.753759] scsi host2: usb-storage 2-1:1.0
[  452.786371] scsi 2:0:0:0: Direct-Access     WD       My Passport 07B8 1007 PQ: 0 ANSI: 6
[  452.794989] scsi 2:0:0:1: Enclosure         WD       SES Device       1007 PQ: 0 ANSI: 6
[  452.803232] sd 2:0:0:0: [sda] 3906963456 512-byte logical blocks: (2.00 TB/1.82 TiB)
[  452.811304] sd 2:0:0:0: [sda] Write Protect is off
[  452.816137] sd 2:0:0:0: [sda] Mode Sense: 47 00 10 08
[  452.816362] sd 2:0:0:0: [sda] No Caching mode page found
[  452.821698] sd 2:0:0:0: [sda] Assuming drive cache: write through
[  452.831834]  sda: sda1 sda2
[  452.835857] sd 2:0:0:0: [sda] Attached SCSI disk

using lsblk it shows up normally

sda           8:0    0  1.8T  0 disk
├─sda1        8:1    0  200M  0 part
└─sda2        8:2    0  1.8T  0 part

but when looking at mnt using ls /mnt/ it shows nothing and if i give the SMB server /mnt/sda2/ as the directory to share nothing can touch it.

Im at a loss anyone have any ideas where to go from here?

1 Like

Not the best choice of file system for linux.
https://openwrt.org/docs/guide-user/storage/writable_ntfs

3 Likes

Would itbe better to use ExFAT? have some windows boxes and a roku tv that it needs to work with.

Thanks!

or could i run a plex server from the router and have it formatted exfat for everything else? It seems roku can only support DLNA shares

By work with do you mean to connect the disk directly to windows and roku devices
Or
Access over the network as Samba share or dlna shares

what do you mean? i would like to have the drive be able to be accessed via windows/mac/linux and be able to stream to the Roku TV?

Then use a native Linux file system such as ext4.

The samba server and dlna server will handle the file access from devices on the network.

https://openwrt.org/docs/guide-user/services/media_server/dlna

https://openwrt.org/docs/guide-user/services/nas/cifs.server

Will Windows be able to interpret the filesystems?

You didn't answer the earlier question.

If you are physically going to move the disk from PC to Mac to Roku for example by connecting to each device using a USB cable, then NO, ext4 won't be work you should use exFat in that case.

If the disk is only connected to the router, then ext4 would be a better choice.
Your other network devices will not see whatever filesystem you use, the Samba server will share the files, as long as your devices support windows shares which Window/Mac/Linux do.
For the Roku you will need to setup a DLNA server on your router to share media files.

https://openwrt.org/docs/guide-user/storage/filesystems-and-partitions

https://openwrt.org/docs/guide-user/storage/filesystems-and-partitions#setup_exfat

https://openwrt.org/docs/guide-user/storage/filesystems-and-partitions#setup_ext4

1 Like

Yes. Windows will be able to read the ext4 file system. I have a drive mounted on OpenWRT in ext4 format and have no issues with either Windows or macOS.

1 Like

Yeah it would be connected to the router 24/7 would copy new files/movies to it via the network

In that case use ext4

2 Likes

In that case use ext4

Seconded.

ext4 or exfat same thing kernel mounts it its in dev but i cant mount it and pointing samba to /dev/sta1/ doesnt get me anywhere

https://openwrt.org/docs/guide-user/storage/usb-installing

1 Like

i use ntfs-3g and no problems MBR or GPT


base-files
blkid
block-mount
blockd
busybox
cgi-io
ddns-scripts
dnsmasq
dropbear
e2fsprogs
firewall
fstools
fwtool
getrandom
hd-idle
hostapd-common
igmpproxy
ip6tables
iptables
iw
iwinfo
jshn
jsonfilter
kernel
kmod-cfg80211
kmod-crypto-crc32c
kmod-crypto-hash
kmod-eeprom-93cx6
kmod-fs-autofs4
kmod-fs-ext4
kmod-fs-reiserfs
kmod-fs-vfat
kmod-fuse
kmod-gpio-button-hotplug
kmod-ip6tables
kmod-ipt-conntrack
kmod-ipt-core
kmod-ipt-nat
kmod-ipt-offload
kmod-leds-gpio
kmod-lib-crc-ccitt
kmod-lib-crc-itu-t
kmod-lib-crc16
kmod-mac80211
kmod-mt76
kmod-mt76-core
kmod-mt7603
kmod-mt76x02-common
kmod-mt76x2
kmod-mt76x2-common
kmod-nf-conntrack
kmod-nf-conntrack6
kmod-nf-flow
kmod-nf-ipt
kmod-nf-ipt6
kmod-nf-nat
kmod-nf-reject
kmod-nf-reject6
kmod-nls-base
kmod-nls-cp437
kmod-nls-iso8859-1
kmod-nls-utf8
kmod-ppp 
kmod-pppoe 
kmod-pppox 
kmod-rt2800-lib
kmod-rt2800-mmio
kmod-rt2800-pci
kmod-rt2800-soc
kmod-rt2x00-lib
kmod-rt2x00-mmio
kmod-rt2x00-pci
kmod-scsi-core 
kmod-slhc 
kmod-usb-core 
kmod-usb-ohci 
kmod-usb-printer 
kmod-usb-storage 
kmod-usb-storage-extras 
kmod-usb-storage-uas 
kmod-usb-uhci 
kmod-usb3 
libblkid1
libblobmsg-json
libbz2-1.0
libc
libcomerr0
libexif
libext2fs2
libffmpeg-audio-dec
libflac
libgcc1
libid3tag
libip4tc2
libip6tc2
libiwinfo-lua
libiwinfo20181126
libjpeg
libjson-c4
libjson-script
liblua5.1.5
liblucihttp-lua
liblucihttp0
libmount1
libnl-tiny
libogg0
libpthread
librt
libsmartcols1
libsqlite3
libss2
libubox20170601
libubus-lua
libubus20170705
libuci-lua
libuci20130104
libuclient20160123
libuuid1
libvorbis
libxtables12
logd
lsblk
lua
luci 
luci-app-ddns
luci-app-firewall 
luci-app-hd-idle 
luci-app-minidlna 
luci-app-opkg 
luci-app-p910nd 
luci-app-samba 
luci-app-travelmate 
luci-app-upnp 
luci-base 
luci-lib-ip 
luci-lib-ipkg 
luci-lib-jsonc 
luci-lib-nixio 
luci-mod-admin-full 
luci-mod-network 
luci-mod-status 
luci-mod-system
luci-proto-ipv6
luci-proto-ppp
luci-proto-relay
luci-theme-bootstrap
minidlna
miniupnpd 
mtd
netifd
ntfs-3g
odhcp6c
odhcpd-ipv6only
openwrt-keyring
opkg
p910nd
ppp
ppp-mod-pppoe
procd
relayd
rpcd
rpcd-mod-file
rpcd-mod-iwinfo
rpcd-mod-rrdns
rt2800-pci-firmware
samba36-server
swconfig
travelmate
ubox
ubus
ubusd
uci
uclient-fetch
uhttpd
uhttpd-mod-ubus
urandom-seed
urngd
usign
wireless-regdb
wpad-basic
zlib

i have it set up Ext4 and have it mounted to /mnt/Storage/ and windows can see it with \ and rou ses theDLNA server but says there are no compatible files

fixed DLNA windows still wont connect The troubleshooter in Windows claims the remote device wont accept the connection

This can't be right. I'm having the same issue with my WRT32X and I keep getting "write protected" on my 3TB USB 3.0 NTFS drive. Reading from it is fast and reliable 80-110MB/s.

There has gotta be something missing or horribly convoluted with OpenWrt right now because the stock Linksys firmware it worked perfectly with 1 mouse click and that's based off of an older build of OpenWrt on Linux kernel 4.4.14. It literately worked for years reliably reading-and writing to and now I switch to OpenWrt 19.x and get nothing but "write protected" errors.

I just can't figure this out it's drive me nuts, don't want to have to switch back to stock but there is something majorly missing on these new openwrt builds if this is happening.

Are you referring to the writable ntfs doc? It was working fine on my ntfs drive in 19.07.* with my wrt1200 (recently switched to exfat), just to check, you’ll need these packages -

ntfs-3g
block-mount
kmod-usb-storage
and possibly -
kmod-usb-storage-uas

Your ntfs drive should only be in mounted file systems, if you see an entry in mount points it should be deleted and your wrt32x rebooted. Also, make sure browsable is checked in network shares > shared directories.