[mythtv-users] db restore

Daryl McDonald darylangela at gmail.com
Thu Aug 9 18:27:07 UTC 2018


On Thu, Aug 9, 2018 at 11:11 AM, Stephen Worthington <
stephen_agent at jsw.gen.nz> wrote:

> On Thu, 9 Aug 2018 14:50:54 +0100, you wrote:
>
> >On 09/08/18 14:23, Daryl McDonald wrote:
> >>
> >>
> >> On Wed, Aug 8, 2018 at 11:30 PM, Stephen Worthington
> >> <stephen_agent at jsw.gen.nz <mailto:stephen_agent at jsw.gen.nz>> wrote:
> >>
> >
> >>
> >>     The way I run my fstab is to use gparted to add labels to the
> >>     recording partitions (rec1, rec2, ...), and then use fstab entries
> >>     like this:
> >>
> >>     LABEL=rec5 /mnt/rec5 jfs relatime,errors=remount-ro,nofail 0  2
> >>
> >>
> >> So I wouldn't need UUID any more, I already created labels in gparted?
> >> this is my fstab:
> >>   # / was on /dev/sda1 during installation
> >> UUID=06336f2d-051d-4900-bb9f-ccb6f81d5bd5 /               ext4
> >> errors=remount-ro 0       1
> >> # swap was on /dev/sda5 during installation
> >> UUID=47904312-a99f-46dd-ae81-5f0fff64df5e none            swap    sw
>
> >>            0       0
> >> UUID=3769e2e8-adde-456c-86e4-0402be737ef6 /media/daryl    ext4
> >> defaults    0       1
> >> UUID=ec787761-11d5-4127-b198-e159bfcd2a6a /media/daryl    ext4
> >> defaults    0       1
> >> UUID=3d591aa5-fb48-4fd1-8989-e01d66926876 /media/daryl    ext4
> >> defaults    0       1
> >>   my labels are storage1, 2, &3 but only storage 1 mounts
> >
> >Isn't that because they all ahve the same mountpoint?
>
> Yes, they all need separate mount points - only one drive can mount on
> the /media/daryl mount point.  The normal place to put fixed mount
> points in Ubuntu is in /mnt.  The /media directory is used for
> automounts.  If you plug in a USB disk or flash drive, or put a CD or
> DVD in an optical drive, in Ubuntu it will normally automount itself
> in a new directory made from the drive label under /media/daryl, and
> also automatically appear in the disk software such as Nautilus as a
> disk icon.  So doing fixed mount points on /media/daryl will stop that
> automounting from working.  I would recommend doing this:
>
> sudo mkdir /mnt/storage1
> sudo mkdir /mnt/storage2
> sudo mkdir /mnt/storage3
> chmod a=rwx /mnt/storage1
> chmod a=rwx /mnt/storage2
> chmod a=rwx /mnt/storage3
>
> and then changing those three lines in /etc/fstab to:
>
> LABEL=storage1 /mnt/storage1    ext4 defaults    0       2
> LABEL=storage2 /mnt/storage2    ext4 defaults    0       2
> LABEL=storage3 /mnt/storage3    ext4 defaults    0       2
>
> Note that I have also changed the 1 at the end of those lines to 2.
> Only the disk mounted on / should have pass 1 setting in fstab.  All
> other disks should be pass 2 (or 0 for special mount points like
> /proc).  The pass number tells the boot process that all drives with
> pass 1 are to be checked and made available in the early boot process.
> But only the / drive needs to be made available that early - the other
> drives should be left for the normal mounting process later.
>

Much obliged Stephen, all changes worked well.

> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180809/27a910b3/attachment.html>


More information about the mythtv-users mailing list