13
December
2024
How to record a bootable USB FLash для antiX MX Linux с Постоянством (perSistence)
12:00

How to record a bootable USB FLash для antiX / MX Linux с Постоянством (perSistence)

13 December 2024 12:00

The article lists the methods of recording a Live flash drive with constancy.

The usual ways to recording the ISO of the image - DD and Balena Etcher, org.fedoraproject.MediaWriter не подходят для записи полнофункционального (с функцией Постоянства, т.е. сохранения состояния между перезагрузками) загрузочного USB диска aNTIX or MX Linux.
So that the bootable USB flash drive can maintain constancy (resistance), or "PErsistence" между сеансами, нужно иметь свободное место на разделе для сохранения данных, а файловая система первого раздела с флагом boot должна быть ext4 или fat32 или exFAT и занимать почти всё свободное место USB диска, а второй маленький раздел efs с флагом esp в faT32.

Copying the image from ISO to USB FLash "байт за байтом" при помощи dd или balena Etcher или Fedora MediaWriter не резервируют пространство для данных. Получается раздел ISO9660 - такой же как на DVD-R с файловой системой Joliet, которая занимает начальные 2 ГБ флешки. Оставшееся от объёма USB диска свободное пространство пропадает, добавить его к разделу с данными не получится, т.к. раздел ISO9660 зафиксирован, как будто это CDFS на "DVD-R" диске.

Loading the image of ISO ANTIX Linux (see link)

*https: //antixlinux.com/torrent-files/ - выбрать старую SysVInit или новую ruinit и разрядность (обычно x64). Например, выбираю вариант Download antiX-23.2_x64-runit-full - полный дистрибутив x64 с системой инициализации служб ruinit и с офисным пакетом Open Office. Скачиваю файл antiX ISO с помощью программы Transmission.

The correct distribution of disk space (breakdown) under Live usb with constancy

Almost all free space is reserved for the first section of the system and "constancy".
antix-liveusb-gparTed

Ways to create a correct loading disk forantiX / MX Linux с хранением состояния (с Постоянством, "PerSistence ")

1) rufus (Windows utility with a graphic interface)
2) live-USB-maker (linux, text interface)
3) mx_live_usb_maker (linux, graphic interface)
4) Live USBmaker" (live-usb-maker) из сеанса antiX / MX Linux (Linux antiX/MX, graphic interface)

Method No. 1 - Windows Appendix "Rufus"

https: //rufus.ie/ru/ Недостаток: для загрузчика UEFI программа "ругается" на некорректный код и загружает его из Интернет. При отсутствии последнего, записать USB-диск не получится. В остальном, программа rufus с созданием загрузочной флешки USB справляется отлично — загрузочный диск antiX, созданный rufus, you can use it.

Method No. 2- console Linux application "Live-USB-maker"

The image of the ISO system Antix or MX before starting to put in the home folder ~ (so that there are no problems with the paths).

sudo apt-get update
sudo apt-get instaLL Git
git clone https://github.com/BitJam/live-usb-maker
git clone https://github.com/BitJam/Cli-Shell-Utils
sudo apt instaLL Extlinux

Preparation:

cd live-usb-maker
locale # запомните текущий язык language
export LANGUAGE=en_US.UTF-8

Launch:

sudo ./live-usb-maker

Before recording, answer the program questions. We are interested in full-functional (Full-FeaturED) Live-USB boot disk
usb_maker_text_mOde
Choosing points - Ente keyr. На одном из шагов будет предложено указать путь к файлу ISO. Я указывал абсолютный путь, например /home/user/disk.iso
In order not to encounter the problems of encoding and text input, I transferred the ISO file to the home folder.

After recording the disk, you can return the console settings to the Locale of the current language. In my case:

 export LANGUAGE=ru_RU:ru

Language variable transition is needed for the correct operation of the program (otherwise it will not be able to determine the size of the USB disk).

Launch in automatic (not dialogue, i.e. no question) mode:

export LANGUAGE=en_US.UTF-8
lsblk
sudo ./live-usb-maker gui --from="/home/user/antiX-23.2_x64-full.iso" --target=/dev/SDX

Where is the SDX - indicate -target USB disk, for example, SDB, on which we want to record the image of the ISO loading LiveCD.
running_live-usb-maker

Live-USB applicationmaker создаст таблицу разделов MBR на основе образа aNTIX two sections

Filesystem     Type  Size  Mounted on
/DEV/SDB1 Ext4 15gmain
/DEV/SDB2 VFat   49M   uefi

After the recording is completed, you need to safely extract a USB medium, because The recording can go for about a minute.
On the panel next to the clock, click "extract". Or we look at the LED LED “flash drive” (if any): after the end of the recording, it will stop flashing.

Eject

The bootable "flash drive" of the LiveCd Antix is suitable for both BIOS and UEFI computers.

Method No. 3-Linux application "MX-Live-USB-maker" в формате AppImaGE

MX-Live-USB programmaker входит в состав ОС aNTIX and MX Linux (see method 4), but it can be launched in almost any Linux operating system as an executable file.
Appimage - переносимый формат приложений для любых ОС Linux. Приложение не нужно устанавливать, т.к. оно распространяется в виде пакета с расширением .AppImaGE.

Loading page mx_live_usb_maker x86_64 .AppImage - https://github.com/dolphinoracle/lum-qt-appimage/releaSES

Download the ZIP file containing Appimag, remove it to the current folder

unzip -j MX_Live_USB_Maker-24.6.glibc2.28-x86_64.AppImaGE.ZIP

(key -j - do not recreate the structure of folders)

To launch the application:

export LANGUAGE=en_US.UTF-8
sudo ./MX_Live_USB_Maker-24.6.glibc2.28-x86_64.AppImaGE

Graphic program interfacemx_live_usb_maker чем-то похож на rufus.

mx_live_from_appimaGE

The application after indicating the parameters will launch the same console utility as in method No. 2, but with other keys. Therefore, it is necessary to convey a new value of the variable environment export LANGUAGE=en_US.UTF-8 перед её вызовом. После установки указанной переменной, программа выполняет запись USB без ошибок.

The USB record ends with checking the control amounts. You need to wait for the complete completion of the utility - the appearance in the center of the screen with the "OK" button.
Success

Method No. 4 - launch from a working graphic sessionantiX утилиты Живой USB Maker

1) load from a flash drive or a hard drive or an Antix or MX Linux virtual machine.
2) use the utility that is already present in the OS in the program menu.

The utility for recording full -function USB loading discs from the ISO image is available in the Start menu OS Antix or MX Linux.

mx_maker_Live

In MX Linux, it can also be selected from tools:
mx_instrumENTS

Appearance:

Live_usb_maker

As usual, we choose what to write down (ISO-file), and for what (USB carrier).

Reserve free space forrootfs или homefs не требуется. Так как все изменяемые данные rootfs и homefs в режиме "perSistence " is recorded in the first section on the flash drive next to the image of the Linuxfs operating system image. The size of the flash drive is desirable 16 GB, but it is possible to record 4 GB on a USB disk without the possibility of updating packages.


Data changes: 04/17/2025.



Related publications