User Tools

Site Tools


procedures:pi:mountnas

Mount Synology NAS from the Pi

Back to Raspberry Pi index

Put synology 'diskstation' in /etc/hosts

sudo vi /etc/hosts
  192.168.254.100	diskstation

Create the directory for the mountpoint

sudo mkdir -m777 /mnt/nas
sudo touch /mnt/nas/This_Mount_Pt_is_NOT_MOUNTED

Then edit the /etc/fstab file (which tells your system where to pick up filesystems)
with the following line to the end of your /etc/fstab (substituting your share name):

sudo nano /etc/fstab
  diskstation:/volume1/share /mnt/nas nfs defaults 0 0

Save and exit
You can now mount this filesystem, again substituting your share name:

sudo mount /mnt/nas/

This share will automount on boot forever after. If you want to make it manual mount add noauto, after defaults, in the fstab line.

If you're wanting to access these shares from a process starting at boot, please note that the shares won't be available until the network is available.

Back to Raspberry Pi index

procedures/pi/mountnas.txt · Last modified: 2022/05/27 17:19 by tim