[SOLVED] Multiple bootable SO on a USB, along with the data?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is the image in your post from being booted into the system installed on your hard drive?
The image corresponds to what appears in Thunar when the USB is connected to the PC.
Quote:
it seems as if you expect your data directory to show in the boot menu? That won't happen.
Let it appear somewhere, anywhere but, in Ventoy, so that it can be accessed/USB.
I'm not an expert, I can't even follow any issue when it becomes a bit technical so I require of some 'tool' to help me to this end, if it doesn't exist, well there is no point for me, anyway thank you very much for the attempts ... cheers....
The ventoy website isn't clear on how to do persistence.
Download and extract.
ventoy-1.0.96-linux.tar.gz
run Ventoy2Disk.sh if ventoy drive isn't already setup
copy iso to ventoy directory
run CreatePersistentImg.sh to create persistence file and put into ventoy directory.
/persistence/ is a directory on the one live usb with persistence I've encountered. You do no more. Your OS makes any directories necessary and writes stuff in /persistence. So logs, home dirs, config changes, /proc and other live directories might be there.
Let it appear somewhere, anywhere but, in Ventoy, so that it can be accessed/USB.
For it to be accessible/available, you need to boot the usb with MX on it and as pointed out previously, create a mount point for Data which should be a separate partition and then mount that partition. You don't need persistence for this if you have a separate partition for data but you will need to mount it every time you boot which is not exactly a complicated process. Do you have a separate partition for your Data?
As we said before, when Ventoy installs itself on the USB it use all the space, formatting everything.
I don't seem to be explaining myself very well ...
Imagine I'm traveling, or I'm at work and I want to connect my *one USB* (I don't want to overload a keychain with more than one USB) to the PC they have at that place (and everywhere they use windows).
Do I make myself clearer now?
From what we have already seen, Ventoy is of no use to me at all. Thanks.
EDIT:
Maybe I should have said that it is of no use 'to me' other than just to have the data stored on the Ventoy/USB but I can't access it once I launch the system, it would be like a big storage with no interior compartments, they don't communicate ..., you have to exit one and enter the other 'from the outside' -- I can't surf the internet and listen to whatever music I have ... a big limitation.
This is what I have been raising from the beginning, now you conclude it as definitive.
Ventoy fails to do it, so if there is no other tool in Linux, the issue is not solvable, except maybe someone, an expert, who could manage to do it manually 'somehow'...
Thanks
You make the incorrect conclusion from misunderstanding the message. My fault, I should have made this more clear. You WANT the Ventoy and menu boot process to ignore your documents, otherwise it treats them as media to boot from: not a good idea. You want them unchanged by Ventoy so that you can access them from the running operating system after the boot is completed, and no matter what OS it happens to be.
What I meant to say is it is "easy", and you have taken that to mean "impossible".
As always with Linux, "There is more than one way to do it!". You just need to pick one and pursue it.
As we said before, when Ventoy installs itself on the USB it use all the space, formatting everything.
The xxx.dat file created with CreatePersistentImg.sh is a persistence container file to store data from the running ventoy iso. The xxx.dat file can be mounted from another linux system to access the data if needed.
Last edited by colorpurple21859; 12-25-2023 at 10:27 PM.
If you are familiar with gparted (partition managing tool), you could try using it when booted into your MX23 installed to the hard drive you referred to earlier. You could then plug in the usb drive you are trying to use for the Linux OS and data and shrink the partition on which Ventoy has installed it. After doing this, you can then create another partition you can use for data. The link below is to the gparted manual site. Scroll down the table of contents to the resizing a partition section and read through it.
We can't give you any more specific information as we do not know how many drives you have or how many partitions on the drives or which drive is the one you want to change. I had a flash drive with 3 Linux iso files on one partition, all of which booted using Grub and I shrunk that partition to create another partition just for data which can be accessed by mounting it from any of the 3 live systems. I would expect you could do the same but I have no idea if using Ventoy will have an impact as I never use that type software but simply install Grub to boot.
I can't resist pointing out that this is nearly certain to fall short, no matter what reason you have for creating it.
In theory, it sounds cool. In practise, you spend your time trying to remember how to do X or Y in this particular distro only to find that Z isn't set up yet so it doesn't work. So you boot another, and remember you actually detest this one. So as you slip off into another reboot, you realize how slow access to a usb is. Then you remember all your discussion & effort setting them up and asking yourself why you bothered.
Most of us find one or two distros we like well, and get familiar with them.
Move files off ventoy partition, delete ventoy partition, recreate at a smaller size Ventoy partition, move efi partition over next to ventoy partition, add data partition to end of drive, move files back onto ventoy partition.
Last edited by colorpurple21859; 12-26-2023 at 06:02 PM.
Reason: updated
Delete sda1 Ventoy partition, recreate sda1 at a smaller size exfat at beginning of drive labeled Ventoy, move sda2 VTOYEFI over next to the new exfat partition sda1, create data partition at end of drive. Will get a warning about moving beginning of partition when moving the efi partition. I did a test before posting.
Last edited by colorpurple21859; 12-27-2023 at 05:20 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.