from my CentOS 5 box I am attempting to connect to a Windows smb share to move some data around. So I am trying to use this command:
sudo mount -t cifs -o username=accountname,password=password //bkupserver/e\$ /tmp/logs
which fails with this error:
mount: wrong fs type, bad option, bad superblock on //bkupserver/e$,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
So I tail my logs, which produce this output:
Nov 26 19:21:40 qatest-srv kernel: CIFS VFS: cifs_mount failed w/return code = -22
Nov 26 19:24:29 qatest-srv kernel:last message repeated 2 times
Nov 26 19:50:02 qatest-srv kernel: CIFS VFS: cifs_mount failed w/return code = -22
I viewed the documentation that I found here:
However none of that works, as I am not going to write a script to edit my fstab, mount a volume, copy content, then unmount, then unedit my fstab file for 85 servers. That's ridiculous. So that documentation doesn't help.
What am I missing here. I noted with quite some disappointment that smbmount is now deprecated and no longer in the yum repositories. Thankfully my Ubuntu machines still have it in their repository so they can all connect to the share perfectly.