Add New Drive NFS/CIFS (Synology NAS)

Hello,

did everything like that and did not succeed. Checked “nearly” everything, but now it works. Call me dumb, but I did rebooted my NAS. After a reboot, volumio could Mount the Folder immediately. DId not know, that NFS Shares Need a reboot to activate. Is that so?

Greetings, homry

1 Like

Thank you so much!

It worked the first time, without requiring a reboot!

Please find my settings here:
NAS+volumio.png

I will no go on with my project:

  • RASP v2
  • Pi Supply Switch (2 front switches + 1 back for hard power off) (this was complex because GPIO library was not in the distribution of volumio :open_mouth: )
  • HiFiBerry DAC+ :ugeek:
  • Double power supply (separate PI + DAC) :smiley:
  • Controlled via mobile with Bubble UPNP :wink:
  • Maybe later touch screen (after upgrade to PI v3) :unamused:

Best Regards.

Hmmm… I have gone forward and the problem is back.

I added some other drives, and :

  • previoulsy defined one was unmounted
  • new one never got mounted
  • after reboot I got the following messages for each drive:

volumio+log.png

Nov 02 14:27:45 volumio volumio[854]: exec error Error: Command failed: /usr/bin/sudo /bin/mount -t nfs -o ro,soft,noauto DEVIDISK:/volume1/music-eac /mnt/NAS/eac
Nov 02 14:27:45 volumio volumio[854]: mount.nfs: access denied by server while mounting DEVIDISK:/volume1/music-eac
Nov 02 14:27:45 volumio volumio[854]: info: Cannot mount NAS at system boot, trial number 4 ,stopping

I tried:

I also noticed the files are not defined in /etc/fstab which contains:
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults,utf8,user,rw,umask=111,dmask=000 0 1
tmpfs /var/log tmpfs nodev,uid=1000,mode=0777,gid=4, 0 0
tmpfs /var/spool/cups tmpfs defaults,noatime,mode=0755 0 0
tmpfs /var/spool/cups/tmp tmpfs defaults,noatime,mode=0755 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=0755 0 0
tmpfs /dev/shm tmpfs defaults 0 0

Can somebody help me?

Thanks!

[edit] current prototype:
20161102_145237.jpg

I think the issue is in your NAS permission sets…

Thank you michelangelo, but I really doubt since it has been working before reboot of the volumio.

Regards.

… also, I am now back to volumio 1.55 and it worked fine immediately.

Try to remove the / from the beginning of the share name and see if that works

I already tried removing it (and it has been working once with it)

It’s an absolute path to the shared folder so I think it probably needs the initial ‘/.’

If it was my setup, I would try using the actual IP address of the NAS server to check that it’s not ‘zeroconf’ problem.

Do you get the same “permission denied” error if you manually attempt to mount the folders?

@chsims1: thanks for your questions. I tried what you said (with volumio 2.01) unfortunately with no sucess…

In the share drive:

  • two are like the picture below
  • one has the volumio username and password
  • one has options _netdev,x-systemd.automount

… none works.
config with ip.png
I get this with journalctl… everything looks all right - at least there is no return code.
What surpries me are the “PWD=/ ; USER=root” settings. If have allowed volumio. ‘root’ is reserved in Synology, and not selectable in the “Permissions” list of users. So I cannot allow root.
I allowed administrators to give it a try. Not better.

Nov 03 19:39:23 volumio volumio[923]: info: Loading plugin "networkfs"... Nov 03 19:39:24 volumio sudo[960]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/mount -t nfs -o ro,soft,noauto,_netdev,x-systemd.automount 192.168.1.2:/volume1/music-eac /mnt/NAS/eac Nov 03 19:39:24 volumio sudo[960]: pam_unix(sudo:session): session opened for user root by (uid=0) Nov 03 19:39:24 volumio volumio[923]: info: Loading plugin "alarm-clock"... Nov 03 19:39:24 volumio sudo[962]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/mount -t nfs -o ro,soft,noauto 192.168.1.2:/volume1/music-sacd /mnt/NAS/sacd Nov 03 19:39:24 volumio sudo[962]: pam_unix(sudo:session): session opened for user root by (uid=0) Nov 03 19:39:24 volumio sudo[964]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/mount -t nfs -o ro,soft,noauto 192.168.1.2:/volume1/music-mp3 /mnt/NAS/mp3 Nov 03 19:39:24 volumio sudo[964]: pam_unix(sudo:session): session opened for user root by (uid=0) Nov 03 19:39:24 volumio sudo[970]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/mount -t nfs -o ro,soft,noauto 192.168.1.2:/volume1/music /mnt/NAS/misc Nov 03 19:39:25 volumio sudo[970]: pam_unix(sudo:session): session opened for user root by (uid=0) Nov 03 19:39:25 volumio sudo[960]: pam_unix(sudo:session): session closed for user root

I have tested with volumio 1.55, it worked immediately with basic settings. Well now the definition of the drives have dissapeared automatically after an update ???
but it was working. (my library is really huge - over 4TB of music - could it be the reason for the scab failure, that’s another problem).

The test returns indeed “access denied” (I used the same as configured):

Test 1:

volumio@volumio:~$ sudo /bin/mount -t nfs -o ro,soft,noauto,_netdev,x-systemd.automount 192.168.1.2:/volume1/music-eac /mnt/NAS/eac mount.nfs: access denied by server while mounting 192.168.1.2:/volume1/music-eac volumio@volumio:~$

Test 2:

volumio@volumio:~$ sudo /bin/mount -t nfs -o ro,soft,noauto 192.168.1.2:/volume1/music-sacd /mnt/NAS/sacd mount.nfs: access denied by server while mounting 192.168.1.2:/volume1/music-sacd volumio@volumio:~$

Thanks for your help…

:neutral_face:

Well as Michelangelo said previously, it looks as though the problem may well lie with the Synology NAS denying volumio access to the share. I don’t understand though how it worked previously & then did not. Can you revert to the original share working?

Also, @Michelangelo, why should it work with volumio 1.55?

I found this in /var/log/messages in the NAS…

Nov 3 22:00:43 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-sacd (/): not exported Nov 3 22:00:43 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-mp3 (/): not exported Nov 3 22:00:43 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music (/): not exported Nov 3 22:01:14 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music (/): not exported Nov 3 22:01:14 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-mp3 (/): not exported Nov 3 22:01:15 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-sacd (/): not exported Nov 3 22:01:15 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-eac (/): not exported Nov 3 22:01:22 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music (/): not exported Nov 3 22:01:22 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-eac (/): not exported Nov 3 22:01:23 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-sacd (/): not exported Nov 3 22:01:23 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-mp3 (/): not exported Nov 3 22:01:27 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music (/): not exported Nov 3 22:01:28 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-eac (/): not exported Nov 3 22:01:28 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-sacd (/): not exported Nov 3 22:01:28 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-mp3 (/): not exported Nov 3 22:01:32 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music (/): not exported Nov 3 22:01:33 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-eac (/): not exported Nov 3 22:01:34 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-sacd (/): not exported Nov 3 22:01:34 DeviDisk mountd[7308]: refused mount request from volumio for /volume1/music-mp3 (/): not exported

Don’t know how to solve this… :frowning:

Y.

No I can’t… well I tried and did not succeed, doesn’t mean it is not possible (I did not practice UNIX since… 15 years or more :frowning: )

I’m a bit confused really. Failure of manual mounting would suggest a problem with NAS permissions/services. Volumio 1.55 working ok would suggest it is a volumio problem. It’s rather a difficult problem solving someone else’s set up :angry:

Too bad :frowning: . I understand. The ‘not exported’ message on the NAS gives you no idea ?

Thanks anyway !

Best Regards

I did this on the NAS: :smiley:

sudo exportfs -a

I got back access… :stuck_out_tongue:

Now time to go to bed. I guess I’ll get to it, further details in the coming days. :arrow_right: :mrgreen:

Problem is solved, please find my conclusions (I did not spent hours on double checking but these are let’s say more likely the source of my problems.

What were the issues (I think):

  • in NFS Permissions : wildcard seems to not work completely:
    working: * or full ip address (did not try hostname)
    NOT working: network range: 192.168.1.*

  • NFS permissions must be defined as needed BEFORE the mount

    So, if you try to make changes to these permissions for testing (which I did all day long… :angry: ) these seems to not be effective before reboot
    So if you change the NFS permissions, a reboot is required after the permissions changes of first the NAS, than the volumio.

Here are my working settings:
On the NAS:
ok - Synology NFS permissions.png
On volumio:
ok - volumio NAS drives.png

Thanks for your help.

PS: the fact that it was working with volumio 1.55 might be because I used icfs instead of nfs… but I am not sure.

Well I’m glad that you solved it. There are a number of posts on the forums at the moment, which I think are probably also permissions problems with the NAS rather than volumio.

I got mine working as well thanks to this thread!
In my case what resolved the issue was using the name of the Synology station in capitals (BLUFFDALE in my case) instead of the IP address…

now waiting for the library to load… any idea how long this might take?

Hey there,

i’ve stumbled upon this thread and it seemed to be a good idea. I got my Volumio mounted, but i’m not sure, what exactly was the mistake i’ve made, if it was the missing reboot of the synology or the allowance of non privileged ports. Changing the settings for non privileged ports to ‘allowed’ made it finally work.

Funfact, the NAS seems to be mounted, Volumio has found 640GB on it, but it doesn’t read them into my library…

thanks so far!