One fine day, I, being the happy owner of a rather elderly NAS Synology 213j (this old man is generally trimmed from the heart), purchased a Raspberry Pi 4 (4 Gb of RAM). And since the raspberry is much more cheerful than the well-deserved veteran (Marvel processor and 512 MB of RAM, and all this is under the control of a very heavy DSM), I decided to leave the NAS purely as a network drive and a torrent rocker, and move the media server to the Raspberry Pi, but, as you understand everything could not work quickly and easily. And in this article I will tell you how to make Raspberry PI and Synology NAS friends.
I must say right away that it is necessary that the disks be automatically mounted at boot and edited over the network.
It may seem simple, but there are subtleties ????
Naturally, to begin with, we give access to the necessary folders from the Synology side:
- First, go to the Control Panel and enable NFS support
- Then, when NFS is already enabled, we give access in the folder properties (I gave access to all devices on the local network)
and, it would seem, everything, but no (maybe everything will work for you at this stage - it didn’t work for me, you can try to skip the next steps and return to them later, but if you plan to use a media server, you still have to do it).
- Then, when NFS is already enabled, we give access in the folder properties (I gave access to all devices on the local network)
- Add a user from the Raspberry Pi to the Synology NAS (this, by the way, will make it easier to connect via SSH to the NAS from the same Raspberry)
- We give it the rights to Read / Write shared folders
From the Raspberry Pi side, everything is simple - we add a network resource to /etc/fstab and everything works.
Open the /etc/fstab file in the nano editor:
sudo nano /etc/fstab
And add a line for connecting a network drive:
192.168.1.102:/volume1/video /home/pi/NAS/Video nfs auto,defaults,sec=sys,rw,async,bg 0 0
192.168.1.102:/volume1/video - folder address on Synology NAS
/home/pi/NAS/Video - mount folder (if you are a beginner and not in the know - you must first create a mount folder)
[box style=”grey”] I will say right away that this set of parameters is due to the need for the correct operation of the media server, and regardless of whether Plex, Emby, or Jellyfin, the NFS setup for them is done according to the same logic.[/box]
After that, we launch the Raspberry Pi Configuration application in the Raspberry Pi main menu, in the Options section, and check the box in the Network at Boot checkbox Wait for network .
Now reboot Raspbery and use network drives!