Problems mounting a Windows SMB share

Hi everyone,

I want to start using rsync and have successfully done a tutorial copying files from one local folder to another. Now I wanted to do the same thing with a SMB share on a Windows computer on the network. I am using CHAOS CALMER with admin rights via SSH.

So the tutorial (https://bobcares.com/blog/rsync-from-linux-to-windows-share/) says I need to create a mount-point, then mount the Windows share, but I run in to problems here. I get "failed: No such device". Unfortunately, I didn't find anything I could work with googling the problem, so I decided to create my own thread.

root@beta:~# mount -t cifs -o username=testUSER //192.168.178.41/testshare /mnt/share
mount: mounting //192.168.178.41/testshare on /mnt/share failed: No such device

Of course the share exists and "testUSER" has full rights, the mount-point was created successfully.
I think the problem is more basic because using different WindowsOS gave the same error and even if I execute the command using "fantasy" shares & usernames which don't exist I get the same error :frowning:

Can you please help me get this sorted?
Thank you!

fwiw, do you need to enable SMB1 support in Wiindows? I believe it is disabled by default from Windows 10 onwards.

Thanks for the tip, I am aware of this and have enabled SMB1 for testing. Additionally, I tried Windows98 and XP which don't support anything above SMB1. Also, I messed with switching firewalls on/off but having said that, Win98 doesn't have a firewall either - still the same error "failed: No such device" .

I did a Wireshark to see if I get anything, but there is not even an attempt registered in the network stream. It seems that the error "failed: No such device" is not a response for a failed SMB-connection-attempt, but rather a local response like a syntax error / a typo or an internal problem.

Please help me!

Whilst prodding and testing, I left away the "username" in the mount-command and got a different error:

**"can't read '/etc/fstab': No such file or directory"**

root@beta:~# mount -t cifs -o \\192.168.100.101\crossroads /mnt/share
mount: can't read '/etc/fstab': No such file or directory

Google tells me: Your Linux system's filesystem table, aka fstab is a configuration table designed to ease the burden of mounting and unmounting file systems to a machine.

I checked in the /etc of my system there is a fstab entry but it is a symlink pointing to /tmp/fstab
However, in the /tmp folder, there is no fstab folder or file present

Does this mean, my linux needs this in order to mount an SMB ?

I am new to this and would appreciate any help!

Does this old Chaos Calmer have cifs-utils installed (mine doesn't). So I was able to replicate your issue.

opkg list-installed
1 Like

Also check the that any Samba components are installed at all. Openwrt does not include samba server or client components by default

And upgrade to a supported version CC is very old and has known security issues.

Hi all!

unfortunately i need to stick with CC it is not possible in my setup to change that, so I need to install anything necessary. Here is the OPKG list for you - please let me know what I am missing. I appreciate your help and guidance in this, it is very important for me to get this one up and running:

root@beta:~# opkg list-installed
base-files - 151-unknown
block-mount - 2018-05-23-1
busybox - 1.30.1-2
chat - 2.4.7-13
coova-chilli - 1.3.0+20141128-4
curl - 7.74.0-1
ddns-tlt - 2.7.6-13
ddns-tlt_cloudflare.com-v4 - 2.7.6-13
ddns-tlt_no-ip_com - 2.7.6-13
ddns-tlt_nsupdate - 2.7.6-13
dnsmasq-dhcpv6 - 2.81-1
dropbear - 2019.78-2
ebtables - 2.0.10-4-1
etherwake - 1.09-3
firewall - 2017-05-27
freeradius2 - 2.2.6-1
freeradius2-common - 2.2.6-1
freeradius2-democerts - 2.2.6-1
freeradius2-mod-chap - 2.2.6-1
freeradius2-mod-eap - 2.2.6-1
freeradius2-mod-eap-md5 - 2.2.6-1
freeradius2-mod-eap-mschapv2 - 2.2.6-1
freeradius2-mod-eap-peap - 2.2.6-1
freeradius2-mod-eap-tls - 2.2.6-1
freeradius2-mod-eap-ttls - 2.2.6-1
freeradius2-mod-exec - 2.2.6-1
freeradius2-mod-files - 2.2.6-1
freeradius2-mod-mschap - 2.2.6-1
freeradius2-mod-pap - 2.2.6-1
freeradius2-mod-radutmp - 2.2.6-1
freeradius2-mod-realm - 2.2.6-1
freeradius2-utils - 2.2.6-1
fstools - 2018-05-23-1
fuse-utils - 2.9.8-1
fwtool - 1-1
getopt - 2.24.1-1
glib2 - 2.41.1-2
gre - 1-8
host-block - 1-1
hostapd-common - 2019-08-08-7
ip - 3.11.0-1
ip6tables - 1.6.2-3
ip6tables-mod-nat - 1.6.2-3
iperf - 2.0.10-1
iptables - 1.6.2-3
iptables-mod-conntrack-extra - 1.6.2-3
iptables-mod-filter - 1.6.2-3
iptables-mod-ipopt - 1.6.2-3
iptables-mod-ipsec - 1.6.2-3
iptables-mod-nat-extra - 1.6.2-3
iptables-mod-quota2 - 2.12-1
iw - 5.0.1-1
iwinfo - 2014-10-27.1-d5dc3d0605f76fbbbad005d998497e53a236aeda
jshn - 2020-05-25-1
jsonfilter - 2018-02-04-c7e938d6582a436dddc938539e72dd1320625c54
kernel - 3.18.44-1-aa5a0902c2910b9fe74498a88add3d37
kmod-ath - 3.18.44+4.19.193-1-1
kmod-ath9k - 3.18.44+4.19.193-1-1
kmod-ath9k-common - 3.18.44+4.19.193-1-1
kmod-bridge - 3.18.44-1
kmod-cfg80211 - 3.18.44+4.19.193-1-1
kmod-crypto-aes - 3.18.44-1
kmod-crypto-arc4 - 3.18.44-1
kmod-crypto-authenc - 3.18.44-1
kmod-crypto-cbc - 3.18.44-1
kmod-crypto-core - 3.18.44-1
kmod-crypto-deflate - 3.18.44-1
kmod-crypto-des - 3.18.44-1
kmod-crypto-ecb - 3.18.44-1
kmod-crypto-hash - 3.18.44-1
kmod-crypto-hmac - 3.18.44-1
kmod-crypto-iv - 3.18.44-1
kmod-crypto-manager - 3.18.44-1
kmod-crypto-md5 - 3.18.44-1
kmod-crypto-pcompress - 3.18.44-1
kmod-crypto-rng - 3.18.44-1
kmod-crypto-sha1 - 3.18.44-1
kmod-crypto-sha256 - 3.18.44-1
kmod-crypto-sha512 - 3.18.44-1
kmod-crypto-wq - 3.18.44-1
kmod-ebtables - 3.18.44-1
kmod-ebtables-ipv4 - 3.18.44-1
kmod-ebtables-watchers - 3.18.44-1
kmod-fs-autofs4 - 3.18.44-1
kmod-fs-ext4 - 3.18.44-1
kmod-fs-msdos - 3.18.44-1
kmod-fs-ntfs - 3.18.44-1
kmod-fs-vfat - 3.18.44-1
kmod-fuse - 3.18.44-1
kmod-gpio-button-hotplug - 3.18.44-1
kmod-gpio-pca953x - 3.18.44-1
kmod-gre - 3.18.44-1
kmod-gre6 - 3.18.44-1
kmod-hwmon-core - 3.18.44-1
kmod-hwmon-mcp3021 - 3.18.44-1
kmod-i2c-algo-bit - 3.18.44-1
kmod-i2c-core - 3.18.44-1
kmod-i2c-gpio - 3.18.44-1
kmod-i2c-gpio-custom - 3.18.44-2
kmod-ifb - 3.18.44-1
kmod-ip6-tunnel - 3.18.44-1
kmod-ip6tables - 3.18.44-1
kmod-ipsec - 3.18.44-1
kmod-ipsec4 - 3.18.44-1
kmod-ipsec6 - 3.18.44-1
kmod-ipt-conntrack - 3.18.44-1
kmod-ipt-conntrack-extra - 3.18.44-1
kmod-ipt-coova - 3.18.44+1.3.0+20141128-4
kmod-ipt-core - 3.18.44-1
kmod-ipt-filter - 3.18.44-1
kmod-ipt-ipopt - 3.18.44-1
kmod-ipt-ipsec - 3.18.44-1
kmod-ipt-nat - 3.18.44-1
kmod-ipt-nat-extra - 3.18.44-1
kmod-ipt-nat6 - 3.18.44-1
kmod-ipt-quota2 - 3.18.44+2.12-1
kmod-iptunnel - 3.18.44-1
kmod-iptunnel4 - 3.18.44-1
kmod-iptunnel6 - 3.18.44-1
kmod-ipv6 - 3.18.44-1
kmod-l2tp - 3.18.44-1
kmod-ledtrig-usbdev - 3.18.44-1
kmod-lib-crc-ccitt - 3.18.44-1
kmod-lib-crc-itu-t - 3.18.44-1
kmod-lib-crc16 - 3.18.44-1
kmod-lib-crc7 - 3.18.44-1
kmod-lib-textsearch - 3.18.44-1
kmod-lib-zlib - 3.18.44-1
kmod-llc - 3.18.44-1
kmod-lp - 3.18.44-1
kmod-mac80211 - 3.18.44+4.19.193-1-1
kmod-mii - 3.18.44-1
kmod-mmc - 3.18.44-1
kmod-mmc-spi - 3.18.44-1
kmod-mppe - 3.18.44-1
kmod-natsemi - 3.18.44-1
kmod-nf-conntrack - 3.18.44-1
kmod-nf-conntrack-netlink - 3.18.44-1
kmod-nf-conntrack6 - 3.18.44-1
kmod-nf-ipt - 3.18.44-1
kmod-nf-ipt6 - 3.18.44-1
kmod-nf-nat - 3.18.44-1
kmod-nf-nat6 - 3.18.44-1
kmod-nf-nathelper-extra - 3.18.44-1
kmod-nf-nathelper-ftp - 3.18.44-1
kmod-nf-nathelper-gre - 3.18.44-1
kmod-nf-nathelper-h323 - 3.18.44-1
kmod-nf-nathelper-pptp - 3.18.44-1
kmod-nf-nathelper-sip - 3.18.44-1
kmod-nfnetlink - 3.18.44-1
kmod-nls-base - 3.18.44-1
kmod-nls-cp437 - 3.18.44-1
kmod-nls-cp850 - 3.18.44-1
kmod-nls-cp852 - 3.18.44-1
kmod-nls-iso8859-1 - 3.18.44-1
kmod-nls-iso8859-15 - 3.18.44-1
kmod-nls-iso8859-2 - 3.18.44-1
kmod-nls-utf8 - 3.18.44-1
kmod-port-leds - 3.18.44-1
kmod-ppp - 3.18.44-1
kmod-pppoe - 3.18.44-1
kmod-pppol2tp - 3.18.44-1
kmod-pppox - 3.18.44-1
kmod-pptp - 3.18.44-1
kmod-sched-connmark - 3.18.44-1
kmod-sched-core - 3.18.44-1
kmod-scsi-cdrom - 3.18.44-1
kmod-scsi-core - 3.18.44-1
kmod-slhc - 3.18.44-1
kmod-slip - 3.18.44-1
kmod-stp - 3.18.44-1
kmod-tun - 3.18.44-1
kmod-udptunnel4 - 3.18.44-1
kmod-udptunnel6 - 3.18.44-1
kmod-usb-acm - 3.18.44-1
kmod-usb-core - 3.18.44-1
kmod-usb-net - 3.18.44-1
kmod-usb-net-cdc-ether - 3.18.44-1
kmod-usb-net-cdc-ncm - 3.18.44-1
kmod-usb-net-huawei-cdc-ncm - 3.18.44-1
kmod-usb-net-qmi-wwan - 3.18.44-1
kmod-usb-printer - 3.18.44-1
kmod-usb-serial - 3.18.44-1
kmod-usb-serial-ark3116 - 3.18.44-1
kmod-usb-serial-belkin - 3.18.44-1
kmod-usb-serial-ch341 - 3.18.44-1
kmod-usb-serial-cp210x - 3.18.44-1
kmod-usb-serial-cypress-m8 - 3.18.44-1
kmod-usb-serial-ftdi - 3.18.44-1
kmod-usb-serial-keyspan - 3.18.44-1
kmod-usb-serial-option - 3.18.44-1
kmod-usb-serial-pl2303 - 3.18.44-1
kmod-usb-serial-qualcomm - 3.18.44-1
kmod-usb-serial-wwan - 3.18.44-1
kmod-usb-storage - 3.18.44-1
kmod-usb-uhci - 3.18.44-1
kmod-usb-wdm - 3.18.44-1
kmod-usb2 - 3.18.44-1
lib-lua - 1-1
libattr - 20140610-1
libblobmsg-json - 2020-05-25-1
libbrand - 1.0-1
libbrand-versioning - 1.0-1
libc - 0.9.33.2-1
libcares - 1.14.0-1
libcgi - 1.0-1
libchecksv - 0.0.1
libcurl - 7.74.0-1
libcurlcmd - 1.0-1
libevent2 - 2.1.8-3
libeventslog - 1.0-1
libffi - 3.0.13-1
libfuse - 2.9.8-1
libgcc - 4.8-linaro-1
libgmp - 6.1.2-1
libgps - 0.0.1-1
libgsm - 1.0-1
libioman - 1.1-1
libip4tc - 1.6.2-3
libip6tc - 1.6.2-3
libiwinfo - 2014-10-27.1-d5dc3d0605f76fbbbad005d998497e53a236aeda
libiwinfo-lua - 2014-10-27.1-d5dc3d0605f76fbbbad005d998497e53a236aeda
libjson-c - 0.14-1
libjson-script - 2020-05-25-1
libltdl - 2.4-1
liblua - 5.1.5-1
liblucihttp - 2019-01-24-1
liblucihttp-lua - 2019-01-24-1
liblzo - 2.10-1
libmdcollectd - 1.0-1
libmicroxml - 2015-03-18-caa8d3e6887f5c70e54df555dd78e4e45cfa74cc
libmnfinfo - 1.0-1
libmnl - 1.0.4-1
libmosquitto-ssl - 1.6.10-1
libncurses - 6.2-1
libnetfilter-conntrack - 2017-07-25-1
libnfnetlink - 1.0.1-1
libnl-tiny - 0.1-5
libopenssl - 1.1.1k-1
libopenssl-conf - 1.1.1k-1
libpcap - 1.10.0-1
libpcre - 8.44-3
libpop3-lua - 1-1
libpopt - 1.16-1
libpthread - 0.9.33.2-1
libqmi-glib - 1.22.6-1
libreadline - 7.0-1
librex_lua - 1.0-1
librms_mqtt - 1.0-1
librt - 0.9.33.2-1
libsera - 1.2.2-1
libsim_switch - 1.0-1
libsmpp34 - 1.12.0-1
libsms_utils - 1.1-1
libsqlite3 - 3330000-1
libstdcpp - 4.8-linaro-1
libthread-db - 0.9.33.2-1
libtlt-logger - 0.0.1-1
libtlt_base - 1-1
libtlt_socket_man - 1-1
libtlt_uci - 1.0-1
libubox - 2020-05-25-1
libubus - 2018-10-06-1
libubus-lua - 2018-10-06-1
libuci - 2019-09-01-4
libuci-lua - 2019-09-01-4
libunhandler - 1.0-1
libusb-1.0 - 1.0.21-1
libustream-openssl - 2019-11-05--3
libuuid - 2.24.1-1
libxtables - 1.6.2-3
load_balancing - 1.0
logd - 2019-04-07-1
lsqlite3 - 7-2
lua - 5.1.5-1
luamd5 - 1.1.2-1
luasec - 0.8-1
luasocket - 3.0-rc1-20130909-2
luci - 0.0.1-1
luci-app-admin_network - trunk+svn++u1-1
luci-app-admin_status - trunk+svn++u1-1
luci-app-admin_system - trunk+svn++u1-1
luci-app-alarm - trunk+svn++u1-1
luci-app-cfgwzd - trunk+svn++u1-1
luci-app-coovachilli - trunk+svn++u1-1
luci-app-ddns - trunk+svn++u1-1
luci-app-dmvpn - trunk+svn++u1-1
luci-app-events_reporting - trunk+svn++u1-1
luci-app-eventslog_report - trunk+svn++u1-1
luci-app-firewall - trunk+svn++u1-1
luci-app-fw_upgrade - trunk+svn++u1-1
luci-app-gadgets - trunk+svn++u1-1
luci-app-gps - trunk+svn++u1-1
luci-app-gre-tunnel - trunk+svn++u1-1
luci-app-input-output-tlt - trunk+svn++u1-1
luci-app-l2tp - trunk+svn++u1-1
luci-app-licenses - trunk+svn++u1-1
luci-app-load_balancing - trunk+svn++u1-1
luci-app-memory-expansion - trunk+svn++u1-1
luci-app-mobile_traffic - trunk+svn++u1-1
luci-app-modbus - trunk+svn++u1-1
luci-app-mosquitto - trunk+svn++u1-1
luci-app-mqtt-modbus-gateway - trunk+svn++u1-1
luci-app-multiwan - trunk+svn++u1-1
luci-app-nhrp - trunk+svn++u1-1
luci-app-ntpc - trunk+svn++u1-1
luci-app-openvpn-tlt - trunk+svn++u1-1
luci-app-p910nd - trunk+svn++u1-1
luci-app-package-manager - trunk+svn++u1-1
luci-app-ping-reboot - trunk+svn++u1-1
luci-app-port_mirroring - trunk+svn++u1-1
luci-app-pptp - trunk+svn++u1-1
luci-app-profiles-tlt - trunk+svn++u1-1
luci-app-qos - trunk+svn++u1-1
luci-app-quagga - trunk+svn++u1-1
luci-app-radius - trunk+svn++u1-1
luci-app-restore-point - trunk+svn++u1-1
luci-app-rs - trunk+svn++u1-1
luci-app-samba - trunk+svn++u1-1
luci-app-shellinabox - trunk+svn++u1-1
luci-app-sms-gateway - trunk+svn++u1-1
luci-app-sms-utilities - trunk+svn++u1-1
luci-app-sstp - trunk+svn++u1-1
luci-app-strongswan - trunk+svn++u1-1
luci-app-stunnel - trunk+svn++u1-1
luci-app-usb-tools - trunk+svn++u1-1
luci-app-user_scripts - trunk+svn++u1-1
luci-app-vrrp - trunk+svn++u1-1
luci-app-webfilter - trunk+svn++u1-1
luci-app-wol - trunk+svn++u1-1
luci-i18n-english - trunk+svn++u1-1
luci-lib-core - trunk+svn++u1-1
luci-lib-ipkg - trunk+svn++u1-1
luci-lib-json - trunk+svn++u1-1
luci-lib-jsonc - trunk+svn++u1-1
luci-lib-lmo - trunk+svn++u1-1
luci-lib-nixio - trunk+svn++u1-1
luci-lib-sys - trunk+svn++u1-1
luci-lib-web - trunk+svn++u1-1
luci-mod-admin-core - trunk+svn++u1-1
luci-mod-admin-full - trunk+svn++u1-1
luci-proto-core - trunk+svn++u1-1
luci-proto-ppp - trunk+svn++u1-1
luci-sgi-cgi - trunk+svn++u1-1
luci-ssl - 0.0.1-1
luci-theme-base - trunk+svn++u1-1
luci-theme-default - trunk+svn++u1-1
mosquitto-ssl - 1.6.10-1
mtd - 20
nbtscan - 1.5.1
netifd - 2021-01-09--1
nping - 7.70-1
ntfs-3g - 2017.3.23-1-fuseext
ntpclient - 2010_365-1
ntripclient - 1.5.0-dcfb2cb3e6f31b7291a94e7f86379c78ffc0d44e
odhcp6c - 2021-01-09--16
openssl-util - 1.1.1k-1
openvpn-easy-rsa - 3.0.1-1
openvpn-openssl - 2.5.2-1
opkg - 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-9
p910nd - 0.97-5
picocom - 3.1-3
ppp - 2.4.7-13
ppp-mod-pppoe - 2.4.7-13
ppp-mod-pppol2tp - 2.4.7-13
ppp-mod-pptp - 2.4.7-13
pptpd - 1.4.0-1
privoxy - 3.0.26-3
procd - 2015-03-06-47d5be7160e33966f5ded484232d10dcc220f172
pwgen - 2.08-1
px5g-standalone - 4
qext - 0.01
qmi-utils - 1.22.6-1
qos-scripts - 1.3.0-1
quagga - 1.2.4-1
quagga-bgpd - 1.2.4-1
quagga-libospf - 1.2.4-1
quagga-libzebra - 1.2.4-1
quagga-nhrpd - 1.2.4-1
quagga-ospfd - 1.2.4-1
quagga-ripd - 1.2.4-1
quagga-vtysh - 1.2.4-1
quagga-watchquagga - 1.2.4-1
quagga-zebra - 1.2.4-1
relayd - 2016-02-07
resolveip - 2
rpcd - 2015-01-10-f00890cd6eb47ad9bb5da0fb6c50aedc8406e7c5
rpcd-mod-file - 2015-01-10-f00890cd6eb47ad9bb5da0fb6c50aedc8406e7c5
rpcd-mod-iwinfo - 2015-01-10-f00890cd6eb47ad9bb5da0fb6c50aedc8406e7c5
rpcd-mod-rpcsys - 2015-01-10-f00890cd6eb47ad9bb5da0fb6c50aedc8406e7c5
rsync - 3.1.1-1
shellinabox - 2.20
shflags - 2018-01-25-b028d78a70b04986f65d0166ec0cf33e50eec598
socat - 1.7.3.0-2
sshfs - 2.2-1
sstp-client - 1.0.11-1
strace - 4.11-1
strongswan - 5.8.4-1
strongswan-charon - 5.8.4-1
strongswan-default - 5.8.4-1
strongswan-ipsec - 5.8.4-1
strongswan-mod-aes - 5.8.4-1
strongswan-mod-attr - 5.8.4-1
strongswan-mod-connmark - 5.8.4-1
strongswan-mod-constraints - 5.8.4-1
strongswan-mod-des - 5.8.4-1
strongswan-mod-dnskey - 5.8.4-1
strongswan-mod-fips-prf - 5.8.4-1
strongswan-mod-gmp - 5.8.4-1
strongswan-mod-gmpdh - 5.8.4-1
strongswan-mod-hmac - 5.8.4-1
strongswan-mod-kernel-libipsec - 5.8.4-1
strongswan-mod-kernel-netlink - 5.8.4-1
strongswan-mod-md5 - 5.8.4-1
strongswan-mod-nonce - 5.8.4-1
strongswan-mod-pem - 5.8.4-1
strongswan-mod-pgp - 5.8.4-1
strongswan-mod-pkcs1 - 5.8.4-1
strongswan-mod-pkcs8 - 5.8.4-1
strongswan-mod-pubkey - 5.8.4-1
strongswan-mod-random - 5.8.4-1
strongswan-mod-rc2 - 5.8.4-1
strongswan-mod-resolve - 5.8.4-1
strongswan-mod-revocation - 5.8.4-1
strongswan-mod-sha1 - 5.8.4-1
strongswan-mod-sha2 - 5.8.4-1
strongswan-mod-socket-default - 5.8.4-1
strongswan-mod-sshkey - 5.8.4-1
strongswan-mod-stroke - 5.8.4-1
strongswan-mod-updown - 5.8.4-1
strongswan-mod-vici - 5.8.4-1
strongswan-mod-x509 - 5.8.4-1
strongswan-mod-xauth-generic - 5.8.4-1
strongswan-mod-xcbc - 5.8.4-1
strongswan-pki - 5.8.4-1
strongswan-scepclient - 5.8.4-1
stunnel - 5.50-1
swconfig - 10
tc - 3.11.0-1
tcpbridge - 4.1.2-1
tcpcapinfo - 4.1.2-1
tcpdump-mini - 4.9.3-3
tcpliveplay - 4.1.2-1
tcpprep - 4.1.2-1
tcpreplay - 4.1.2-1
tcpreplay-all - 4.1.2-1
tcpreplay-edit - 4.1.2-1
tcprewrite - 4.1.2-1
tcpser - 2
terminfo - 6.2-1
tlt_brand_lua - 1.0-1
tlt_custom_pkg_samba36-server - 3.6.25
tlt_eventslog_lua - 1.0-1
ubox - 2019-04-07-1
ubus - 2018-10-06-1
ubusd - 2018-10-06-1
uci - 2019-09-01-4
uclibcxx - 0.2.4-1
udprelay - 2019-09-18
uhttpd - 2020-02-12-1
uhttpd-mod-lua - 2020-02-12-1
uhttpd-mod-ubus - 2020-02-12-1
uhttpd-mod-ubus-rms - 2020-02-12-1
uqmi - 2014-12-03-86bcdb8cca652676a78b2df8b5e3fb27a40c60a4
usb-modeswitch - 2014-01-17-575c8e8dec6d1f544debe867ebc0bde051209c17
usign - 2020-05-23-1
vrrpd - 1.15-1
vsftpd - 3.0.2-4
wpa-cli - 2019-08-08-7
wpad-openssl - 2019-08-08-7
xl2tpd - 1.3.13-1
zlib - 1.2.11-2
root@beta:~#

fyi

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

ubus call system board

Run the above command to find your version of CC and target; then navigate to the Index

https://archive.openwrt.org/chaos_calmer/

Choose your target: My target is Kirkwood
Navigate to the bottom of your target's page and click on "Packages".
Look in, Click on "Base" and find/search for anything "cifs" related.

EXAMPLE MINE
kmod-fs-cifs_3.18.20-1_kirkwood.ipk]kmod-fs-cifs_3.18.20-1_kirkwood.ipk

Transfer this file over to your OpenWrt system with WinSCP into the /tmp
folder and run

opkg install /tmp/"The_CIFS_File.ipk"

If this still does not produce a given solution; I'm out of ideas. :melting_face:

this is what i use on V21 & V22

opkg update 
opkg install cifsmount rsync
mkdir /mnt/smb
mount -t cifs '\\PC\Share' /mnt/smb -o username=UserName,password=PassWord,file_mode=0666,dir_mode=0777
rsync -av '/mnt/smb/' '/mnt/sda1/smb/' --delete

still won't do file names with special characters tho
you can see the mounted share under mount in luci as well

Thank you for your comments - I did some digging and found that my device has BusyBox v1.30.1
It contains CIFS already, and so I am not sure anymore if I need to install additional packages.
Please read the list I got about the contents of my BusyBox:

[x] mount (23 kb)
[ ] Support -f (fake mount)
[ ] Support -v (verbose)
[x] Support mount helpers
[ ] Support specifying devices by label or UUID
[ ] Support mounting NFS file systems on Linux < 2.6.23
[x] Support mounting CIFS/SMB file systems
[x] Support lots of -o flags
[x] Support /etc/fstab and -a (mount all)
[ ] Support -T <alt_fstab>
[ ] mountpoint (4.9 kb)

So do I already have CIFS support on board?
If so, maybe I am using the wrong commands?

Thank you for your ongoing support!

Downloaded Cifs and all dependencies manually.

My Putty output Mis-Steps and All
Using username "root".
root@192.168.44.121's password:


BusyBox v1.23.2 (2015-07-24 20:06:02 CEST) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (15.05, r46767)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@PINK:~# top n1
Mem: 48224K used, 77224K free, 484K shrd, 1900K buff, 29960K cached
CPU:   0% usr   0% sys   0% nic 100% idle   0% io   0% irq   0% sirq
Load average: 0.20 0.12 0.05 1/56 2620
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
 2620  2615 root     R     1336   1%   0% top n1
 2601  2523 nobody   S     3392   3%   0% /usr/sbin/smbd -F
 2524     1 root     S     2868   2%   0% /usr/sbin/nmbd -F
 2523     1 root     S     2828   2%   0% /usr/sbin/smbd -F
 2312     1 root     S     1460   1%   0% /sbin/rpcd
 2475     1 root     S     1436   1%   0% /usr/sbin/uhttpd -f -h /www -r PINK -
 2344     1 root     S     1408   1%   0% /sbin/netifd
    1     0 root     S     1372   1%   0% /sbin/procd
 2605  2604 root     S     1340   1%   0% -ash
 2568     1 root     S     1340   1%   0% /usr/sbin/ntpd -n -S /usr/sbin/ntpd-h
 2615  2614 root     S     1340   1%   0% -ash
 2604  2412 root     S     1132   1%   0% /usr/sbin/dropbear -F -P /var/run/dro
 2614  2412 root     S     1116   1%   0% /usr/sbin/dropbear -F -P /var/run/dro
 2364     1 root     S     1084   1%   0% /usr/sbin/odhcpd
 2412     1 root     S     1048   1%   0% /usr/sbin/dropbear -F -P /var/run/dro
 2303     1 root     S      952   1%   0% /sbin/logd -S 16
 2527     1 nobody   S      880   1%   0% /usr/sbin/dnsmasq -C /var/etc/dnsmasq
 1265     1 root     S      804   1%   0% /sbin/ubusd
 1572     1 root     S      680   1%   0% /sbin/askfirst /bin/ash --login
    8     2 root     SW       0   0%   0% [kworker/u2:1]
root@PINK:~# opkg install /tmp/123.ipk
Installing kmod-fs-cifs (3.18.20-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-cifs:
 *      kmod-crypto-arc4 *      kmod-crypto-hmac *      kmod-crypto-md5 *       kmod-crypto-md4 *    
 * opkg_install_cmd: Cannot install package kmod-fs-cifs.
root@PINK:~# opkg install /tmp/123.ipk
Installing kmod-fs-cifs (3.18.20-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-cifs:
 *      kmod-crypto-arc4 *      kmod-crypto-hmac *      kmod-crypto-md5 *       kmod-crypto-md4 *    
 * opkg_install_cmd: Cannot install package kmod-fs-cifs.
root@PINK:~# opkg update
root@PINK:~# cd /opkg-list
-ash: cd: can't cd to /opkg-list
root@PINK:~# cd /opkg-list
-ash: cd: can't cd to /opkg-list
root@PINK:~# ls
root@PINK:~# cd /
root@PINK:/# cd /tmp
root@PINK:/tmp# cd /opkg-list
-ash: cd: can't cd to /opkg-list
root@PINK:/tmp# ls
TZ                extroot           log               opkg-lists        state
dhcp.leases       hosts             luci-indexcache   resolv.conf       sysinfo
dnsmasq.d         lib               luci-modulecache  resolv.conf.auto  usr
etc               lock              nmbd              run
root@PINK:/tmp# cd /opkg-lists
-ash: cd: can't cd to /opkg-lists
root@PINK:/tmp# cd /tmp/opkg-lists
root@PINK:/tmp/opkg-lists# ls
123.ipk                                    kmod-crypto-md4_3.18.20-1_kirkwood.ipk
kmod-crypto-arc4_3.18.20-1_kirkwood.ipk    kmod-crypto-md5_3.18.20-1_kirkwood.ipk
kmod-crypto-des_3.18.20-1_kirkwood.ipk     kmod-crypto-sha256_3.18.20-1_kirkwood.ipk
kmod-crypto-hmac_3.18.20-1_kirkwood.ipk
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-arc4_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-arc4 (3.18.20-1) to root...
Configuring kmod-crypto-arc4.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-des_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-des (3.18.20-1) to root...
Configuring kmod-crypto-des.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-hmac_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-hmac (3.18.20-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-crypto-hmac:
 *      kmod-crypto-manager *
 * opkg_install_cmd: Cannot install package kmod-crypto-hmac.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-manager_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-manager (3.18.20-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-crypto-manager:
 *      kmod-crypto-aead *      kmod-crypto-pcompress *
 * opkg_install_cmd: Cannot install package kmod-crypto-manager.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-aead_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-aead (3.18.20-1) to root...
Configuring kmod-crypto-aead.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-pcompress_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-pcompress (3.18.20-1) to root...
Configuring kmod-crypto-pcompress.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-manager_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-manager (3.18.20-1) to root...
Configuring kmod-crypto-manager.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-hmac_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-hmac (3.18.20-1) to root...
Configuring kmod-crypto-hmac.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-md4_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-md4 (3.18.20-1) to root...
Configuring kmod-crypto-md4.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-md5_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-md5 (3.18.20-1) to root...
Configuring kmod-crypto-md5.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-sha256_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-sha256 (3.18.20-1) to root...
Configuring kmod-crypto-sha256.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-fs-cifs_3.18.20-1_kirkwood.ipk
Installing kmod-fs-cifs (3.18.20-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-cifs:
 *      kmod-crypto-ecb *
 * opkg_install_cmd: Cannot install package kmod-fs-cifs.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-ecb_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-ecb (3.18.20-1) to root...
Configuring kmod-crypto-ecb.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-fs-cifs_3.18.20-1_kirkwood.ipk
Installing kmod-fs-cifs (3.18.20-1) to root...
Configuring kmod-fs-cifs.
root@PINK:/tmp/opkg-lists#
Using username "root".
root@192.168.44.121's password:


BusyBox v1.23.2 (2015-07-24 20:06:02 CEST) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 CHAOS CALMER (15.05, r46767)
 -----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
 -----------------------------------------------------
root@PINK:~# top n1
Mem: 48224K used, 77224K free, 484K shrd, 1900K buff, 29960K cached
CPU:   0% usr   0% sys   0% nic 100% idle   0% io   0% irq   0% sirq
Load average: 0.20 0.12 0.05 1/56 2620
  PID  PPID USER     STAT   VSZ %VSZ %CPU COMMAND
 2620  2615 root     R     1336   1%   0% top n1
 2601  2523 nobody   S     3392   3%   0% /usr/sbin/smbd -F
 2524     1 root     S     2868   2%   0% /usr/sbin/nmbd -F
 2523     1 root     S     2828   2%   0% /usr/sbin/smbd -F
 2312     1 root     S     1460   1%   0% /sbin/rpcd
 2475     1 root     S     1436   1%   0% /usr/sbin/uhttpd -f -h /www -r PINK -
 2344     1 root     S     1408   1%   0% /sbin/netifd
    1     0 root     S     1372   1%   0% /sbin/procd
 2605  2604 root     S     1340   1%   0% -ash
 2568     1 root     S     1340   1%   0% /usr/sbin/ntpd -n -S /usr/sbin/ntpd-h
 2615  2614 root     S     1340   1%   0% -ash
 2604  2412 root     S     1132   1%   0% /usr/sbin/dropbear -F -P /var/run/dro
 2614  2412 root     S     1116   1%   0% /usr/sbin/dropbear -F -P /var/run/dro
 2364     1 root     S     1084   1%   0% /usr/sbin/odhcpd
 2412     1 root     S     1048   1%   0% /usr/sbin/dropbear -F -P /var/run/dro
 2303     1 root     S      952   1%   0% /sbin/logd -S 16
 2527     1 nobody   S      880   1%   0% /usr/sbin/dnsmasq -C /var/etc/dnsmasq
 1265     1 root     S      804   1%   0% /sbin/ubusd
 1572     1 root     S      680   1%   0% /sbin/askfirst /bin/ash --login
    8     2 root     SW       0   0%   0% [kworker/u2:1]
root@PINK:~# opkg install /tmp/123.ipk
Installing kmod-fs-cifs (3.18.20-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-cifs:
 *      kmod-crypto-arc4 *      kmod-crypto-hmac *      kmod-crypto-md5 *       kmod-crypto-md4 *    
 * opkg_install_cmd: Cannot install package kmod-fs-cifs.
root@PINK:~# opkg install /tmp/123.ipk
Installing kmod-fs-cifs (3.18.20-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-cifs:
 *      kmod-crypto-arc4 *      kmod-crypto-hmac *      kmod-crypto-md5 *       kmod-crypto-md4 *    
 * opkg_install_cmd: Cannot install package kmod-fs-cifs.
root@PINK:~# opkg update
root@PINK:~# cd /opkg-list
-ash: cd: can't cd to /opkg-list
root@PINK:~# cd /opkg-list
-ash: cd: can't cd to /opkg-list
root@PINK:~# ls
root@PINK:~# cd /
root@PINK:/# cd /tmp
root@PINK:/tmp# cd /opkg-list
-ash: cd: can't cd to /opkg-list
root@PINK:/tmp# ls
TZ                extroot           log               opkg-lists        state
dhcp.leases       hosts             luci-indexcache   resolv.conf       sysinfo
dnsmasq.d         lib               luci-modulecache  resolv.conf.auto  usr
etc               lock              nmbd              run
root@PINK:/tmp# cd /opkg-lists
-ash: cd: can't cd to /opkg-lists
root@PINK:/tmp# cd /tmp/opkg-lists
root@PINK:/tmp/opkg-lists# ls
123.ipk                                    kmod-crypto-md4_3.18.20-1_kirkwood.ipk
kmod-crypto-arc4_3.18.20-1_kirkwood.ipk    kmod-crypto-md5_3.18.20-1_kirkwood.ipk
kmod-crypto-des_3.18.20-1_kirkwood.ipk     kmod-crypto-sha256_3.18.20-1_kirkwood.ipk
kmod-crypto-hmac_3.18.20-1_kirkwood.ipk
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-arc4_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-arc4 (3.18.20-1) to root...
Configuring kmod-crypto-arc4.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-des_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-des (3.18.20-1) to root...
Configuring kmod-crypto-des.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-hmac_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-hmac (3.18.20-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-crypto-hmac:
 *      kmod-crypto-manager *
 * opkg_install_cmd: Cannot install package kmod-crypto-hmac.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-manager_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-manager (3.18.20-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-crypto-manager:
 *      kmod-crypto-aead *      kmod-crypto-pcompress *
 * opkg_install_cmd: Cannot install package kmod-crypto-manager.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-aead_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-aead (3.18.20-1) to root...
Configuring kmod-crypto-aead.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-pcompress_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-pcompress (3.18.20-1) to root...
Configuring kmod-crypto-pcompress.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-manager_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-manager (3.18.20-1) to root...
Configuring kmod-crypto-manager.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-hmac_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-hmac (3.18.20-1) to root...
Configuring kmod-crypto-hmac.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-md4_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-md4 (3.18.20-1) to root...
Configuring kmod-crypto-md4.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-md5_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-md5 (3.18.20-1) to root...
Configuring kmod-crypto-md5.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-sha256_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-sha256 (3.18.20-1) to root...
Configuring kmod-crypto-sha256.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-fs-cifs_3.18.20-1_kirkwood.ipk
Installing kmod-fs-cifs (3.18.20-1) to root...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-cifs:
 *      kmod-crypto-ecb *
 * opkg_install_cmd: Cannot install package kmod-fs-cifs.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-crypto-ecb_3.18.20-1_kirkwood.ipk
Installing kmod-crypto-ecb (3.18.20-1) to root...
Configuring kmod-crypto-ecb.
root@PINK:/tmp/opkg-lists# opkg install /tmp/opkg-lists/kmod-fs-cifs_3.18.20-1_kirkwood.ipk
Installing kmod-fs-cifs (3.18.20-1) to root...
Configuring kmod-fs-cifs.
root@PINK:/tmp/opkg-lists# cd /
root@PINK:/# ls
bin      dev      init     mnt      proc     root     sys      usr      www
boot     etc      lib      overlay  rom      sbin     tmp      var
root@PINK:/# mount -t cifs -o \\192.168.44.1\Hotplug /mnt/win_share
mount: can't read '/etc/fstab': No such file or directory
root@PINK:/# mount -t cifs -o username=<username> \\192.168.44.1\Hotplug /mnt/win_share
mount: mounting \192.168.44.1Hotplug on /mnt/win_share failed: Invalid argument
root@PINK:/# mount -t cifs -o username=<username> //192.168.44.1/Hotplug /mnt/win_share
mount: mounting //192.168.44.1/Hotplug on /mnt/win_share failed: Permission denied
root@PINK:/# mount -t cifs -o username=<username>,<mypass>=i  //192.168.44.1/Hotplug /mnt/win_share
root@PINK:/#

Success using this Guide, after installing all packages and dependencies.


To make it persistent across reboots:

/etc/rc.local

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
mount -t cifs -o username=<yourusernam>,password=<yourpassword>  //ur.ip.to.share/<ShareName> /mnt/<Share>
exit 0

I was able also able to add this </mnt/win_share> into my Samba.



Hi Bill!
I will look in to this thank you!
This homework might take some time but I will report back.

:wink:

Somon