Plex on RPi 4 – Now With Added NFS!!

As an addition to my previous post about ‘Plex Media Server on Raspberry Pi 4‘, I’ve now dug out my old Synology DS415+, installed NFS and mounted on my Pi4. The 13Tb my Synology currently has will give me a bit more head room over the 500Gb SSD I previously had plugged into the Pi.


Enabled NFS on the Synology

To enable NFS on the Synology is a very simple matter of creating a new share and NFS mount point. I won’t go into too many details but have taken screenshots of the process. The only option that I change within the NFS settings is the following to ensure that when you mount the share, it completes it correctly else you get an access error:


Mounting on Raspberry Pi

There is only one additional package that needs to be installed to get NFS working:

sudo apt update
sudo apt install nfs-common

Once this is completed you then need to create a new folder to use as the mount point:

sudo mkdir /mnt/plexdrivenfs

Finally, issue the following command but replacing the IP with the address of your Synology NFS host. To find the NFS mount point on your Synology, look at the NFS list on the share you created.

sudo mount 192.168.1.120:/volume1/PlexDrive /mnt/plexdrivenfs

Automatic Mounting of NFS

The final step is to auto mount the NFS share at boot.

  • Edit fstab file
sudo nano /etc/fstab
  • Add the following to the end of the file, again replacing the IP address with the address of your Synology
192.168.1.120:/volume1/PlexDrive /mnt/plexdrivenfs nfs rsize=8192,wsize=8192,timeo=14,intr

To test this has worked, reboot the Pi and check you can ‘see’ the new mount point

sudo reboot
ls -l /mnt/plexdrivenfs

Moving Existing Library

Now I have the share mounting automatically at boot, I wanted to move all my existing folders from the 500Gb SSD to this NFS share

sudo cp -r /mnt/plexdrive /mnt/plexdrivenfs

Once this completed, I went back to fstab and deleted both the NFS and SSD mounts and rebooted the Pi. The reason for this was so that when the Pi rebooted I could remove the USB SSD drive and mount the NFS share into ‘/mnt/plexdrive’ just to keep everything neat and tidy. A totally optional step by the way!!


References

Leave a Reply

Your email address will not be published. Required fields are marked *