Samba volume mount fails

opensuse v13.2

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.

Here is a mount entry:

//sma-nas-02/pub-data /t-smb cifs credentials=/home/sma-user2/.smb/.smbpw,uid=sma-user4,gid=users,file_mode=0664,dir_mode=0775,noserverino,noperm 0 0

And the resulting attempt to mount it:

$ mount --verbose /t-smb
mount: failed to parse mount options

Hmm. AFAICT all of the entries a valid and correct. Which options are not?

Encase it in " "'s.


//sma-nas-02/pub-data /t-smb cifs "credentials=/home/sma-user2/.smb/.smbpw,uid=sma-user4,gid=users,file_mode=0664,dir_mode=0775,noserverino,noperm" 0 0

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!

I use it to debug issues when there’s an fstab error - usually it blurts out more meaningful messages that way :wink: