Project

General

Profile

Cannot record to external hard drive ###SOLVED####

Added by David Coad over 12 years ago

Hi,

I was using TVheadend on openelec and I plugged in an external hard drive, mapped recordings to /var/media/harddrivename and it worked.

I moved to Ubuntu 8.04 on an appletv and when I try to record to the external hard drive I get recording error..... Cannot open xxxxxx.mkv

Is there a permission problem for the tvheadend user or something?

Dave


Replies (8)

RE: Cannot record to external hard drive - Added by David Coad over 12 years ago

Btw it records fine to the /home/hts folder

RE: Cannot record to external hard drive - Added by Sébastien Aubry over 12 years ago

You should perhaps try to give the access rights to every user: sudo chmod -R a+w /media/harddrivename

RE: Cannot record to external hard drive - Added by David Coad over 12 years ago

Hi

This didn't totally fix it. I now get an error of --permission denied....... Unable to create directories

I think it's got to do with user privileges somehow for the hts settings. If I set the user to atv during the terminal install process would that cause an issue?

All except recording to external hard drives works fine.

Any ideas??

Dave

RE: Cannot record to external hard drive - Added by Sébastien Aubry over 12 years ago

It is perhaps the "browse directory" privilege:
Please try: sudo chmod -R 777 /media/harddrivename

RE: Cannot record to external hard drive - Added by David Coad over 12 years ago

still no luck. I have resorted to recording to the /home/hts folder and then manually moving to the /media/RECORDINGS/recordedtv folder (on external harddrive using terminal which works.

cd /home/hts
mv *.mkv /media/RECORDINGS/recordedtv

I want to set up a shell script to do this automatically but will start a new thread so I don't mix requests.

Thanks for your help

Dave

RE: Cannot record to external hard drive - Added by David Coad over 12 years ago

Ok, I solved it.

Firstly I formated the drive as ext3 in gparted.

I then created a folder /var/media

I then mounted the formatted drive as /var/media/Recordings

I then did Sebastien's instruction to sudo chmod -R 777 /var/media/Recordings

and now I can record to it and it auto mounts to this location.

I think it being mounted in /media caused it to remain as read only

Thanks
Dave

RE: Cannot record to external hard drive ###SOLVED#### - Added by Andrew Johnson over 9 years ago

Hi everyone...

I know this is an old thread, but I found it when trying to solve the recording problem when using a FAT32 USB Hard Drive (formatted under windows). I remember reading somewhere that with FAT32 only the user that the drive is mounted under has write access to it (and root of course). I am using TvHeadEnd version 3.4 ~ Wheezy. (actually on a Raspberry Pi)

What you can therefore try is

sudo nano /etc/default/tvheadend

Then change the $TVH_USER default

# TVH_USER
#   if set to "" will run as root
#TVH_USER="hts" 
TVH_USER="osmc" 

Or you can change it to Root - on OSMC Kodi, the default user is "osmc" - so changing it to that "lines things up" better. You can then record in any folder that user "osmc" has access to. When it boots, USB drives are mounted by this user, so away you go.

If you have created any config, however, you will need to copy this to your "new" user's home folder e.g.

cp -avr /home/hts/.hts /home/osmc/.hts

where hts is the user for TvHeadEnd and osmc is the user for OSMC (i.e. the Kodi default user name in version I am using on Ras Pi)

You can then restart TV headend:

sudo /etc/init.d/tvheadend restart

Your access problems should then be eased or they should be gone!

RE: Cannot record to external hard drive ###SOLVED#### - Added by John Peel over 7 years ago

yep, this worked for me.

Thanks

    (1-8/8)