LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   "/usr/bin/ls: reading directory .: Input/output error" (https://www.linuxquestions.org/questions/slackware-14/usr-bin-ls-reading-directory-input-output-error-221724/)

DiZi 08-24-2004 09:08 AM

"/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 :)

DiZi 08-24-2004 09:09 AM

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.

Cedrik 08-24-2004 12:14 PM

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

DiZi 08-24-2004 12:38 PM

Im gonna try that since it works fine on all other computers linked to the NFS server. :)

DiZi 08-24-2004 01:00 PM

Fuck, no error anymore. The SSH just hangs instead, fucking shit :(

Cedrik 08-24-2004 01:06 PM

If ssh hang it may be a netfilter problem ? Or are you sure that sshd is running in the server ?

DiZi 08-24-2004 01:10 PM

Sorry, what i meant was that the whole "ls" hung up when i tried... :(

Cedrik 08-24-2004 01:15 PM

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 ?

DiZi 08-24-2004 01:23 PM

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? :cry:

Cedrik 08-24-2004 01:50 PM

try open udp 2049 and tcp 2049 in your machine

DiZi 08-24-2004 02:00 PM

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

Cedrik 08-24-2004 02:06 PM

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 ?)

DiZi 08-24-2004 02:14 PM

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?!

Cedrik 08-24-2004 02:24 PM

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 ?

DiZi 08-24-2004 02:30 PM

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 !


All times are GMT -5. The time now is 01:22 PM.