0

As this is a very basic topic, I have read many documentation about it online and none of them seems to work, I have tried several ways but I want to know if anybody has been successful with this so far.

So here's my fstab entry:

//AAAAAA/BBBBBB/CCCCC /backup cifs iocharset=utf8,credentials=/home/XXXXX/.smbcredentials  0  0

I'm getting:

mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

And I am sure the credentials are correct because when I change it I get a permission error.

Again, I have tried several changes including sec=ntlm, gid, etc., but didn't solve it for me.

Eric Carvalho
  • 54,385
user2629636
  • 101
  • 2
  • 6
  • Did you try changing the iocharset to iso-8859-1? – Deryck Jul 04 '14 at 17:16
  • I just did, here's the result:

    mount error(79): Can not access a needed shared library Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

    – user2629636 Jul 04 '14 at 17:19
  • try cp1251 instead – Deryck Jul 04 '14 at 17:28
  • 1
    seems like the majority of the interwebz find this to be a hostname issue. make sure you type it exactly as it is from the server I guess lol: http://www.linuxquestions.org/questions/linux-networking-3/cifs-mount-error-5-%3D-input-output-error-but-smbfs-works-456897/ – Deryck Jul 04 '14 at 17:39
  • Nope, no issues with hostname as well, same issue with IP address as well, used several different "sec" options as well. – user2629636 Jul 05 '14 at 19:45
  • did you happen to try smbfs instead of cifs? – Deryck Jul 06 '14 at 02:29

2 Answers2

1

The sec=ntlm solves it for me:

... -o sec=ntlm,username=...

Learned from:

http://www.linuxquestions.org/questions/linux-networking-3/cifs-mount-error-5-%3D-input-output-error-but-smbfs-works-456897/#post5042181

Eric Carvalho
  • 54,385
Dino
  • 11
0

There is a bug in kernel 3.13.0.36-generic. Check your version.

# kernel version    
uname -a

See http://www.mail-archive.com/ubuntu-bugs@lists.ubuntu.com/msg4499055.html

See Set "older" kernel as default grub entry for temporary solution.