linux
linux copied to clipboard
Cannot mount CIFS ver=1.0 on 6.1.4-x64v1-xanmod1
Ever since Xanmod Kernel 6.1.1, I have been unable to mount SMB shares using ver=1.0. I can confirm this is also broken for the latest kernel: 6.1.4-x64v1-xanmod1.
My /etc/fstab:
//10.0.0.160/video /media/nsa320/video cifs nofail,guest,uid=1000,iocharset=utf8,vers=1.0 0 0
Error message when trying to mount:
$ sudo mount -a mount error(20): Not a directory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Here is the dmesg output:
[ 403.224309] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers [ 403.224312] CIFS: Attempting to mount \10.0.0.160\video [ 403.257170] CIFS: VFS: bogus file nlink value 0 [ 403.261479] Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
I can confirm that Xanmod Kernel 6.0.12 can mount CIFS ver=1.0 no problem. The dmesg output of a successful mount is identical except for this, which is the true error:
[ 403.257170] CIFS: VFS: bogus file nlink value 0
I do not have another SMB share with a version higher than ver=1.0 so I cannot confirm whether just CIFS ver=1.0 is broken or if all versions of CIFS mounting is broken.