Skip to content

Instantly share code, notes, and snippets.

@jdesive
Created January 28, 2018 00:00
Show Gist options
  • Save jdesive/07139df545a6fd6adf03f6a3b9075814 to your computer and use it in GitHub Desktop.
Save jdesive/07139df545a6fd6adf03f6a3b9075814 to your computer and use it in GitHub Desktop.
Mount NFS share from synology NAS to Ubuntu

Mount Synology NFS share to Ubuntu 16.04

I have all hardware virtualized in ESXi 6.5...
Synology DSM 5.2-5644
Ubuntu 16.04

Start

On your fresh install on Ubuntu 16.04:

  1. Click the Connections icon on the top bar
  2. Goto Edit Connections
  3. Find your connection and click Edit
  4. Goto IPv4 Settings and change it from DHCP to Manual
  5. Click the Add button and add a free static IP address
  6. Then click Save and reboot

On the Synology box

  1. Goto Control Panel
  2. Click Shared Folder and find your share you want to mount
  3. Click Edit
  4. Goto NFS Permissions
  5. Click create and add your static IP from the Ubuntu box and the desired permissions

Make sure to note the Mount path from the bottom of the window

On the Ubuntu Box

  1. Open Terminal and type sudo apt-get install nfs-common -y
  2. Then make the dir you want to mount to with sudo mkdir /mnt/media -- replace /mnt/media with whatever you want
  3. Then type sudo gedit /etc/fstab
  4. On the bottom of the page add this line, replacing the require parts with what yours is
# automount from synology box
192.168.1.120:/volume2/Media /mnt/media nfs nouser,rsize=8192,wsize=8192,atime,auto,rw,dev,exec,suid 0 0

Where 192.168.1.120 is the static IP of the Synology box
and /volume2/Media is your mount path you noted earlier
and /mnt/media is the folder you created in step 2

  1. Save and then type sudo mount -a in the terminal or reboot.

Navigate to the folder you created in Step 2 and your files should be there.

@landcraft
Copy link

I followed your instructions, and I'm getting connection refused. Any idea why? Might it be related to squashing settings?

@joseagraz
Copy link

Thanks for the info, created a new repository giving you credit
https://github.com/Kidney-Science/synology_nas_ubuntu_mount

@st-ivan
Copy link

st-ivan commented Jan 5, 2024

Thanks for the info, created a new repository giving you credit https://github.com/Kidney-Science/synology_nas_ubuntu_mount

thanks! i was able to access the folder now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment