Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Clone running live system not working as expected

Post Reply
zephyr707
Forum Novice
Forum  Novice
Posts: 6
Joined: Wed Jan 23, 2019 5:33 pm

Clone running live system not working as expected

#1

Post by zephyr707 » Wed Mar 13, 2019 8:33 pm

Hi there,
I have been using MX 18 Continuum for several months off of an SD card mounted via a card reader. Seems to boot fine and I've been using the live usb w/ persistence to try out MX Linux. I just bought a larger USB thumb drive and would like to clone the current install on the SD card over to the USB and then wipe the original SD card, but I'm running into a some issues.

I tried using the MX Live Usb Maker and it seems like it is working. The program recognizes my new USB thumb drive and auto-populates it into the "select the target USB device" dropdown. I then tick off the "Clone running live system" option and leave everything else as a default and then hit the "Next" button. This runs through the operation and has a progress bar which builds up and finishes with a "LiveUSB creation successful!" message. However, upon reboot on the new device it says there is no persistence and I get a vanilla install.

Reading through the live-usb-maker log it looks like it is just cloning /live/boot-dev, which maybe is the correct behavior, but I thought it would clone everything in the system and create an identical clone. If this is not the intended use, is there an easy way to clone everything in the current live-usb setup to a new usb device?

many thanks,
Z

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 10882
Joined: Sun Dec 16, 2007 1:17 pm

Re: Clone running live system not working as expected

#2

Post by dolphin_oracle » Wed Mar 13, 2019 8:46 pm

you are correct, it only clones the linuxfs file.

so you have 3 options.

1. you could clone the drive, then copy over the rootfs and homefs from the the antiX folder on the original drive onto the new drive (I think that will work anyway).

2. my preferred method is to remaster the drive, compressing the rootfs back into the linuxfs, and then cloning that after a reboot.

3. I think you could also just do a drive copy with something like clonezilla to clone the entire drive onto the second device. I haven't tried this one.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18
lenovo s21e - MX-18, antiX-17.3.1 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
BitJam
Forum Guide
Forum Guide
Posts: 2916
Joined: Sat Aug 22, 2009 11:36 pm

Re: Clone running live system not working as expected

#3

Post by BitJam » Wed Mar 13, 2019 8:49 pm

That feature has been recently added to the version in my git repo. Please give it a try and see if it now works like you expect.

Unfortunately, we won't copy the rootfs file if static persistence is in use or a homefs file it is in use. So to clone the persistence files from a running live system you will need to reboot with persistence disabled.
Will I cry when it's all over?
When I die will I see Heaven?

zephyr707
Forum Novice
Forum  Novice
Posts: 6
Joined: Wed Jan 23, 2019 5:33 pm

Re: Clone running live system not working as expected

#4

Post by zephyr707 » Wed Mar 13, 2019 11:48 pm

thank you both for your replies. Unfortunately, I'm just seeing them now. I ended up cloning the drive via the gnome disk utility (create .img -> restore .img), which I guess is similar to a dd clone. Good news is that it works!

I'm playing around with MX RemasterCC now, have not used this before, but watched one of the runwiththedolphin vids on youtube wrt to remastering antix. Unfortunately, it is telling me that there is 0 available space and I'm not quite sure what it is querying. The old SD card was 16gb and the new USB thumb drive is 256gb, so there is about 240gb of unallocated space, but there is also free space on the ext4 file system that was cloned, so not sure why it is reporting 0. I'd like to reallocate that unused/unallocated space to a bigger persistent rootfs and homefs.

I'm going to try to mount the old SD card and run remasterCC and see if that would have worked better.

many thanks,
Z

zephyr707
Forum Novice
Forum  Novice
Posts: 6
Joined: Wed Jan 23, 2019 5:33 pm

Re: Clone running live system not working as expected

#5

Post by zephyr707 » Wed Mar 13, 2019 11:58 pm

Ok, just booted back from the SD card and it exhibits the same behavior, so looks like I would have troubles remastering before cloning. I'm using persist_static if that makes a difference.

thanks in advance,
Z

User avatar
BitJam
Forum Guide
Forum Guide
Posts: 2916
Joined: Sat Aug 22, 2009 11:36 pm

Re: Clone running live system not working as expected

#6

Post by BitJam » Thu Mar 14, 2019 12:25 am

Again, I suggest you try using the version of live-usb-maker in my git repo. Boot with persistence disabled. Otherwise I will not try to copy the persistence file systems while they are active.

Edit: If you don't want to use the git version then you can do the clone and then manually copy over the persistence files (when they are not in use). The files are /antiX/rootfs and /antiX/homefs.
Will I cry when it's all over?
When I die will I see Heaven?

zephyr707
Forum Novice
Forum  Novice
Posts: 6
Joined: Wed Jan 23, 2019 5:33 pm

Re: Clone running live system not working as expected

#7

Post by zephyr707 » Fri Mar 15, 2019 1:59 am

Apologies, perhaps my previous reply was confusing. I was able to clone using something similar dolphin_oracle's option #3. I read/wrote an image using gnome disk utility, and that new image on the larger USB thumb drive worked, but I was exploring the remasterCC tool and it was saying there was no space. I booted from the old SD card and used gparted to resize and allocate more space on the new USB thumb drive and that seems to work, so I will try to remaster now, perhaps I should have created a new thread for that followup question.

Next time I clone I will try to use your git repo live-usb-maker and see how that works with the persistence. For now I will leave it and proceed with a remaster as I've changed a bunch of stuff on the SD card install and I don't want to clone that anymore and prefer to use the new USB thumb drive install/clone.

thanks for you help!
Z
BitJam wrote:
Thu Mar 14, 2019 12:25 am
Again, I suggest you try using the version of live-usb-maker in my git repo. Boot with persistence disabled. Otherwise I will not try to copy the persistence file systems while they are active.

Edit: If you don't want to use the git version then you can do the clone and then manually copy over the persistence files (when they are not in use). The files are /antiX/rootfs and /antiX/homefs.

Post Reply

Return to “Installation”