Project

General

Profile

Mount with NFS and send the recordings to a Synology NAS

Added by G E over 2 years ago

I'm trying to mount a RPi running TVHeadend to Synology DS920+ in order to send PVR recordings to NAS storage.

The issue is I have trouble to make the mount persistent and survive a reboot.

When I manually run:

sudo mount -t nfs -o proto=tcp,port=2049 192.168.1.131:/volume1/TVrecordings /home/pi/Downloads

the recordings will go to my NAS. Success!

My problem is that I can't make this persistent on fstab.

I'm editing fstab and adding:

192.168.1.131:/volume1/TVrecordings /home/pi/Downloaads nfs auto 0 0

but it fails to mount it upon boot.


Replies (6)

RE: Mount with NFS and send the recordings to a Synology NAS - Added by WereCatf - over 2 years ago

G E wrote:

@sudo mount -t nfs -o proto=tcp,port=2049 192.168.1.131:/volume1/TVrecordings /home/pi/Downloads

192.168.1.131:/volume1/TVrecordings /home/pi/Downloaads nfs auto 0 0

but it fails to mount it upon boot.

You have a typo: "/home/pi/Downloaads" is not the same as "/home/pi/Downloads"

RE: Mount with NFS and send the recordings to a Synology NAS - Added by G E over 2 years ago

I just corrected it and still wont work...

RE: Mount with NFS and send the recordings to a Synology NAS - Added by G E over 2 years ago

The logs within TVheadend report permission error when it fails to record so it has to be an argument that's missing or has to be altered in fstab.

RE: Mount with NFS and send the recordings to a Synology NAS - Added by saen acro over 2 years ago

Is it exist in

/etc/fstab

For NFSv4, you should always mount '/'
which is the pseudofilesystem exported by the server

RE: Mount with NFS and send the recordings to a Synology NAS - Added by WereCatf - over 2 years ago

G E wrote:

I just corrected it and still wont work...

Your problem is just a general Linux issue, not specific to Tvheadend, so I'm not sure this is even the right place for this. There are plenty of better places, like e.g. the various IRC-channels for your Linux-distro or any of the billion different Discord-chats.

Anyway, you specify "proto=tcp,port=2049" when mounting manually, but you're not specifying those in the fstab. Does the mount fail, if you attempt to mount manually without those options? If it does, then you need to add them to your fstab-line as well, ie. 192.168.1.131:/volume1/TVrecordings /home/pi/Downloaads nfs defaults,proto=tcp,port=2049 0 0

RE: Mount with NFS and send the recordings to a Synology NAS - Added by saen acro over 2 years ago

Using Webmin will solve problem on all steps.

    (1-6/6)