I want to record to a secondary HDD. How to set up?
Added by m h over 2 years ago
I changed the path in the settings to "/media/server/HDD2"
On the top changed the space, it shows the HDD2 drive right, so the setting is OK.
The problem is that TVH can't write the records. I found in the forum, this is a common issue, but the solutions doesn't work for me. They're grant acces to 775 or 777, to user hts? I don't understand these, what is a hts user? How to grant access to the HDD2 for TVH? Why should I do these?(I mean a simply qbittorrent can write data everywhere I want. TVH only in its default folder. Why?)
OS: ubuntu 20.04
Thanks for the help!
Replies (3)
RE: I want to record to a secondary HDD. How to set up? - Added by Hiro Protagonist over 2 years ago
m h wrote:
I changed the path in the settings to "/media/server/HDD2"
I hope you changed the path in one of the profiles in Configuration > Recording > Digital Video Recorder Profiles
"in the settings" is hopelessly vague.
On the top changed the space, it shows the HDD2 drive right, so the setting is OK.
The problem is that TVH can't write the records. I found in the forum, this is a common issue, but the solutions doesn't work for me. They're grant acces to 775 or 777, to user hts? I don't understand these, what is a hts user?
The default installation creates a user 'hts' which TVHeadend uses, but TVH doesn't have to run as this user. You can check with:
$ pgrep -a tvheadend 22723 /usr/bin/tvheadend -f -p /var/run/tvheadend.pid -u foo -g video
This indicates that TVH is running as user foo.
TVH only in its default folder. Why?
Before you ask why, you should ask if.
TVH is not limited to recording in its default folder, it can record anywhere the tvh process has permission to write.
My TVH records to /var/spool/pvr for example.
So, the two things you need to know are:
1) What user is running tvh?
2) What permissions does your recording folder have? [ check with 'ls -lahF /media/server/' ]
RE: I want to record to a secondary HDD. How to set up? - Added by m h over 2 years ago
The answer for $ pgrep -a tvheadend is:3316 /snap/tvheadend/200/usr/bin/tvheadend --config /var/snap/tvheadend/200
This is the "root" user. I can write data with "root" user to the selected drive and its folders. Also I can do this with the user "server".
tvheadend still only can write to the original folder (/var/snap/tvheadend/common).
RE: I want to record to a secondary HDD. How to set up? - Added by m h over 2 years ago
m h wrote:
The answer for $ pgrep -a tvheadend is:
3316 /snap/tvheadend/200/usr/bin/tvheadend --config /var/snap/tvheadend/200
This is the "root" user. I can write data with "root" user to the selected drive and its folders. Also I can do this with the user "server".
tvheadend still only can write to the original folder (/var/snap/tvheadend/common).
OK, I found that the snap versions of linux programs can't write to other folders.
This is... ahahhahsaudasifasibfisdb >:(
This was the only thing why I used this, because other install methods just not working.
How can I install tvheadend for ubuntu 20.04 without snap?