Posted: Sun Dec 03, 2023 1:20 Post subject: NAS issues with new kernel
Operating System Linux Mint 21.2
Linux Kernel 6.2.0-37-generic
Router Netgear XR500
Kernel 4.9 upgraded to Kernel 6.1
Samba share is an SSD formatted using GParted with ext4 using egc’s NAS guide.
I am able to use the Samba share on my router with no problem with 4.9 kernel (r53562) but with kernel 6.1 (r54248), I can see but not log into Samba share with either anonymous or registered user. So what changed between the two kernels that would prevent anonymous or registered uses from logging into the Samba share?
Of note: Samba share is accessible with Windows 11.
I am not a power user when it comes to Linux. I can get around the GUI and I can copy and paste command lines but that is about it. Any help would be greatly appreciated. _________________ Netgear XR500 - Gateway
R6700 v3 - Station Bridge
I would guess that your Linux Mint is using the wrong SMB protocol. Try mounting your NAS from the Linux Mint command line. Something like this:
Code:
mount -t cifs -o username=username,password=password,vers=3.0 //IP-Address-of-Router/share /mnt/mountname
vers= can also be 1.0, 2.0, etc. _________________ Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate, gcc
Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port, multiple VAPs
Linksys EA8500 WDS Station x2 - DD-WRT r53562
OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.
Thank you for the reply. I have always had Minimum Protocol Version set at 3.0 and Maximum Protocol Version at 3.11 under Services/NAS tab with my router running on kernel 4.9. I did not change it when I upgrade my router to kernel 6.1. I have made not changes to my computers. Like I said, I am not good with command lines. The name of the share drive is “Data” and the name of the folder is “public”. I tried:
mount -t cifs -o username=xxxx,password=xxxxxx,vers=3.0 //192.168.x.xx/Data /public
it returns: Couldn't chdir to /public: No such file or directory
and yet, the folder exists. _________________ Netgear XR500 - Gateway
R6700 v3 - Station Bridge
Thank you for the confirmation. Somehow Samba login broke for Linuxmint between kernel 4.9 and 6.1. Maybe a new version of Samba? Maybe the Gurus can compare the differences between the servers. _________________ Netgear XR500 - Gateway
R6700 v3 - Station Bridge
Joined: 05 Oct 2008 Posts: 663 Location: Helsinki, Finland / nr. Alkmaar, Netherlands
Posted: Sun Dec 03, 2023 19:41 Post subject:
My XR500 currently runs on dd-wrt 54248
Minimum & maximum SMB protocol 3.11
Access level Everyone
No encryption
A 2 GB thumbdrive with 3 partitions: jffs, optware and swap.
My Intel NUC desktop was installed in spring this year and kept updated:
Linux Mint Debian Edition (LMDE 6?)
System drive (SSD) in BTRFS
AFAIK I haven't changed /etc/samba/smb.conf. It doesn't seem to contain a version setting.
xxxxx@NUC10i5:~$ cat /proc/version
Linux version 6.1.0-13-amd64 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29)
xxxxx@NUC10i5:~$ uname -a
Linux NUC10i5 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux
xxxxx@NUC10i5:~$
Both jffs and optware are defined in dd-wrt as public samba shares and get mounted from the NUC desktop GUI. Both read and write on the desktop work as expected.
Everything about samba seems OK here.
If you want me to check something in particular, I can post the results here.
I'm using Linux Mint 21.2 Cinnamon Kernal 6.2.0-37-generic so we are, technically, not running the same OS. Mine is based on Ubuntu which is based on Debian. Yours is based on Debian. My /opt partition mounts just fine on both 4.9 and 6.1 kernels but my data partition (public) login fails on kernel 6.1 for some reason. If I go back to r53562 everything is good. I am not changing any settings. _________________ Netgear XR500 - Gateway
R6700 v3 - Station Bridge
After not seeing NAS listed under auto-label of Network for some reason, I manually 'Map a Network Drive' in Widows using \\server\share and can see the NAS again.
After not seeing NAS listed under auto-label of Network for some reason, I manually 'Map a Network Drive' in Widows using \\server\share and can see the NAS again.
In case it may be helpful. See pic.
Thank you. Actually, my NAS works perfectly with Windows 11. It is just with Linux Mint Cinnamon that I am having issues logging in. Note: I can see the NAS on my network, I can just not log in. _________________ Netgear XR500 - Gateway
R6700 v3 - Station Bridge