How to mount a remote directory in unix?

Suppose you want to mount a remote directory and use it as if directory is present on the same server, here are the steps:
A. Execute these steps on the remote server:

  1. /etc/init.d/nfs start
  2. under /etc/exports add this line :
    1.  [Directory to allow access on this server] [Server IP to allow access]   (rw,sync)
  3. run exportfs -r
B. Execute these steps on the Local server:
mount -o nolock : [Remote server IP]:[Remote directory]   [Mount Directory]

Comments