Logicalwebhost Cheatsheet

Linux & Open Source Cheatsheets & Howto's

Skip to: Content | Sidebar | Footer

nfs howto

Nfs allows you to remotely mount a directory so it acts like it’s local, and also make it mount the same place every time you boot up. It’s really handy, pretty simple and quite proven in the field.

nfs howto

first set up the server

apt-get install nfs-kernel-server
vi /etc/exports
exportfs -a

if everything worked, you should see an entry like


now mount the folder on your client like:

apt-get install nfs-common 
mount -t nfs /place/where/you/want/it/mounted/locally

if things went well, you should see an entry like: on /place/where/you/mounted/it/locally type nfs (rw,addr=

if you want to make it mount automatically every time you boot the client, add a line to /etc/fstab like:

vi /etc/fstab /place/where/you/want/it/locally   nfs     _netdev,auto  0  0

the _netdev waits until your network comes up before mounting it, the “auto” waits until your system boots up before mounting.

Write a comment

You need to login to post comments!