So, I’m not exactly sure what I did but I have a few week old Synology NAS that I was able to get mounted to my raspberry pi. I use the pi to download movies and then filebot to move the files to my NAS.
This was working as of a few days ago but I ended up recreating the Media folder where I store my movies in and I messed up either a permission thing or disabled SMB or NFS setting on my synology.
Anyone know what exactly I need to modify in either to mount the drive to my raspberry pi ? is Samba or NFs better?
This is the error message I get when I try to mount it via Samba:
[FAILED] Samba mount failed with the following error output: │
│ │
│ mount error(2): No such file or directory │
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) │
│ mount error(2): No such file or directory │
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) │
│ mount error(2): No such file or directory │
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) │
│ mount error(2): No such file or directory │
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) │
│ Retrying with upper case share name │
│ mount error(6): No such device or address │
│ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
I got NFS to work. I was unclear how to mount the folder since it doesn’t give that option. I had to add the exact location in my script and noticed after it ran it mounted 3 folders:
Still can’t get Samba to work but guess it really doesn’t matter. Would like to know why it doesn’t work as well as which option is better (faster?) than the other.
I would use NFS, if possible. SMB only for the share from a windows machine.
NFS works like:
A NFS server shares a folder (config at /etc/exports. But I guess the Synology NAS is web-based, so you configure everthing via the web browser).
And Clients can mount this shared folder into there filesystem.
It looks like you’re sharing 3 shares folders on the Synology: /, /volume1 and /volume1/media?
And you mounted them to /mnt/nfs_client/* on your Pi.
And you can mount them at boot, if you want, without the script. Have a look here: