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:
A. Execute these steps on the remote server:
- /etc/init.d/nfs start
- under /etc/exports add this line :
- [Directory to allow access on this server] [Server IP to allow access]
(rw,sync) - run exportfs -r
B. Execute these steps on the Local server:
mount -o nolock : [Remote server IP] :[Remote directory] [Mount Directory]
Comments