LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mount.cifs does not support option "vers" (although man mentions it) (https://www.linuxquestions.org/questions/slackware-14/mount-cifs-does-not-support-option-vers-although-man-mentions-it-4175618146/)

simopal6 11-22-2017 05:37 AM

mount.cifs does not support option "vers" (although man mentions it)
 
Hi everyone,
on a new 14.2 installation, I found that mounting a CIFS share with the "vers" option (in particular, "vers=3.0", which should be allowed according to "man mount.cifs") returns the following error:

Code:

mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Is this a bug? Can anyone reproduce it?

Cesare 11-22-2017 07:17 AM

"mount" probably supports "vers", but the Slackware 14.2 default kernel doesn't have support for anything but CIFS v1. In order to use CIFS v2 or v3 with Slackware 14.2 you need to recompile the kernel with CONFIG_CIFS_SMB2 set (in Slackware current it's been available for a few months).

kjhambrick 11-22-2017 08:29 AM

Thanks for the heads up Cesare

-- kjh

bryanl 11-22-2017 11:37 AM

I ran into this one with autofs mounts. The Ubuntu upgrade from 17.04 to 17.10 killed my NAS access and the culprit was related to what Cesare noted I think. I had to add a 'vers=1.0' to my mount options to get things back in order. (perhaps I need to upgrade my ancient NAS?? ;-)


All times are GMT -5. The time now is 02:02 AM.