| Jan Gerrit Kootstra 2005-09-29, 6:00 pm |
| My response from redhat.networking.general
-------- Original Message --------
Subject: Re: NFS question
Date: Thu, 29 Sep 2005 21:51:01 +0200
From: Jan Gerrit Kootstra <jan.gerrit@kootstra.org.uk>
Organization: chello.nl
Newsgroups: redhat.networking.general
References: <433bc82d$0$6924$afc38c87@news.optusnet.com.au>
Cimry Koda wrote:
> May I asked expert advise on NFS (not samba) setup on Linux please?
>
> I have two PCs (PC1, PC2) both running Linux They are connected to the
> same LAB and PC1 has IP adr 192.168.2.10 and Pc2 has IP adr 192.168.2.20
>
> The PC1 has a directory /home/public which I want to make it accessibe from
> PC2.
> Can you please show me
> i. How can I make the PC1's /home/public directory shared?
> ii. How can I mount/map the PC1's shared directory to a local directory
> on my PC2 (say /home/pc1public) ?
>
> Many thanks,
>
>
>
Cimry Koda,
Why not samba?
NFS can make your PC2 hang, if PC1 can not deliver the share. Ok it is
your choice.
-----------------------------------------------
put the following line in /etc/exports of PC1:
/home/public 192.168.2.20(rw,sync,no_root_squash)
give command:
exports -av
---------------------------------------------------------------------
put followinging line in /etc/fstab of PC2
192.168.2.10:/home/public /home/pc1public nfs defaults,noauto,soft 1 2
give command:
mount /home/pc1public
------------------------------------------
I choose noauto, because I do not want my reboots to fail if nfs would
not be available.
You can change it to auto, so you do not have to mount by hand after a
reboot of PC2.
Kind regards,
Jan Gerrit
|