Skip to content

Instantly share code, notes, and snippets.

@jumski
Forked from jdesive/setup.md
Created January 21, 2019 16:15
Show Gist options
  • Save jumski/caed07546d9e86b0dc14e160b442c986 to your computer and use it in GitHub Desktop.
Save jumski/caed07546d9e86b0dc14e160b442c986 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.

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