The syntax is sudo mount source-spec local-directory
which makes this: sudo mount 192.168.1.122:/Backup/plex_backups /some_local_dir
Before we can mount /Backup from the NFS server, we must export it
- On the NFS server, make sure the NFS service is running
- Edit /etc/exports
- Add
/Backup *(rw,async,no_subtree_check,no_root_squash) - Save and exit the editor
-
sudo exportfs -a(to make the NFS server re-read the file)
Now the file system is exported.
Last thing we do is make certain file permissions are open enough to allow mounting of /Backup/plex_backups. Do this by looking on the server . Whichever UID/GID will be writing (typically my UID/GID) should own the directories.
Return to the local host and mount the directory.
When you’re happy with that, you make the mount permanent by adding to /etc/fstab
For reference, (because I’m ‘retentive’
), I have it this way:
(/vol = 144TB RAID 6 main volume, /vmssd = 2TB SSD PCIe array)
# New layout
/vmssd *(rw,async,no_subtree_check,no_root_squash)
/vol *(rw,async,no_subtree_check,no_root_squash)
/vol/backup *(rw,async,no_subtree_check,no_root_squash)
/vol/chuck *(rw,async,no_subtree_check,no_root_squash)
/vol/iso *(rw,async,no_subtree_check,no_root_squash)
/vol/media *(rw,async,no_subtree_check,no_root_squash)
/vol/pfsense *(rw,async,no_subtree_check,no_root_squash)
/vol/plex *(rw,async,no_subtree_check,no_root_squash)
/vol/primo *(rw,async,no_subtree_check,no_root_squash)
/vol/software *(rw,async,no_subtree_check,no_root_squash)
/vol/usenet *(rw,async,no_subtree_check,no_root_squash)
/vol/vmhdd *(rw,async,no_subtree_check,no_root_squash)
/vol/vtmp *(rw,async,no_subtree_check,no_root_squash)
/vol/math *(rw,async,no_subtree_check,no_root_squash)