[mythtv-users] Storage Group relocation - default/recordings not working

Mike Bibbings mike.bibbings at gmail.com
Tue Oct 31 16:01:00 UTC 2017


On 31/10/17 15:23, plainface boy wrote:
> I've added a new 3TB drive to my Mythtv 0.28 Ubuntu 14.04 box.The new 
> drive mounts at start up to /media/[myname]/Storage
> I've created a folder within this called myth, and within that all the 
> separate directories for my storage groups, to mimic what I've got on 
> my main drive.
> I've added the new folders to my storage groups in set up eg in videos 
> I had;
> /home/mythtv/videos
> and added;
> /media/[myname]/Storage/myth/videos
> All fine so far, and I was able to delete the files from the 
> /home/mythtv/videos folder, and remove this from the storage group, 
> and videos play ok.
> However the same procedure does not work for the default folder, where 
> I keep all my recordings.
> home/mythtv/recordings
> Even though I've added /media/[myname]/Storage/myth/recordings to the 
> storage group, whatever I do, as soon as I remove either a file or 
> directory from the original  storage group, mythtv cannot find the 
> file.Is there something different about the default folder?
> I used the 'disk' app to mount the drive at start up, rather than 
> editing fstab.....assume that is ok, as videos work fine?
>
> I've looked at the wiki, and read lots of others' questions here etc, 
> and I can't see what I'm doing wrong, but I'm guessing I must be going 
> wrong somewhere!
> Can anyone help?
>
> Thanks.
>
My first guess is permissions and ownership of these new directories.

When you use mythtv-setup to adjust StorageGroups you should get a 
message when you exit mythtv-setup if there is a problem writing to 
Storage Group directories.

Is there anything in the mythbackend.log about Storagegroups and not 
being able to read/write ?

The ownership and permissions I use are
All directories should be owned by mythtv.mythtv
permissions required on the directories are u=rwx,g=rwxs,o=rx

Something like these commands should do it:

sudo chown -R mythtv.mythtv /media/[myname]/Storage/myth
sudo chmod -R  u=rwx,g=rwxs,o=rx /media/[myname]/Storage/myth

As a second guess, there was an old problem with mounting to /media
see https://www.mythtv.org/wiki/Troubleshooting:Filesystem_Permissions

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20171031/3ede0974/attachment.html>


More information about the mythtv-users mailing list