CCoates
Posts: 32
Joined: Wed Apr 29, 2015 9:18 pm

Pi 2 & Synology box

Sat Jul 04, 2015 9:53 am

Ive been trying all morning to get the Nas box mounted using all sorts of dffering guides

Is there an easy way to do this??

CCoates
Posts: 32
Joined: Wed Apr 29, 2015 9:18 pm

Re: Pi 2 & Synology box

Sat Jul 04, 2015 9:59 am

The Nas box is a Synology DS112j

drgeoff
Posts: 9080
Joined: Wed Jan 25, 2012 6:39 pm

Re: Pi 2 & Synology box

Sat Jul 04, 2015 7:44 pm

What OS on the RPi?

Synology NASs support NFS which is the native network file system in Linux. You do have to enable it on the Synology.

CCoates
Posts: 32
Joined: Wed Apr 29, 2015 9:18 pm

Re: Pi 2 & Synology box

Sat Jul 04, 2015 9:38 pm

Raspbian install from Noobs, I have created a mounting folder. And followed a tutorial but no luck

CCoates
Posts: 32
Joined: Wed Apr 29, 2015 9:18 pm

Re: Pi 2 & Synology box

Sun Jul 05, 2015 7:47 pm

drgeoff wrote:What OS on the RPi?

Synology NASs support NFS which is the native network file system in Linux. You do have to enable it on the Synology.
I enabled this, all the guides mention it

morgad
Posts: 21
Joined: Sun Jan 29, 2012 10:24 pm
Contact: Website

Re: Pi 2 & Synology box

Sun Jul 05, 2015 8:39 pm

fwiw I have the following line in my /etc/fstab

192.168.1.3:/volume1/dp /home/pi/dp nfs user,nfsvers=4,rw,auto,hard,intr,rsize=8192,wsize=8192,_netdev 0 0

which gives directory lines in the following format

-rwxrwxrwx 1 4294967294 4294967294 367041766 Jan 1 2012 discoveries-prep-orig.zip
drwxrwxrwx 926 4294967294 4294967294 20480 Jun 4 20:10 discoveries-scan
drwxrwxrwx 3 4294967294 4294967294 4096 Jun 20 14:04 Downloads
drwxrwx--- 11 4294967294 4294967294 4096 Jun 22 19:19 Dropbox

where the 4294967294 should read 'pi', no ideas if it works as have not used nfs in anger - just the samba connction to my Windows box

@drgeoff - why do you think Synology supports nfs *properly*? - I saw a note somewhere that to get uid/guid working correctly you had to have a working kerberos server

my 414slim also has problems with -
* ssh (can log in as root, but not a normal user)
* ntp (their config file is rubbish - it ignores any servers you have on your LAN, and they also violate the terms of use for the ntp pool)
* dropbox (sometimes completly ignores files if more than one put at remote end at same time, only fixed by unlinking and re-linking

and these are just the bits I have used so far :(

best regards
Dave

drgeoff
Posts: 9080
Joined: Wed Jan 25, 2012 6:39 pm

Re: Pi 2 & Synology box

Sun Jul 05, 2015 10:12 pm

morgad wrote:
@drgeoff - why do you think Synology supports nfs *properly*? - I saw a note somewhere that to get uid/guid working correctly you had to have a working kerberos server.
Show me the word "properly" in what I wrote. :)

The Synology NAS units which run DSM are Linux boxes.

http://raspberrypi.stackexchange.com/qu ... nology-nas

CCoates
Posts: 32
Joined: Wed Apr 29, 2015 9:18 pm

Re: Pi 2 & Synology box

Wed Jul 08, 2015 9:09 pm

UPDATE:

I have now managed to mount the drive.

However it is forgotten after each reboot so each time I am having to re run the folloing code in LX Terminal

sudo mount -t nfs 192.168.0.17:/volume1/kodi /mnt/kodi

Is there anyway round this?

myoung008
Posts: 55
Joined: Mon Mar 18, 2013 9:56 pm

Re: Pi 2 & Synology box

Wed Jul 08, 2015 9:59 pm

CCoates wrote:sudo mount -t nfs 192.168.0.17:/volume1/kodi /mnt/kodi
Add the following to your /etc/fstab:

Code: Select all

192.168.0.17:/volume1/kodi /mnt/kodi nfs defaults 0 0
That may or may not be what you're actually looking for, but it is equivalent to your mount command.

Return to “Networking and servers”