Skip to content

Instantly share code, notes, and snippets.

@dtsdwarak
Created September 10, 2015 12:54
Show Gist options
  • Save dtsdwarak/919e7ea8c2e6d7aebf35 to your computer and use it in GitHub Desktop.
Save dtsdwarak/919e7ea8c2e6d7aebf35 to your computer and use it in GitHub Desktop.
Mounting Directories via NFS
# 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