Can't solve problem with NFS-server access

Rick Stevens ricks at nerd.com
Mon Nov 29 23:16:48 UTC 2010


On 11/29/2010 02:24 PM, Alan Holt wrote:
> I'm really really sorry, it was typing error with ip address.
> Like I wrote I have next addresses:
>
> My PC (NFS-CLIENT) is 192.168.1.100
> My laptop (NFS-SERVER) is 192.168.1.101
>
> in my /etc/exports/
> /home/booch/Temp   192.168.1.101/255.255.255.0(rw,sync,no_subtree_check)
>
> where 192.168.1.101 is my NFS-server

I think you're confused here.  The server is the machine that has the
drive you want other machines to mount over the network.  Are you
trying to share a drive from your PC to your laptop?  If so, then the
PC is the server.

The exports file should only exist on the server.  It tells the server
which clients are allowed to mount that directory.  Also, the netmask
you have (regardless of which is the server) is incorrect.  The last
octet should be .255 if you only want to allow the machine that you've
named on the line access.  If you want the entire network it's on
access, then the IP address should be 192.168.1.0 and the netmask set
to 255.255.255.0 (allowing 192.168.1.1 through 192.168.1.254 access).

If the PC is trying to share one of its local directories with the
laptop, then the PC should have an /etc/exports with the line:

/home/booch/Temp 192.168.1.101/255.255.255.255(rw,sync,no_subtree_check)

(the netmask should end with ".255" if you're trying to only share with
ONE machine) and the laptop should:

mount 192.168.1.100:/home/booch/Temp /local/mountpoint -o ro

----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting          ricks at nerd.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-              Careful!  Ugly strikes 9 out of 10 people!            -
----------------------------------------------------------------------


More information about the users mailing list