Forums » Kodi (XBMC) as frontend »
Live TV on RPI recording on NAS - How to do?
Added by Fred Fred almost 10 years ago
Hello, maybe anyone could help me?
I run TVHeadend back- and frontend on a Raspberry Pi through DVB-C. All works but I would like to record the Live TV on a Synology DS212j NAS and don´t know how to do.
First I´ve to mount the NAS folder (/video), I guess (NFS is used). So I tried it with an autostart.sh like this:
#!/bin/sh
(sleep 30; \
mount -t nfs 192.168.0.29:/volume1 /volume1/video -o nolock; \
)&
When this shell is OK, what is the Recording System Path in TVHeadend? I tried /volume1/video but it didn´t work.
Some help would be great!
Replies (3)
RE: Live TV on RPI recording on NAS - How to do? - Added by Prof Yaffle almost 10 years ago
Recording path looks fine - if you've any doubt, create a file in the target directory from the NAS and then see if you can see it once it's mounted.
It's probably a permission problem - su to hts and see what your effective permissions are (i.e. cd to that directory after mounting and touch a file/md a directory to see if it works).
RE: Live TV on RPI recording on NAS - How to do? - Added by Fred Fred almost 10 years ago
Yes you´re right it´s a permission problem
With cifs it worked but I guess NFS would be faster
#!/bin/sh
(sleep 30; \
mount -t cifs -o username=xyz,password=xyz,rw //192.168.0.29:Port/video/TVRec /storage/TVRec -o nolock;
)&
My NFS try to get a direct mount followed by error.
OpenELEC:~ # mount -t nfs 192.168.0.29:/video/TVRec /storage/TVRec -o nolock
mount: 192.168.0.29:/video/TVRec failed, reason given by server: Permission denied
mount: mounting 192.168.0.29:/video/TVRec on /storage/TVRec failed: Bad file descriptor
Hmm, what would be the right command, as in Openelec I´ve root acess by default?
RE: Live TV on RPI recording on NAS - How to do? - Added by Prof Yaffle almost 10 years ago
Well, you'll have root access on the OE box - not to the NAS.
How is it exported?
And can you mount the export locally, i.e. remount it on the NAS in some way?