Created
September 10, 2015 12:54
-
-
Save dtsdwarak/919e7ea8c2e6d7aebf35 to your computer and use it in GitHub Desktop.
Mounting Directories via NFS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NFS Server | |
$ sudo apt-get install nfs-kernel-server #To install the NFS Server | |
$ vi /etc/exports | |
/home/dwarak/Music *(rw,sync,no_root_squash,no_subtree_check) #Include this line to expose 'Music' folder of user 'dwarak' | |
$ exportfs -a | |
#NFS Client | |
/home/yeshwanth/Home $ mkdir dwarak-music | |
/home/yeshwanth/Home $ sudo mount -t nfs 192.168.1.2:/home/dwarak/Music dwarak-music/ #192.168.1.2 -> client machine's IP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment