First try at NFS

Kurt Wall kwall
Sat Nov 13 07:56:05 PST 2004


On Fri, Nov 12, 2004 at 11:00:41PM -0800, Ian Stephen took 58 lines to write:
> Hi folks
> 
> I've been using sftp and scp between my laptop and desktop, but kept
> thinking someday I should learn something about NFS.
> 
> Tried today using (mostly) Mandrake 10's GUI method with the desktop
> machine as server and have met with frustration.

What is the output of "showmount -e <desktop>" from both the desktop
and the laptop? It should show the list of exports. You might also try
"exportfs" on the server just to make sure that it is actually exporting
things.

> I put the line "portmap: <laptop ip>" in /etc/hosts.allow

To make sure everything is properly configured, restart the portmapper 
on both the client and the server.

> /etc/exports is good I think, with the ip of the laptop specified and 
> "rw,all_squash,anonuid=<my_normal_uid>,anongid=<fileshare_gid>, sync"

> From the laptop 'rpcinfo -p <desktop_ip>' gives

And what of "rpcinfo -p" for the laptop itself?

>  program vers proto   port
>     100000    2   tcp    111  portmapper
>     100000    2   udp    111  portmapper
>     391002    2   tcp  32768  sgi_fam
>     100003    2   udp   2049  nfs
>     100003    3   udp   2049  nfs
>     100003    4   udp   2049  nfs
>     100003    2   tcp   2049  nfs
>     100003    3   tcp   2049  nfs

[...]

This looks right. You might want
> 
> and nmap -v <desktop_ip> finds port 111 and 2049 open
> 
> but attempting to mount the remote directory from cli on the laptop
> gives "mount: RPC: Timed out" and attempts to connect from Mandrake
> Control Center or from Konqueror seem to time out as well.

What is the mount command you are using?

Kurt
-- 
"Yeah, but you're taking the universe out of context."


More information about the Linux-users mailing list