[mythtv-users] Storage Permission Problems

Joseph Fry joe at thefrys.com
Mon Aug 19 18:37:59 UTC 2013


> My backend died a week ago and I have been trying to get a new one up and
> running. I think I have everything working only I can't write to the storage
> directory.
>
> I am using mythbuntu 12.04 from a clean install.
>
> The problem is I can't figure out how to get my storage partition to mount
> at boot time with the proper permissions. If I set it so it's user:group are
> mythtv:mythtv are set in fstab booting hangs and asks if you want to skip or
> fix the problem.
>
> I have spent the better part of half a day on this (I know this is bad)
> googling and rebooting (good thing I'm using ssd) without success.
>
> Unfortunately since I was having so much trouble I tried using
> a gui program "Storage Device Manager" which I think is called PySDM. This
> worked but it set the partition to some weird user and group names  that I
> can't recall now ( I am at work). Now, for the life of my, I can't figure
> out how to prevent the drive from mount with this user:group. The following
> are the pertinent lines for my fstab file. Now, I can't even boot my system
> because I deleted my fstab file and rebooted thinking that it would get
> replaced with a default one. I can really screw thins up!
>
> /dev/sdb1  /var/lib/mythtv/Recordings1  xfs   users,user           0  0
> /dev/sdb2  /var/lib/mythtv/Recordings2  xfs   users,user           0  0
> /dev/sdc1  /var/lib/mythtv/Videos1        xfs   users,user           0  0
> /dev/sdc2  /var/lib/mythtv/Recordings3  xfs   users,user           0  0
>
> Could this be related to the fact that these folders directly mount
> partitions? I don't see how this entry assigns the user:group I previously
> mentioned.
>
> So, how do you mount a partition at boot with a non-root user:group
> ownership? Sorry for the wordy email and if it isn't completely
> understandable but I am getting desperate.

Umm.. are you just mounting a local drive?   Then you just need to set
the permissions on the mount point.

Once it's mounted, you may need to reset ownership on the files with
chown if your UID's and GID's are different than they were before.


More information about the mythtv-users mailing list