I have a valid, reachable SMB share on my Windows box, which I can mount with
sudo mount -t cifs //192.168.0.9/C /mnt/WinC -o username=foo,password=bar
but isn't mountable from my fstab. The fstab entry reads
//192.168.0.9 /mnt/WinC credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
and the credentials file (which has 777 permissions while I get this working) contains
username=foo
password=bar
but sudo mount -a results in an error, which from a dmesg | tail, shows
[225040.991705] CIFS VFS: No username specified
[225050.991721] CIFS VFS: cifs_mount failed w/return code = -22
Anyone else seen this issue and managed to resolve it?