I just upgraded my file server from 16.04 to 20.04 and everything seems to be working except for my SMB mounts on my Ubuntu computer.I can access the SMB shares on my Windows computer but on my Ubuntu 18.04 computer I can't get the shares mounted in fstab.
If I mount the shares from the command line (command below) it is mounted just fine.
sudo mount -t cifs -o username=username,vers=3.0 //192.168.1.116/Share /mnt/Share/
However when I try to mount the share in fstab (command below) the smb share is not mounted.
//192.168.1.116/Share /mnt/Share cifs credentials=/home/user/.smbcredentials,vers=3.0,iocharset=utf8,sec=ntlmssp 0 0
After doing a sudo mount -a
and trying a ls
I get:
ls: cannot access 'Share': Operation not supported
and when I do a smbclient -L //192.168.1.116
I get:
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE
Update:
When I do a
sudo mount -t cifs -o credentials=/home/user/.smbcredentials,vers=3.0,iocharset=utf8,sec=ntlmssp //192.168.1.116/Share /mnt/Share/
The SMB share is mounted properly.
When I do a
smbclient -L //192.168.1.116 -d 0
I get the same result:
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE.
dmesg -t | grep -e CIFS
returns:
CIFS VFS: cifs_mount failed w/return code = -95
When I check dmesg with the debug turned on I get a lot of:
/build/linux-Dh1oQA/linux-4.4.0/fs/cifs/cifsfs.c: CIFS VFS: incifs_statfs as Xid: 9405245 with uid: 1000
/build/linux-Dh1oQA/linux-4.4.0/fs/cifs/cifsfs.c: CIFS VFS: leavingcifs_statfs (xid = 9405245) rc = -95
/build/linux-Dh1oQA/linux-4.4.0/fs/cifs/inode.c: CIFS VFS: incifs_revalidate_dentry_attr as Xid: 9405247 with uid: 1000
/build/linux-Dh1oQA/linux-4.4.0/fs/cifs/inode.c: CIFS VFS: leavingcifs_revalidate_dentry_attr (xid = 9405247) rc = -95