(A continuation of thread https://forums.opensuse.org/showthread.php/538205-Can-no-longer-mount-SMB-volumes)
There was a system update on 2019-11-09 which included a lot of samba updates. Since then, mounting two SMB volumes at boot time is hit or miss, about 50/50 chance, that one or both volumes do not mount. If the mount fails, it will never succeed until, maybe, during a reboot.
The SMB volumes had mounted reliably for years.
Here’s what I know.
Without the version option:
$ sudo mount /t-smb
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Journal:
2019-11-16T14:20:03-0700 sma-station14l kernel: CIFS: Attempting to mount //sma-nas-02/pub-data
2019-11-16T14:20:03-0700 sma-station14l kernel: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
2019-11-16T14:20:10-0700 sma-station14l kernel: CIFS VFS: Error connecting to socket. Aborting operation.
2019-11-16T14:20:10-0700 sma-station14l kernel: CIFS VFS: cifs_mount failed w/return code = -2
I tried adding “-o vers=X.0” to the mount command, where X = 1, 2, or 3. Same result for all versions.
$ sudo mount /t-smb -o vers=2.0
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
In the system journal:
2019-11-16T14:17:49-0700 sma-station14l kernel: CIFS: Attempting to mount //sma-nas-02/pub-data
2019-11-16T14:17:55-0700 sma-station14l kernel: CIFS VFS: Error connecting to socket. Aborting operation.
2019-11-16T14:17:55-0700 sma-station14l kernel: CIFS VFS: cifs_mount failed w/return code = -2
In /etc/fstab:
//sma-nas-02/pub-data /t-smb cifs credentials=/home/jmoe/.smb/.smbpw,uid=sma-user4,gid=users,file_mode=0664,dir_mode=0775,noserverino,noperm 0 0
//sma-nas-02/graphics /w-smb cifs credentials=/home/jmoe/.smb/.smbpw,uid=sma-user4,gid=users,file_mode=0664,dir_mode=0775,noserverino,noperm 0 0