How to prepare a more useful Ventoy usb stick for use with most KL distros
(an arrangement which may also prove useful for other forum distros)
(ADDED NOTE: you can also use Ventoy installed to hard disk as the main computer system bootloader per this related post: viewtopic.php?p=109858#p109858 )
Download the latest ventoy-XXX-linux.tar.gz from https://www.ventoy.net/en/download.html
and extract it.From terminal opened as root user at extracted ventoy do the following:
Make Ventoy disk with 4096MB space (or whatever you want) preserved at the bottom of the disk for session saving space (persistence), that we will Linux format in a moment.
CAUTION!!! This command will delete all data on the selected drive in the process of writing Ventoy to it!!!
USE AT YOUR OWN RISK
Code: Select all
./Ventoy2Disk.sh -I -r 4096 /dev/sdX # where X is usb stick drive letter
Use gparted to make the unallocated preserved space a new Linux formatted ext4 partition with LABEL "Persistence"
(I tried using parted commandline to do this, but couldn't find a way to refer to that unallocated space; if anyone knows how, please post to this thread).Finally, from terminal commandline turn off ext4 journal to lengthen life of usb stick:
Code: Select all
tune2fs -O ^has_journal /dev/sdX3 # where X is usb stick drive letter and 3 is the newly made (by gparted step above) third partition
- In the default exFAT Ventory first partition you should create a folder named BOOTISOS and store your KL distro isos there prior to booting via this Ventoy usb stick.
The advantages of this arrangement are:
a. Since the first partition of the usb stick is exFAT formatted it can also be read and written to by MS windows operating system.
b. KL distros generally provide a Ventoy grub menu that allows saving to a "Sessions" folder if any partition labelled "Persistence" that is Linux formatted (such as in the above arrangement) is found. The "Sessions" folder gets auto-created when needed.
c. It may be that other forum distros can arrange to have persistence working in same "Persistence" area.
The disadvantages are:
i. Only one partition should be given LABEL "Persistence" since needs to be unique.
ii. usb sticks may not be the best place to store session saves since may be slow and they are also not designed for heavy write operations.
An often better alternative to labelling that third partition above as "Persistence" would instead be to create a similarly made Linux formatted partition labelled "Persistence" on some other system drive, such as internal hard-drive/SSD for speed.
iii. Only KL distros that include exfat Linux kernel driver support will boot, and at this time only a few do (though more will likely follow).
If you don't require MS windows to be able to access sdX1 partition,
you can instead of the above simply reformat that first "Ventoy" partition as Linux formatted.
For example:
Code: Select all
mkfs.ext4 -O ^has_journal -L Ventoy /dev/sdX1
or use gparted GUI per earlier, and again create a folder /BOOTISOS there for you isos.
NOTES: Above methods work well to boot the at least the following KL distros including persistence support into Linux formatted partition having unique LABEL "Persistence" anywhere on system (e.g. 3rd partition of Ventoy stick described above):
KLV-Swayland iso from: viewtopic.php?p=101796#p101796
KLA-XFCEpodman iso from: viewtopic.php?p=86462#p86462
The smaller KLA-XFCEbase might too (EDIT: tested now, yes, works fine): viewtopic.php?p=81126#p81126
and KLU-jamXFCEbase (EDIT: tested now, yes, works fine): viewtopic.php?p=79399#p79399
I'll write an associate howto soon to show how to alternatively install this as a normal frugal installation on that same Ventoy stick, but for now, somewhat unsummarised details for doing that can be found here: viewtopic.php?p=100455#p100455