Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-21-2006, 07:36 AM
|
#1
|
|
Member
Registered: Jun 2005
Posts: 374
Rep:
|
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.
|
|
|
|
06-21-2006, 09:13 AM
|
#2
|
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
I normally do something along the lines of;
Code:
mount -t cifs //<IP_address_here>/<Share_here> /the/mountpoint -o,user=myusername%mypassword
Example;
mount -t cifs //192.168.1.100/Laserfiche /mnt/Desktop -o,user=lenard%letmein
or (keeping the same example in mind);
Code:
mount -t cifs //192.168.1.100/Laserfiche /mnt/Desktop -o credentials=/path/to/the/credentials.txt_file -rw
Example (cifs) credentials.txt_file;
username=myusername
password=mypassword
Which a little different from the smbfs credentials file format, notice the no spaces for cifs vs smbfs;
Example (smbfs) credentials.txt_file;
username = myusername
password = mypassword
|
|
|
|
06-21-2006, 10:21 AM
|
#3
|
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
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...
|
|
|
|
03-23-2007, 09:34 PM
|
#4
|
|
LQ Newbie
Registered: Mar 2007
Posts: 1
Rep:
|
Server Name vs Server IP
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
|
|
|
|
12-04-2007, 08:00 PM
|
#5
|
|
Member
Registered: Feb 2005
Location: Costa Rica
Distribution: Ubuntu, gOS, Debian & Slack 12
Posts: 426
Rep:
|
Quote:
Originally Posted by alanrr
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.
|
|
|
|
04-16-2008, 01:25 PM
|
#6
|
|
LQ Newbie
Registered: Oct 2002
Location: Philadelphia,PA
Distribution: Suse ES9 AMD64
Posts: 18
Rep:
|
Had the same problem for a while... Check syntax on your cifs connection, I had a colon stuck in the string which gave the same error reported here
//<SERVER IP HERE>/<Share>
not
//<SERVER IP HERE>:/<Share>
|
|
|
|
04-17-2008, 03:08 AM
|
#7
|
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
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.
|
|
|
|
10-09-2008, 03:29 PM
|
#8
|
|
LQ Newbie
Registered: Oct 2008
Posts: 3
Rep:
|
DNS is definitely it
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.
|
|
|
|
10-09-2008, 03:51 PM
|
#9
|
|
Member
Registered: Jun 2005
Posts: 374
Original Poster
Rep:
|
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...
|
|
|
|
12-25-2008, 09:58 AM
|
#10
|
|
LQ Newbie
Registered: Sep 2008
Posts: 24
Rep:
|
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.
|
|
|
|
01-19-2010, 01:49 AM
|
#11
|
|
LQ Newbie
Registered: Jan 2010
Posts: 2
Rep:
|
Cifs "mount error 5 = Input/output error
Hi All,
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
Result of cat /proc/fs/cifs/ExtendedSecurity
0
cat /proc/fs/cifs/LinuxExtensionsEnabled
0
|
|
|
|
03-11-2012, 12:05 PM
|
#12
|
|
Member
Registered: Jul 2004
Distribution: RHEL 6.2
Posts: 35
Rep:
|
Hi everyone,
I know this is a very old thread, but I just had the same problem today, and I found out the reason.
I was trying to mount with CIFS and the result was:
Code:
~]# mount /mnt/backup/
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
and the fstab was:
Code:
//bkpsrv/share /mnt/backup cifs credentials=XXX,uid=YYY 0 0
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.
Cheers,
Juliano
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:45 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|