[mythtv-users] Rsync test system

Stephen Worthington stephen_agent at jsw.gen.nz
Fri Oct 6 09:29:26 UTC 2017

On Thu, 5 Oct 2017 15:05:50 -0500, you wrote:

>> On Oct 5, 2017 1:09 PM, "Curtis Gedak" <gedakc at gmail.com> wrote:
>> On 2017-10-05 10:49 AM, Daryl McDonald wrote:
>> > Do I have to first install xenial on the second
>> > partition then restore the rsync backup, or is there a way to make the
>> > restore bootable?
>> Assuming that you have restored all partition content to another drive,
>> you can make the new drive bootable.
>> There are likely many instructions on the Internet for how to do this.
>> Following is a link to one I wrote for GParted:
>> GParted Manual - Fixing Operating System Boot Problems
>> https://gparted.org/display-doc.php?name=help-manual#gparted
>> -fix-operating-system-boot-problems
>> Curtis
>> ____________________________________________
>> IIUIC, cloning sda1 to sda2 would result in two partitions with the same
>> UUID, and cause boot problems.
>> Yes, if you clone the entire partition, the UUID's would be the same and
>cause issues. If you already have 2 partitions created, the UUIDs would
>already be different. Using the partclone method, you are copying the
>filesystem, not partition information, from one to the other. Ack, you
>would have to change the UUID in the /etc/fstab to account for the correct
>partition to be used. Forgot about that.

I have done this using Clonezilla to clone from one partition to the
other.  I do not use UUIDs for booting now - I have labels on the
drives and use LABEL=xxxxx instead of UUID=xxxx in fstab.  That makes
the process not too difficult.  First, make sure that you are using
something other than UUID in the existing boot partition's fstab.  You
can add labels to partitions using GParted, or just use a direct
/dev/sdx setup in fstab.  Run update-grub.  Then boot Clonezilla and
tell it to do the cloning.  Boot into the existing partition again,
and change the UUID of the new partition.  Give it a label as well.
Here is how to change the UUID:


Once you have different UUIDs, run update-grub so that it can set up
booting for the new partition.  Mount the new partition temporarily
and edit its fstab to point the boot partition to the new partition,
using its new label.  Then reboot and select your new partition to

Remember that whenever you update anything affecting booting on the
new partition (eg an update installs a new kernel), you will need to
reboot to the original boot partition and run update-grub from there
before the changes will work.

More information about the mythtv-users mailing list