Ubuntu 17.10 - CIFS Mount Error Code -5
All of a sudden a CIFS mount point stopped working. Probably after a kernel update, according to sources. Syslog got this:
$ grep cifs /var/log/syslog
Dec 28 09:56:12 hostname kernel: [141586.846065] CIFS VFS: cifs_mount failed w/return code = -5
Turns out Samba now defaults to version 3 of protocol but the old server I connect to doesn't support it.
Just add vers=2.1 to the options and it is back working.
On the command line:
sudo mount -v -t cifs //server/mount$ /dir/dir -o credentials=/etc/samba/credentials,vers=2.1
In fstab:
//server/mount$ /dir/dir cifs uid=user,gid=user,credentials=/etc/samba/credentials,vers=2.1 0 0
Reference.
$ grep cifs /var/log/syslog
Dec 28 09:56:12 hostname kernel: [141586.846065] CIFS VFS: cifs_mount failed w/return code = -5
Not really helpful, could be few different things.
Just add vers=2.1 to the options and it is back working.
On the command line:
sudo mount -v -t cifs //server/mount$ /dir/dir -o credentials=/etc/samba/credentials,vers=2.1
In fstab:
//server/mount$ /dir/dir cifs uid=user,gid=user,credentials=/etc/samba/credentials,vers=2.1 0 0
Reference.
Comments
Post a Comment