Cifs "mount error 5 = Input/output error" but smbfs works!
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Cifs "mount error 5 = Input/output error" but smbfs works!
I can't mount cifs share, but smbfs works fine with same credentials.
Code:
mount -t cifs //hostname/backup /mnt/hostname/backup/
Password:
mount error 5 = Input/output error
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
The username and password I'm using are correct since I can mount via smbfs this way.
I haven't had much luck on the web, saw some things about matching hostname/ip resolution but my resolution is fine and matching.
Any ideas?
Last edited by humbletech99; 04-17-2008 at 03:09 AM.
Click here to see the post LQ members have rated as the most helpful post in this thread.
this isn't the problem, it's a cifs thing, the parameters are correctly done in the same fashion as smbfs, which I do all the time. If I use the same line with smbfs it mounts fine, but smbfs misses file listings, that's why I'm using the more reliable cifs, it I can get the dang thing to mount in the first place...
I got the same error:
mount error 5 = Input/output error
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
if I use a host name. In my case, if I use a one defined by DNS.
If I use the IP address of the server, I got no problem and mount command succeeds
Hi there. I solved this problem by checking my cifspw file, and making sure the domain name was correct. I haven't tried doing it with the server's name, only with the ip, but regardless, i think this problem is more an access denied problem instead of a network name problem.
Hope this helps. I'll reply when i try it with the name, the same way.
oh this is old now, I can't remember what is was, but I think it may have been caused by some older samba servers (2.x series) that didn't support the newer cifs protocol...
The error message could have been a bit more helpful I have to say...
Last edited by humbletech99; 04-17-2008 at 03:09 AM.
I had the same issue when trying to mount over a ssh tunnel, and used 'localhost'. Using the IP address (or 127.0.0.1) over the DNS name worked fine for me.
Ok, glad you solved it, my issue was to due with the protocol not being supported instead on older 2.x samba servers. Like I said, the error message could have been more helpful...
I'm now getting this problem as well, if anyone can help. Everything was working fine until 3 days ago, then all of a sudden I started getting this error. I had fixed it two nights ago, but I have no idea how, and now it's returned. Everything is configured right on the server end but I still get the I/O error.
Code:
joshua@zeus-001:~$ sudo mount -t cifs -o username=nobody //192.168.0.200/raid /mnt/fileserver
[sudo] password for joshua:
Password:
mount error 5 = Input/output error
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
This is what worked perfectly fine the other day. It's the same with either cifs or smbfs.
I am facing problem on mounting windows shared directory in my Suse Linux Server-10.
I have been through lots of threads in forum but all nothing worked for me.
This is my command to mount mount --verbose -t cifs -o username=userid%passwd //192.168.0.103/Domestic/results /data/results/domestic
And the error is
mount error 5 = Input/output error
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
here is some more info
cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
Error while fire smbclient command smbclient //192.168.0.103/Domestic/results -U results
Password:
Domain=[RD-GROUP] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Server 2003 5.2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
The whole problem was with the "bkpsrv", because the real hostname is "backupserver", but to shorten commands, I created the entry at /etc/hosts as "bkpsrv".
When I changed /etc/hosts and /etc/fstab to "backupserver", it mounted just fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.