Re-install with Live USB key

When you run into problems installing MX Linux XFCE
Message
Author
MazeMouse
Posts: 7
Joined: Sat May 21, 2022 3:22 am

Re-install with Live USB key

#1 Post by MazeMouse »

Hi,

I would like to know how I can re-install a MX-iso over a previously made live USB with persistent. But keeping the used storage vfat partition. (Before I do something wrong). I would like to use the Live-Usb-maker gui.
Can someone point me in the right direction for the correct steps?
Thanks

User avatar
fehlix
Developer
Posts: 12916
Joined: Wed Apr 11, 2018 5:09 pm

Re: Re-install with Live USB key

#2 Post by fehlix »

MazeMouse wrote: Sat May 21, 2022 3:09 pm Hi,

I would like to know how I can re-install a MX-iso over a previously made live USB with persistent. But keeping the used storage vfat partition. (Before I do something wrong). I would like to use the Live-Usb-maker gui.
Can someone point me in the right direction for the correct steps?
Thanks
Better create a new one from scratch.
"storage vfat" - sound like a Rufus made one, which has the limitation of vfat's 4GB file size limit.
"MX Live USB Maker" - full feature mode - will create ext4 filesystem on the partition "Live-usb-storage" is located on.

User avatar
figueroa
Posts: 1106
Joined: Thu Dec 20, 2018 11:20 pm

Re: Re-install with Live USB key

#3 Post by figueroa »

If your personal files in your persistent storage are of any value to you, BACK THEM UP. Then on any new or overwritten USB drive, you can restore them at your convenience. The small vfat partition on your MX-Live-USB is only used for UEFI booting and should contain no persistence files.
Andy Figueroa
Using Unix from 1984; GNU/Linux from 1993

User avatar
BitJam
Developer
Posts: 2303
Joined: Sat Aug 22, 2009 11:36 pm

Re: Re-install with Live USB key

#4 Post by BitJam »

MazeMouse wrote: Sat May 21, 2022 3:09 pmI would like to know how I can re-install a MX-iso over a previously made live USB with persistent. But keeping the used storage vfat partition. (Before I do something wrong). I would like to use the Live-Usb-maker gui.
I don't think the gui version of live-usb-maker (LUM) has this feature (someone please correct me if I'm wrong) but it can be done with the cli version of LUM by selecting "Other options" and then "Update the OS on an existing live-usb (experimental)". You need to be sure to enable a storage partition so the program knows which partition holds the live OS.

Here is a way to do it all on the command line (which is probably the best way):

Code: Select all

sudo live-usb-maker --from $iso_file --target $usb_device --data-first --pretend copy-main
where $iso_file is the full path to the iso file with the new OS and $usb_device is the device name of the live-usb such as "/dev/sdd" or simply "sdd" (which does the same thing). The --pretend option will keep it from actually writing to the device so you can first see if it all looks correct. The "copy-main" command tells the program to copy files from the iso file to the main (OS/live) partition but don't do anything else. You could also add the "check-usb-md5" command to make sure the files copied over did not get corrupted.

You can also do it manually. Mount the iso file that you want to use for the OS update. I use the cli program iso-mount for this but there are probably gui ways to do it. Then mount the OS/live partition of the live-usb. Finally, copy the contents of the mounted iso file to the OS/live partition of the live-usb. This is basically what the copy-main command above does above.

Note that when you update the live OS, the existing root persistence file will not work. It would be best to just delete it. On the mounted live partition it lives at:

Code: Select all

/antiX/rootfs
Note that both MX and antiX use a top level "antiX" directory for the live system. This was not my idea but it turned out to be a really good move because it made a number of things much simpler.
"The first principle is that you must not fool yourself -- and you are the easiest person to fool."

-- Richard Feynman

MazeMouse
Posts: 7
Joined: Sat May 21, 2022 3:22 am

Re: Re-install with Live USB key

#5 Post by MazeMouse »

Thanks everyone. I backed up my things safely.

@BitJam I have found the update function in the advanced settings with MX Live usb maker and I can conform this worked for me. The boot menu remained the same but doesn't hinder me. Thank you.

Post Reply

Return to “Installation”