NAS issues with new kernel

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
strange
DD-WRT User


Joined: 18 Jun 2006
Posts: 229

PostPosted: Sun Dec 03, 2023 1:20    Post subject: NAS issues with new kernel Reply with quote
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
Sponsor
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1058
Location: WV, USA

PostPosted: Sun Dec 03, 2023 3:52    Post subject: Reply with quote
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
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55779

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.

Forum member #248
strange
DD-WRT User


Joined: 18 Jun 2006
Posts: 229

PostPosted: Sun Dec 03, 2023 6:26    Post subject: Reply with quote
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
stalonge
DD-WRT Guru


Joined: 21 Jul 2006
Posts: 1898
Location: Fortaleza Ce Brazil

PostPosted: Sun Dec 03, 2023 11:20    Post subject: Reply with quote
same here .. R7800 #54389 Linuxmint 21
_________________
DDwrt ...it rocks ....

1 R7800 54420 AP Wireguard webserver JFFS SAMBA FTP usb HD Mesh
1 R7800 54420 Cli Mesh
1 WZR1750 54389 AP Webserver Samba Wireguard
1 TP link Archer C7v5 54420 Cli Mesh
1 DD x86_64 48296 Gateway Samba Ftp Webserver
strange
DD-WRT User


Joined: 18 Jun 2006
Posts: 229

PostPosted: Sun Dec 03, 2023 17:30    Post subject: Reply with quote
stalonge wrote:
same here .. R7800 #54389 Linuxmint 21


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
ArjenR49
DD-WRT Guru


Joined: 05 Oct 2008
Posts: 666
Location: Helsinki, Finland / nr. Alkmaar, Netherlands

PostPosted: Sun Dec 03, 2023 19:41    Post subject: Reply with quote
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.
strange
DD-WRT User


Joined: 18 Jun 2006
Posts: 229

PostPosted: Sun Dec 03, 2023 20:20    Post subject: Reply with quote
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
stalonge
DD-WRT Guru


Joined: 21 Jul 2006
Posts: 1898
Location: Fortaleza Ce Brazil

PostPosted: Mon Dec 04, 2023 9:01    Post subject: Reply with quote
guys

it dont work for me . althought if i try using ftp file share it runs .


linuxmint 21

R7800 .. same settings for years ( working fine )

PS : i try linuxmint with kernel 6.21 and 5.15 ... Samba no sucess

Very Happy Very Happy

_________________
DDwrt ...it rocks ....

1 R7800 54420 AP Wireguard webserver JFFS SAMBA FTP usb HD Mesh
1 R7800 54420 Cli Mesh
1 WZR1750 54389 AP Webserver Samba Wireguard
1 TP link Archer C7v5 54420 Cli Mesh
1 DD x86_64 48296 Gateway Samba Ftp Webserver
D.F.Cruizer
DD-WRT User


Joined: 14 May 2023
Posts: 95

PostPosted: Tue Dec 05, 2023 11:47    Post subject: Reply with quote
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.
strange
DD-WRT User


Joined: 18 Jun 2006
Posts: 229

PostPosted: Tue Dec 05, 2023 15:29    Post subject: Reply with quote
D.F.Cruizer wrote:
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
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum