I have a existing 16.04 VM with the line below in /etc/fstab and it is working. Same exact line in 18.04 results in the error below. What is wrong here, I thought this would be easy to copy?
Code:
//192.168.100.123/freenas /mnt/freenas cifs credentials=/home/myuser/freenaspasswords,vers=3.0,iocharset=utf8,sec=ntlm,uid=myuser 0 0
Code:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
/mnt/freena exists and the password file exists with same contents and permissions as on the other server. So switching things up a little I try this;
Code:
//192.168.100.123/freenas /mnt/freenas cifs username=username,password=password,iocharset=utf8,sec=ntlm 0 0
Same error. I originally used this page to put the commands together on the first server, which worked.
https://wiki.ubuntu.com/MountWindowsSharesPermanently
I can see the old server is cifs version (2:6.4-1ubuntu1.1) and the new one is version (2:6.8-1). I used "sudo apt-get install cifs-utils" to get cifs on the new server.