Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 5450  / 2 Years ago, mon, october 3, 2022, 1:01:26

Just upgraded my Ubuntu Server to 13.04, and the existing and working fstab configuration for a cifs mount is failing with the generic -22 error (invalid argument):



12:38 PM wesley at wsrv cwd ~
$ sudo mount /Volumes/Storage/
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


This is the line at /etc/fstab:



//10.0.0.1/Storage      /Volumes/Storage        cifs    uid=1000,gid=1000,user=wesley,password=[hidden]       0       0


The server is an Airport Extreme, other machines connect to it fine currently.



This was working fine on 12.10.


More From » upgrade

 Answers
5

I have found a solution. Add the option sec=ntlm - this works both in a manual mount and from fstab



The fstab entry is now -



# Network USB Drive - ie the USB Flash Drive connected to the Modem
//192.168.0.1/USB /home/user/USB cifs sec=ntlm,uid=1000,gid=1000,guest,_netdev 0 0


Based with Thanks from http://ubuntuforums.org/showthread.php?t=2139090


[#31147] Wednesday, October 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ledeball

Total Points: 434
Total Questions: 121
Total Answers: 120

Location: Antigua and Barbuda
Member since Sat, Apr 24, 2021
3 Years ago
;