You are here

Add a Linux NFS Drive

Plug the drive into the NFS Server and allow it to auto-mount (or manually mount it if necessary).

Install the NFS utils on the NFS Server:

  • apt-get install nfs-kernel-server portmap

Update the /etc/exports file on the NFS Server to share the drive that is mounted at /media/backup:

  • /media/backup 192.168.0.1/24(rw,sync,no_subtree_check,no_root_squash)

On the PC wanting to mount the drive /media/backup, create a local directory called /media/backup (it could be named something different):

  • mkdir /media/backup

On the local PC, edit the /etc/fstab document (X = the last digit of the NFS Server’s IP Address):

  • 192.168.0.X:/media/backup /media/backup nfs auto 0 0

Execute mount -a and the new drive should mount.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer