Joined: 04 Aug 2018 Posts: 1447 Location: Appalachian mountains, USA
Posted: Thu Mar 28, 2024 18:43 Post subject: linux client mount command needed for samba in k6.1 builds
I'm on a WRT1900ACSv2 running build 55416, my first attempt with a k6.1 kernel. I've been reading the many reports of samba issues in the new-build threads, and it seems that samba works for some people from some systems while failing for many others. So this is me begging for a clear report from anyone who is succeeding in mounting an ext2 USB share from a linux client.
On my linux (mint/cinnamon) client this has worked as root for some years, across a long succession of k4.9 builds and client kernels (with the "vers" evolving over time, here and in dd-wrt), but it fails here (client kernel 5.15.0-101-generic) with "mount error(13): Permission denied":
mount -vt cifs -o vers=3.11,username=shareUser,password=shareUserPass,uid=clientUser,gid=clientGroup,file_mode=0660,dir_mode=0770,rw \ //192.168.1.1/shareName /mnt/mountPoint
The outcome is the same if I strip it down to basics, omitting the vers, uid, gid, file_mode, dir_mode, and rw options. Going into the GUI and marking the share public changes nothing, and if at that point I omit the username and password arguments, I get prompted for a password (for a public share). I did try stopping and starting the samba3 service, but it makes no difference.
Does anyone have a functioning client mount command? _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
You could also use sshfs (this is what I use), which works pretty darn good, is a lot faster than Samba, with much better permissions support (like NFS). _________________ Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only
Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port
Linksys EA8500 WDS Station x2 - DD-WRT r55799
Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779
OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.
Joined: 04 Aug 2018 Posts: 1447 Location: Appalachian mountains, USA
Posted: Thu Mar 28, 2024 22:41 Post subject:
Thanks much, guys. I have some experimenting to do! _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
Joined: 04 Aug 2018 Posts: 1447 Location: Appalachian mountains, USA
Posted: Sat Apr 06, 2024 16:53 Post subject:
Update:
Upgraded to 55630 after seeing claims that SMB was fixed.
Same problems exactly, so samba3 is not fixed, at least not for linux.
Switched to NFS.
After unmounting on the client, I normally unmount the USB drive on the router as well. Turns out there is no way for it not to be "busy" even when the NFS share is properly unmounted on the client, so the standard USB umount will not work. Have to do "umount -l /dev/sda1" (that's a lowercase L) on the router, which does the job per "df".
I've not used the "-l" for "lazy unmount" before, but I don't believe it should be needed here. If you see an issue in doing things this way, let me know! _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.