PDA

View Full Version : nfs mount gives mount: RPC: Timed out



rbutcher
02-15-2006, 05:42 AM
I have several Linux boxes on a ethernet lan using a hub. I want to share files on the main host with the networked clients. I''ve shared the directory via nfs, and I can mount it on the host as :-
mount 192.168.0.1:/data6 /mnt
/data6 has read-write permission for all.
When I try to mount this from the networked client box I get :-
mount: RPC: Timed out

What else do I need to do to make the directory accessable ?
/etc/exports contains :-
/data6/ *(rw,async,all_squash)
thanks
Rod

PCZ
02-15-2006, 08:20 AM
Rod

Try this

etc/exports
/data6 192.168.0.0/255.255.255.0(rw,no_root_squash,async)

On the clienrs
mount -t nfs -o nolock 192.168.0.1:/data6 /mnt

It might be better to create an empty directory on the clients called data6
and mount against that.

mount -t nfs -o nolock 192.168.0.1:/data6 /data6


Brian

rbutcher
02-16-2006, 12:12 AM
Thanks for those tips. I found that the main problem was, I had forgotten that the NAT router I use for internet connection sharing is also a firewall - I needed to add the client machine to the server's list of trusted hosts. As soon as I did that nfs starts working.

rbutcher
02-16-2006, 03:50 AM
Another thing I had to do was make rsize and wsize real small because the client has a really old nic, and large block sizes caused it to hang. So the mount command :-
mount -t nfs -o rsize=4096,wsize=4096 192.168.0.1:/data6 /mnt/data6