Re: NFS mounts but ls says "Input/output error"



In article <47502178$0$3816$5402220f@xxxxxxxxxxxxxxx>, mblume@xxxxxxxxx
(Martin Blume) writes:

"Charlie Gibbs" schrieb

[NFS mounts but ls has input/output error]

What say the logs (/var/log/messages, I believe nfsd logs
also there)?

Each mount or umount generates an "rpc.mountd: authenticated
[un]mount request from <client IP address:port> for <directory
name>" message on the server, even on directories that give an
error when I try to do an ls.

What are the permissions on the directories?

Duh! /home/cjg was 711, while /bigspace, another directory which
mounts and works just fine, is 755. A simple chmod did the trick.
Subsequently, directories within /home/cjg, which had permissions
of 700, were inaccessible until I changed them to 755, although I've
found that 744 (read permission) is enough for me to look inside.

It turns out that the user IDs I'm using on the client machine
don't match the user ID to which the server's directories and files
belong. Running as root on the client made no difference, but
I don't have no_root_squash specified so that's not surprising.

Many thanks for the tip - you've saved my hair. It seems odd,
though, that ls would return an obscure message like "Input/output
error" rather than some sort of "permission denied" message, which
would have immediately led me to the cause of the error...

--
/~\ cgibbs@xxxxxxxxxxxxxxxx (Charlie Gibbs)
\ / I'm really at ac.dekanfrus if you read it the right way.
X Top-posted messages will probably be ignored. See RFC1855.
/ \ HTML will DEFINITELY be ignored. Join the ASCII ribbon campaign!

.



Relevant Pages

  • Re: NFS AIX 5.3 (5300-04-00) & Windows 2003 STD SP1
    ... Not set user mapping - only set IP permissions - no nided user mapping and ... change permission for folder c:\ ... mount: 1831-008 giving up on: ... Folder permission: ...
    (comp.unix.aix)
  • Re: Cant Mount my USB Disk R/W [Was Slow USB disk]
    ... /etc/fstab, what does the mount command you are using look like, etc. ... ^ Group write permission ... To mount it I do (as root or as user) mount /dev/sdb1, ... I don't run kde so have no idea how you would fix it. ...
    (Debian-User)
  • Re: Trouble with mounting USB stick as user
    ... AFAIK, only root can mount things under FreeBSD, period. ... The user must have read+write permission on the device ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing ...
    (freebsd-stable)
  • Re: Default permissions for files placed in a directory
    ... > directory X it will have the normal default permission setting. ... Either mount an usb/firewire disk with vfat filesystem, or make a file and mount it. ...
    (alt.os.linux)