Solved What's my best option as a UK FreeviewHD TV backend?
#16
From how you described it yes I think it will - timeshift is basically recording and playing back the same file at the same time so if you can't record then you can't timeshift.

Chmod should sort out the permissions - sudo chmod -R 777 * at the folder level of your recording folder should fix things.

That recursively sets the permissions to read/write/execute for anyone with access to the device.

https://en.m.wikipedia.org/wiki/Chmod
https://linux.die.net/man/1/chmod
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#17
After you chmod do ls -al rather than dir.

That should show the permissions as well. Also add the -R to make it recursive.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#18
OK, I'm getting somewhere. I just double checked my settings and found my recording path to be " /media/Storage/Recordings" instead of "/media/Storage/Recordings". There was an extra space at the beginning! Now the recordings still fail, but they're "Waiting For Stream".
My guess is too much load on the USB with the HDD, a keyboard dongle, and a tuner plugged in. The HDD does have its own power supply, but I noticed earlier the keyboard dongle wouldn't work with it plugged in. I may have to invest in a powered USB hub.


EDIT... I checked permissions and both Recordings and Timeshift have "drwxrwxrwx" which I think is correct?
Reply
#19
Well, I had another go with the HDD plugged into my router.
I made a folder in /media called "WAPShare"
Code:
sudo mkdir WAPShare

The folder I need to record to is "//192.168.1.253/sda2/Recordings"

So in putty.....
Code:
osmc@RaspberryPi:/media$ sudo mount //192.168.1.253/sda2 WAPShare
Password for root@//192.168.1.253/sda2:  ********
osmc@RaspberryPi:/media$ cd WAPShare
osmc@RaspberryPi:/media/WAPShare$ dir
Recordings  Timeshift

The Folders I require are now where they should be.

In TVHeadend I added "/media/WAPShare/Recordings" as the destination

I tested a recording, everything seems fine.
Now the only issue is that every reboot, the mounted drive goes and I have to do it again. I believe there's a way to make it permanent using fstab?
I've tried looking at some guides but they all seem to assume a higher level of Linux savvy than I have going on here Tongue
Reply
#20
Correct - fstab can be used to make a permanent mount. As you found, doing it "by hand" only lasts until the reboot.

Have a look at some of the links below and see if they help (as I guess you already found there's plenty of man pages on fstab for the various Linux flavours out there on the web):

https://help.ubuntu.com/community/Fstab
https://www.raspberrypi.org/documentatio...storage.md (look at the bit under "Setting up automatic mounting")
https://www.modmypi.com/blog/how-to-moun...pi-raspian (likewise to above)
https://wiki.archlinux.org/index.php/fstab
https://rasspberrypi.wordpress.com/2012/...pberry-pi/

One pro-tip - include the "nofail" option in your fstab line, otherwise if you try and boot the Pi without the drive connected it will just sit there and wait until the drive is connected.

But good to hear you're making progress in getting all this set up properly anyway - quite rewarding once it gets going.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#21
Thanks for the links, but I'm struggling with fstab. No matter what I do the pi hangs on boot and I have to remove the line I added for it to work again.
So far I've tried..
Code:
//192.168.1.253/sda2 /media/WAPShare 0 0
Code:
//192.168.1.253/sda2 /media/WAPShare username=root,password=******** 0 0
Code:
//192.168.1.253/sda2 /media/WAPShare username=admin,password=******** 0 0
Code:
​​​​​​​//192.168.1.253/sda2 /media/WAPShare password=******** 0 0
Code:
​​​​​​​//192.168.1.253/sda2 /media/WAPShare nofail,username=root,password=******** 0 0

when I mount the drive manually and check
Code:
​​​​​​​cat /proc/mounts

The line I get for that mount is
Code:
​​​​​​​//192.168.1.253/sda2 /media/WAPShare cifs rw,relatime,vers=1.0,cache=strict,username=root,domain=,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.253,soft,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1 0 0

Can I just copy and paste that into fstab?
Reply
#22
Try

​​​​​​​//192.168.1.253/sda2 /media/WAPShare cifs nofail,username=root,password=******** 0 0

All your variations above are missing the part that defines the format/protocol (cifs in this case).

Of course put the actual username and password in the relevant places.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#23
Well, since I planned to do it this way in the end, I purchased a powered USB hub, plugged the HDD and tuner into that, and the good news seems to be that osmc auto mounts it on startup inside /media.
I added /media/Storage/Recordings to my recording tab, and /media/Storage/Timeshift to my timeshift tab, tested it a few times after rebooting it, and so far all is well.
I think the case is closed on this one!
Huge thanks for all your help Darren. I really appreciate it!  Nod
Reply
#24
You're more than welcome - great news that you're up and running!

Thread marked solved.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply

Logout Mark Read Team Forum Stats Members Help
What's my best option as a UK FreeviewHD TV backend?0