Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save linuxkathirvel/c1eee202dc4d297e0ae61d1c7fed647a to your computer and use it in GitHub Desktop.
Save linuxkathirvel/c1eee202dc4d297e0ae61d1c7fed647a to your computer and use it in GitHub Desktop.
NFS Server and Client installation in Debian

NFS Server and Client installation in Debian

Server Side

sudo apt update
sudo apt install nfs-kernel-server nfs-common
sudo mkdir /data/nfs-mount
sudo chown username:groupname /data/nfs-mount
sudo chmod 755 /data/nfs-mount
sudo vim /etc/exports
# Add below line in /etc/exports
/data/nfs-mount 10.12.189.23(rw,sync,fsid=0,crossmnt,no_subtree_check,no_root_squash)

Client Side

sudo apt update
sudo apt install nfs-common
sudo mount -t nfs 10.12.189.23:/data/nfs-mount /data/nfs-dir

References

Setting up an NFS Server and Client on Debian 9 https://linuxconfig.org/how-to-set-up-a-nfs-server-on-debian-10-buster https://wiki.debian.org/NFSServerSetup

@jbcdnr
Copy link

jbcdnr commented May 23, 2020

Thanks for this super quick set up! Just a note: on the server side, I had to run sudo exportfs -a to update the exports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment