Hiro Protagonist wrote:
> Michael Bratge wrote:
> > Hiro Protagonist wrote:
> > > /media/pi is drwxrw-rw- not drwxrwxrwx
> > are execution rights necessary to write there?
>
> Execution rights are necessary to read the directory.
> Rule of thumb: always give directories x permission unless you have a specific reason not to.
>
> > Hiro Protagonist wrote:
> > > Also /media/pi/toshiba should be /media/pi/TOSHIBA [case is important].
> > I changed my path to lower case, the upper case came from the HDD's default name.
>
> OK, as long as your path in TVHeadend config exactly matches what ls -l shows.
>
> > Let's test further till it works with directory /media/pi/test, this is internal memory and so we don't merge ext. HDD problems.
> >
> > I changed now the rights:
> > pi@Medienserver:/media $ sudo chmod +x pi
> > pi@Medienserver:/media $ ls -l
> > insgesamt 8
> > drwxrwxrwx+ 11 pi pi 4096 Apr 6 11:48 pi
> >
> > pi@Medienserver:/media/pi $ ls -l
> > insgesamt 36
> > drwxrwxrwx 2 hts hts 4096 Apr 4 11:57 test
> >
> > and it still does not work.
>
>
> > Do you know the meaning of the "+" at the end of drwxrwxrwx rights of pi?
>
> See here:
https://unix.stackexchange.com/questions/1646/or-mark-after-running-ls-al
>
> This may be related to your problem.
>
> To test that TVH can write to a location, use the hts user, e.g.
> [...]
>
> This should create a 0 byte file called testfile in /media/pi/test/ [you can delete it afterwards]
>
> If that doesn't work, you should get an error message indicating what the problem is. You can also try stepping back to using /media/pi/ and /media/ until you do succeed - that will isolate what part of the path is a problem.
>
> It's important that you are able to create a file using the exact same path you have configured in TVH [ for example, it's not sufficient to cd to /media/pi/test/ and then 'touch testfile', you must touch using the absolute path].
>
> If your test as user hts works, then TVH should work OK.
>
> When you're done testing as hts, you can get back to the original user with 'exit'.
I recomend few years ago, same thing to be implemented inside TVH.
It can be a buton to test new location.