I had the “opportunity” to rebuild a system. Mostly it has been restored very quickly and easily. One aspect that has me stumped is mounting two remote volumes using Samba. The previous system had no problem mounting the volumes, and I have copied the <fstab> entries from the old file to the new one verbatim.
OK, added the double quote marks. That gave me a different error.
$ mount -v /t-smb
bad option uid="sma-user4"
That vague response implied (couldn’t just say what the actual problem was, oh no) that the user did not exist, which is true. After creating the user, a different set of errors occurred.
$ mount -v /t-smb
Password for sma-user2@//sma-nas-02/pub-data: *********
mount.cifs kernel mount options: ip=192.168.69.245,unc=\\sma-nas-02\pub-data,"credentials=/home/sma-user2/.smb/.smbpw,file_mode=0664,dir_mode=0775,noserverino,noperm",uid=1001,gid=100,user=sma-user2,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Which was solved by removing the double quote marks. Sheesh!