LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 08-24-2004, 09:08 AM   #1
DiZi
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Rep: Reputation: 0
"/usr/bin/ls: reading directory .: Input/output error"


Hey, ive got this wierd problem, running Kernelversion 2.6.7 on Slackware 10.0

i get "/usr/bin/ls: reading directory .: Input/output error"
when im trying "ls" on the share.

Please help me
 
Old 08-24-2004, 09:09 AM   #2
DiZi
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Oh, and im using a NFS share. Tried to reboot the NFS-server and remounting and such. Works on all the other machines using this server.
 
Old 08-24-2004, 12:14 PM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
I have no problem with mount nfs share point with a fstab line as :

10.0.0.10:/shared /mnt/net nfs rw,sync,noauto,user,rsize=8192,timeo=14,wsize=8192,intr 0 0

It may be a permission problem also
 
Old 08-24-2004, 12:38 PM   #4
DiZi
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Im gonna try that since it works fine on all other computers linked to the NFS server.
 
Old 08-24-2004, 01:00 PM   #5
DiZi
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Fuck, no error anymore. The SSH just hangs instead, fucking shit
 
Old 08-24-2004, 01:06 PM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
If ssh hang it may be a netfilter problem ? Or are you sure that sshd is running in the server ?
 
Old 08-24-2004, 01:10 PM   #7
DiZi
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Sorry, what i meant was that the whole "ls" hung up when i tried...
 
Old 08-24-2004, 01:15 PM   #8
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
I don't get it, you talk about nfs share and now ssh... Could you post your entire commands session that leads you to this error ?
 
Old 08-24-2004, 01:23 PM   #9
DiZi
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
The problem is, i cant list files in my NFS share. Your former help didn't work either.

The client, my machine, is behind a NAT, with port 111 open on both TCP and UDP. There are other clients who's also behind NAT's on the same NFS server, thoose without a problem like mine. Portmap is ofcourse also running.

Any ideas?
 
Old 08-24-2004, 01:50 PM   #10
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
try open udp 2049 and tcp 2049 in your machine

Last edited by Cedrik; 08-24-2004 at 01:52 PM.
 
Old 08-24-2004, 02:00 PM   #11
DiZi
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Cedrik
try open udp 2049 and tcp 2049 in your machine
Still no result... Same error....

root@FiKUS:/glftpd/ftp-data/users.ext# ls
/usr/bin/ls: reading directory .: Input/output error
 
Old 08-24-2004, 02:06 PM   #12
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
did you try to ls as simple user (not root) ?

and does the output of... :
mount
...confirm that the share is mounted ?
Also the command :
df
...works properly (it does not hang ?)
 
Old 08-24-2004, 02:14 PM   #13
DiZi
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Cedrik
did you try to ls as simple user (not root) ?

and does the output of... :
mount
...confirm that the share is mounted ?
Also the command :
df
...works properly (it does not hang ?)

ls doesn't work as another user than root either.

Mount shows the mount

df works and it doesn't hang up. :\

And the thing is, ive got two mounts from the same NFS-server, one of these two works fine to list, but the other doesn't, as you've seen. Bigger file maybe?!

Last edited by DiZi; 08-24-2004 at 02:16 PM.
 
Old 08-24-2004, 02:24 PM   #14
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
I assume that you have not weird mount point for your share like one as /mnt/net and the other as /mnt/net/other

does 'showmount -e <nfs server>' shows the exports from the server ?
 
Old 08-24-2004, 02:30 PM   #15
DiZi
LQ Newbie
 
Registered: Aug 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Cedrik
I assume that you have not weird mount point for your share like one as /mnt/net and the other as /mnt/net/other

does 'showmount -e <nfs server>' shows the exports from the server ?
No wierd points no.

Yes it shows the other exports !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Input/output error" on files at end of CD mfeat Linux - Software 2 11-23-2005 02:01 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
open office "input/output error" saving to smb share PK2K Linux - Software 6 03-09-2005 01:30 AM
Error in man command "sh: line 1: /usr/bin/gtbl: No such file or directory" MinA Slackware 1 09-06-2004 06:36 PM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 06:41 PM


All times are GMT -5. The time now is 08:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration