Fstab on Synology

I’ve been using nfs to access shared folders on my Synology. After upgrading to 19.3 I noticed some stuttering playing some movies, especially 4k60p content and want to see if using fstab mounting will help.

I tried following the tutorial from Chillbo but am having some problems getting it to work.

Here’s my output from showmount -e
osmc@vero4k2:~$ showmount -e 192.168.1.245
Export list for 192.168.1.245:
/volume1/video *
/volume1/4kvideo *

Here’s the fstab commands.
192.168.1.245:/volume1 /mnt/4kvideo nfs noauto,x-systemd.automount 0 0
192.168.1.245:/volume1 /mnt/video nfs noauto,x-systemd.automount 0 0

Running the following commands produces no errors
sudo mount -a
sudo systemctl daemon-reload
sudo systemctl restart remote-fs.target

Then I get an error trying to change to the mounted directory.
osmc@vero4k2:~$ cd /mnt/video
-bash: cd: /mnt/video: No such device

osmc@vero4k2:~$ sudo mount /mnt/video
mount.nfs: access denied by server while mounting 192.168.1.245:/volume1

Output from grab-logs -f -J
https://paste.osmc.tv/anekuwicix

Hi,

Please changing this to

``` 192.168.1.245:/volume1 /volume1/4kvideo nfs noauto,x-systemd.automount 0 0 192.168.1.245:/volume1 /volume1/video nfs noauto,x-systemd.automount 0 0 ```
192.168.1.245:/volume1/4kvideo /mnt/4kvideo nfs noauto,x-systemd.automount 0 0
192.168.1.245:/volume1/video /mnt/video  nfs noauto,x-systemd.automount 0 0

Your current fstab is trying to mount /volume1 to 2 different mount points.

Thanks Tom.

Did you also create the mountpoint folder first, you need to make the folder before you can attach it to your NAS

Thanks Tom, after changing those commands I can now see the directories under volume1 but I can’t change to them and sudo mount gives me an error.

osmc@vero4k2:~$ sudo nano /etc/fstab
osmc@vero4k2:~$ sudo mount -a
osmc@vero4k2:~$ sudo systemctl daemon-reload
osmc@vero4k2:~$ sudo systemctl restart remote-fs.target
osmc@vero4k2:~$ cd /volume1/video
-bash: cd: /volume1/video: No such device
osmc@vero4k2:~$ cd /volume1
osmc@vero4k2:/volume1$ ls
4kvideo video
osmc@vero4k2:/volume1$
osmc@vero4k2:/volume1$ sudo mount /volume1/video
mount.nfs: access denied by server while mounting 192.168.1.245:/volume1
osmc@vero4k2:/volume1$ sudo mount /volume1/4kvideo
mount.nfs: access denied by server while mounting 192.168.1.245:/volume1

Is a mountpoint folder the same as a shared folder? If so then yes I created the 2 shared folders on my NAS and have been using them successfully for quite a while without fstab.

Here’s my fstab

192.168.1.245:/volume1 /volume1/4kvideo nfs noauto,x-systemd.automount 0 0
192.168.1.245:/volume1 /volume1/video nfs noauto,x-systemd.automount 0 0

Hi,

Sorry the FSTAB Entries I provided were wrong (I’ll also update the original post). Should have been:

192.168.1.245:/volume1/4kvideo /mnt/4kvideo nfs noauto,x-systemd.automount 0 0
192.168.1.245:/volume1/video /mnt/video  nfs noauto,x-systemd.automount 0 0

Also as jb2cool suggested the mount points need to be created. so:

sudo mkdir /mnt/{4kvideo,video}

Again apologies for the in incorrect fstab entries.

Thanks Tom.

Thanks for the corrections, that fixed it! :slight_smile:

Just ran iperf3 and I’m getting 940Mbps.

1 Like

Everything with fstab seemed to be working fine. I moved the Vero to another room and now it can’t access any files on my NAS.

Logs
https://paste.osmc.tv/afahigolub

Check output of showmount -e 192.168.1.245

osmc@vero4k2:~$ showmount -e 192.168.1.245
Export list for 192.168.1.245:
/volume1/4kvideo *
/volume1/video *
osmc@vero4k2:~$

And no files when using ls -lah /mnt/4kvideo/

osmc@vero4k2:~$ ls -lah /mnt/4kvideo/
total 8.0K
dr-xr-xr-x 2 root root 4.0K Dec 7 08:53 .
drwxr-xr-x 4 root root 4.0K Dec 7 08:53 …

Does mount /mnt/4kvideo give you an error?

osmc@vero4k2:~$ mount /mnt/4kvideo
mount: /mnt/4kvideo: operation permitted for root only.
osmc@vero4k2:~$

Sorry sudo mount /mnt/4kvideo

No error, just returns to command prompt.
osmc@vero4k2:~$ sudo mount /mnt/4kvideo
osmc@vero4k2:~$

is it now mounted? mount | grep 4k

Yes, I can now play titles from /mnt/4kvideo but not /mnt/video

osmc@vero4k2:~$ mount | grep 4k
devtmpfs on /dev type devtmpfs (rw,relatime,size=1015064k,nr_inodes=253766,mode=755)
192.168.1.245:/volume1/4kvideo on /mnt/4kvideo type nfs (rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.245,mountvers=3,mountport=892,mountproto=udp,local_lock=none,addr=192.168.1.245)
osmc@vero4k2:~$

sudo mount /mnt/video

No, no errors on the mount command but I still can’t play titles from /mnt/video. Get an error stating file no longer available.

mount | grep /video
ls -lah /mnt/video