<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 11, 2018 at 10:29 PM, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">On Sat, 11 Aug 2018 21:40:26 -0400, you wrote:<br>
<br>
>On Thu, Aug 9, 2018 at 2:27 PM, Daryl McDonald <<a href="mailto:darylangela@gmail.com">darylangela@gmail.com</a>><br>
>wrote:<br>
><br>
>><br>
>><br>
>> On Thu, Aug 9, 2018 at 11:11 AM, Stephen Worthington <<br>
>> <a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote:<br>
>><br>
>>> On Thu, 9 Aug 2018 14:50:54 +0100, you wrote:<br>
>>><br>
>>> >On 09/08/18 14:23, Daryl McDonald wrote:<br>
>>> >><br>
>>> >><br>
>>> >> On Wed, Aug 8, 2018 at 11:30 PM, Stephen Worthington<br>
>>> >> <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a> <mailto:<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.<wbr>nz</a>>> wrote:<br>
>>> >><br>
>>> ><br>
>>> >><br>
>>> >>     The way I run my fstab is to use gparted to add labels to the<br>
>>> >>     recording partitions (rec1, rec2, ...), and then use fstab entries<br>
>>> >>     like this:<br>
>>> >><br>
>>> >>     LABEL=rec5 /mnt/rec5 jfs relatime,errors=remount-ro,<wbr>nofail 0  2<br>
>>> >><br>
>>> >><br>
>>> >> So I wouldn't need UUID any more, I already created labels in gparted?<br>
>>> >> this is my fstab:<br>
>>> >>   # / was on /dev/sda1 during installation<br>
>>> >> UUID=06336f2d-051d-4900-bb9f-<wbr>ccb6f81d5bd5 /               ext4<br>
>>> >> errors=remount-ro 0       1<br>
>>> >> # swap was on /dev/sda5 during installation<br>
>>> >> UUID=47904312-a99f-46dd-ae81-<wbr>5f0fff64df5e none            swap    sw<br>
>>><br>
>>> >>            0       0<br>
>>> >> UUID=3769e2e8-adde-456c-86e4-<wbr>0402be737ef6 /media/daryl    ext4<br>
>>> >> defaults    0       1<br>
>>> >> UUID=ec787761-11d5-4127-b198-<wbr>e159bfcd2a6a /media/daryl    ext4<br>
>>> >> defaults    0       1<br>
>>> >> UUID=3d591aa5-fb48-4fd1-8989-<wbr>e01d66926876 /media/daryl    ext4<br>
>>> >> defaults    0       1<br>
>>> >>   my labels are storage1, 2, &3 but only storage 1 mounts<br>
>>> ><br>
>>> >Isn't that because they all ahve the same mountpoint?<br>
>>><br>
>>> Yes, they all need separate mount points - only one drive can mount on<br>
>>> the /media/daryl mount point.  The normal place to put fixed mount<br>
>>> points in Ubuntu is in /mnt.  The /media directory is used for<br>
>>> automounts.  If you plug in a USB disk or flash drive, or put a CD or<br>
>>> DVD in an optical drive, in Ubuntu it will normally automount itself<br>
>>> in a new directory made from the drive label under /media/daryl, and<br>
>>> also automatically appear in the disk software such as Nautilus as a<br>
>>> disk icon.  So doing fixed mount points on /media/daryl will stop that<br>
>>> automounting from working.  I would recommend doing this:<br>
>>><br>
>>> sudo mkdir /mnt/storage1<br>
>>> sudo mkdir /mnt/storage2<br>
>>> sudo mkdir /mnt/storage3<br>
>>> chmod a=rwx /mnt/storage1<br>
>>> chmod a=rwx /mnt/storage2<br>
>>> chmod a=rwx /mnt/storage3<br>
>>><br>
>>> and then changing those three lines in /etc/fstab to:<br>
>>><br>
>>> LABEL=storage1 /mnt/storage1    ext4 defaults    0       2<br>
>>> LABEL=storage2 /mnt/storage2    ext4 defaults    0       2<br>
>>> LABEL=storage3 /mnt/storage3    ext4 defaults    0       2<br>
>>><br>
>>> Note that I have also changed the 1 at the end of those lines to 2.<br>
>>> Only the disk mounted on / should have pass 1 setting in fstab.  All<br>
>>> other disks should be pass 2 (or 0 for special mount points like<br>
>>> /proc).  The pass number tells the boot process that all drives with<br>
>>> pass 1 are to be checked and made available in the early boot process.<br>
>>> But only the / drive needs to be made available that early - the other<br>
>>> drives should be left for the normal mounting process later.<br>
>>><br>
>><br>
>> Much obliged Stephen, all changes worked well.<br>
>><br>
><br>
>I replied too soon, I can't access previous recordings and new ones don'<br>
>play properly. fstab looks like this:<br>
># <file system> <mount point>   <type>  <options>       <dump>  <pass><br>
># / was on /dev/sda1 during installation<br>
>UUID=06336f2d-051d-4900-bb9f-<wbr>ccb6f81d5bd5 /               ext4<br>
>errors=remount-ro 0       1<br>
># swap was on /dev/sda5 during installation<br>
>UUID=47904312-a99f-46dd-ae81-<wbr>5f0fff64df5e none            swap    sw<br>
>      0       0<br>
>LABEL=storage1 /mnt/storage1    ext4        defaults    0       2<br>
>LABEL=storage2 /mnt/storage2    ext4        defaults    0       2<br>
>LABEL=storage3 /mnt/storage3    ext4        defaults    0       2<br>
><br>
>the default storage directories in myth BE setup are /mnt/storage1,<br>
>/mnt/storage2, /mnt/satorage3/<br>
>recordings were green when I was using /media/daryl, red since. Any<br>
>suggestons?<br>
<br>
</div></div>On looking back through this thread, I noticed I had left the sudo off<br>
the chmod commands, so they probably did not work.  To fix that, do<br>
this:<br>
<br>
sudo umount /mnt/storage1<br>
sudo chmod a=rwx /mnt/storage1<br>
sudo mount /mnt/storage1<br>
sudo umount /mnt/storage2<br>
sudo chmod a=rwx /mnt/storage2<br>
sudo mount /mnt/storage2<br>
sudo umount /mnt/storage3<br>
sudo chmod a=rwx /mnt/storage3<br>
sudo mount /mnt/storage3<br>
<br>
Then make sure that you can properly access the mounted drives from<br>
the daryl account.  So, without using sudo, do these commands:<br>
<br>
cd /mnt/storage1<br>
echo "test string" >testfile<br>
ls -al testfile<br>
cat testfile<br>
rm testfile<br>
ls -al testfile<br>
<br>
The results should look something like this:<br>
<br>
stephen@mypvr:~$ cd /mnt/rec1<br>
stephen@mypvr:/mnt/rec1$ echo "test string" >testfile<br>
stephen@mypvr:/mnt/rec1$ ls -al testfile<br>
-rw-rw-r-- 1 stephen stephen 12 Aug 12 14:09 testfile<br>
stephen@mypvr:/mnt/rec1$ cat testfile<br>
test string<br>
stephen@mypvr:/mnt/rec1$ rm testfile<br>
stephen@mypvr:/mnt/rec1$ ls -al testfile<br>
ls: cannot access 'testfile': No such file or directory<br>
stephen@mypvr:/mnt/rec1$<br></blockquote><div><br></div><div> daryl@trieli:~$ cd /mnt/storage1</div><div>daryl@trieli:/mnt/storage1$ echo "test string" >testfile</div><div>daryl@trieli:/mnt/storage1$ ls -al testfile</div><div>-rw-rw-r-- 1 daryl daryl 12 Aug 12 07:46 testfile</div><div>daryl@trieli:/mnt/storage1$ cat testfile</div><div>test string</div><div>daryl@trieli:/mnt/storage1$ rm testfile</div><div>daryl@trieli:/mnt/storage1$ ls -al testfile</div><div><div>ls: cannot access 'testfile': No such file or directory</div><div>daryl@trieli:/mnt/storage1$</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
If all that works, then your permissions should be correct.<br>
<br>
Next, where on your storage partitions are your recording files<br>
stored?  Best practice is to have them in a subdirectory.  I use<br>
"recordings" for that.  So the storage directories that I put into<br>
mythtv-setup are like this:<br>
<br>
/mnt/rec1/recordings<br></blockquote><div><br></div><div>I'm using /mnt/storage*/mythtv/recordings </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The reason for doing that is to do with how a mount point works.  If<br>
there is nothing mounted on a mount point, it will still point to a<br>
directory, but likely on the root drive.  That directory can be used<br>
for recording to, but will be in the wrong place, and will likely<br>
cause the / partition to fill up rapidly.  If the storage group points<br>
to a subdirectory under the mount point, then MythTV will be looking<br>
for /mnt/storage1/recordings.  So when it looks for that directory on<br>
a mount point which is not actually mounted at the time, it will not<br>
see it and will not record to it.<br>
<br>
The next problem to look for is different ownership.  When you create<br>
a new Linux system, the numbers assigned to owner and group names all<br>
change (except for root).  So if your recording files were created<br>
using owner daryl and group mythtv on an old system, they will almost<br>
certainly be using different numbers for those two names on your new<br>
system.  So you may need to do a chown command on all the recording<br>
files to fix that.  To see if that is the case, please post the<br>
results of changing to one of the directories where you have your<br>
recording files and doing this command:<br>
<br>
ls -al | head -n 10</blockquote><div> daryl@trieli:~$ ls -al | head -n 10</div><div>total 275424</div><div>drwxr-xr-x 20 daryl daryl     69632 Aug 12 07:37 .</div><div>drwxr-xr-x  4 root  root       4096 Aug  8 13:39 ..</div><div>-rw-------  1 daryl daryl     56378 Aug 11 18:08 .bash_history</div><div>-rw-r--r--  1 daryl daryl       220 Aug  8 12:06 .bash_logout</div><div>-rw-r--r--  1 daryl daryl      3771 Aug  8 12:06 .bashrc</div><div>drwx------ 19 daryl daryl      4096 Aug 11 15:07 .cache</div><div>-rw-rw-r--  1 daryl daryl      1684 Aug  9 09:10 ca.ipvanish.com.crt</div><div>drwx------  3 daryl daryl      4096 Aug  8 16:16 .compiz</div><div>drwx------ 19 daryl daryl      4096 Aug 11 17:58 .config</div><div>daryl@trieli:~$</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="gmail-HOEnZb"><div class="gmail-h5">______________________________<wbr>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/<wbr>mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/<wbr>Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</div></div></blockquote></div><br></div></div>