You are not logged in.

#1 2022-04-24 09:36:08

kaiserkueche
Member
Registered: 2021-09-14
Posts: 22

[SOLVED] "Too many symbolic links" when mounting NAS server with cifs

Hello, so since a few weeks I can't mount my NAS server anymore. I usually use my little script that connect me to my vpn with openvpn and then mounts the folders I need with

sudo mount -t cifs -o uid=*myUid*,username=*myUser*,password=*myPass* //*myNasIP*/Folder/ /mnt/nas/Folder/

I haven't changed this script and the vpn config since a while and the problem happened suddenly, I don't know if it's linked with kernel updates, vpn config, or just something else.

When my vpn is started, I can sucessfully ping my NasID but can't ping normal internet sites like google. Weirdly, I can keep on having a discord call for example, so I don't really understand how my vpn works, but I do remember that this was the case before my mount problem, so maybe it is another issue that has nothing to do.

Here is the message I get when I try to mount it:

mount: /mnt/nas/music: mount(2) system call failed: Too many levels of symbolic links.
       dmesg(1) may have more information after failed mount system call.

And my dmesg:

[  632.809759] CIFS: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3.1.1), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3.1.1 (or even SMB3 or SMB2.1) specify vers=1.0 on mount.
[  632.809761] CIFS: Attempting to mount \\10.8.0.1\Music
[  635.717182] CIFS: VFS: cifs_mount failed w/return code = -40

I run arch all up to date on a Asus Vivobook pro N552VW laptop.

I tried searching on several forums but never found an answer so I'm posting the issue here. Thank you in advance for your help, I am not especially a newbie but I don't understand anything about network config and vpn.

Last edited by kaiserkueche (2022-04-24 18:08:36)

Offline

#2 2022-04-24 10:32:29

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] "Too many symbolic links" when mounting NAS server with cifs

Try mounting with 'nounix'.


sys2064

Offline

#3 2022-04-24 10:45:40

ua4000
Member
Registered: 2015-10-14
Posts: 420

Re: [SOLVED] "Too many symbolic links" when mounting NAS server with cifs

[SOLVED] CIFS mounting problems with kernel 5.17.1 https://bbs.archlinux.org/viewtopic.php?id=275262

Offline

#4 2022-04-24 15:37:07

kaiserkueche
Member
Registered: 2021-09-14
Posts: 22

Re: [SOLVED] "Too many symbolic links" when mounting NAS server with cifs

@Maniaxx I tried adding '-o nounix' to my list of options but it didn't change anything

Offline

#5 2022-04-24 17:55:15

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] "Too many symbolic links" when mounting NAS server with cifs

'vers=2.1' could be tested as well. A quick wireshark log could be done here as well (not sure if helpful though).
Look up the server logs (maybe raise verbosity). The error could be a red herring.
Create a new share with no files.
Look up the NAS support forum. You're maybe not alone.

Last edited by Maniaxx (2022-04-24 17:55:57)


sys2064

Offline

#6 2022-04-24 18:07:09

kaiserkueche
Member
Registered: 2021-09-14
Posts: 22

Re: [SOLVED] "Too many symbolic links" when mounting NAS server with cifs

Okay, so I checked the post you sent me, @UA4000, and it worked.

[SOLVED] CIFS mounting problems with kernel 5.17.1 https://bbs.archlinux.org/viewtopic.php?id=275262

I disabled this setting on the NAS' side:

"Control Panel -> File services -> SMB -> Advanced Settings -> Enable MSDFS VFS module"

Thank you for your help! I'm going to put this solved.

Offline

Board footer

Powered by FluxBB