Skip to main content

Mount an NFS share.

Installing NFS Client Packages

To mount an NFS share on a Linux system first you’ll need to install the NFS client package. The package name differs between Linux distributions.

Installing NFS client on Ubuntu and Debian:

sudo apt update
sudo apt install nfs-common

Manually Mounting an NFS File Systems

Mounting a remote NFS share is the same as mounting regular file systems.

To mount an NFS file system on a given mount point, use the mount command in the following form:

mount [OPTION...] NFS_SERVER:EXPORTED_DIRECTORY MOUNT_POINT

Use the steps below to manually mount a remote NFS share on your Linux system:

  • First, create a directory to serve as the mount point for the remote NFS share:

    sudo mkdir /mnt/OrbiterVideo

Mount point is a directory on the local machine where the NFS share is to be mounted.

  • Mount the NFS share by running the following command as root or user with sudo privileges:

    sudo mount -t nfs orbiter:/Video /mnt/OrbiterVideo

Where orbiter is the LAN Name of the NFS server, /Video is the directory that the server is exporting and /mnt/OrbiterVideo is the local mount point.
Can be with IP adress

sudo mount -t nfs 10.10.0.10:/Video /mnt/OrbiterVideo

Automatically Mounting NFS File Systems with /etc/fstab

nano /etc/fstab

Add line

orbiter:/Video /mnt/OrbiterVideo  nfs      defaults    0       0

Unmounting NFS File Systems

The umount command detaches (unmounts) the mounted file system from the directory tree.

To detach a mounted NFS share, use the umount command followed by either the directory where it has been mounted or remote share:

umount 10.10.0.10:orbiter:/backupsVideo
#or
umount /var/backupsmnt/OrbiterVideo