[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.
keos@keos:~
$ cd Downloads
keos@keos:~/Downloads
$ cd ventoy-1.0.96
keos@keos:~/Downloads/ventoy-1.0.96
$ sudo sh Ventoy2Disk.sh -r 321240 -I /dev/sda
[sudo] password for keos:
**********************************************
Ventoy: 1.0.96 x86_64
longpanda admin@ventoy.net
https://www.ventoy.net
**********************************************
Disk : /dev/sda
Model: USB SanDisk 3.2Gen1 (scsi)
Size : 460 GB
Style: MBR
You will reserve 321240 MB disk space
Attention:
You will install Ventoy to /dev/sda.
All the data on the disk /dev/sda will be lost!!!
Continue? (y/n) y
All the data on the disk /dev/sda will be lost!!!
Double-check. Continue? (y/n) y
Create partitions on /dev/sda by parted in MBR style ...
Done
Wait for partitions ...
partition exist OK
create efi fat fs /dev/sda2 ...
mkfs.fat 4.2 (2021-01-31)
success
Wait for partitions ...
/dev/sda1 exist OK
/dev/sda2 exist OK
partition exist OK
Format partition 1 /dev/sda1 ...
mkexfatfs 1.3.0
Creating... done.
Flushing... done.
File system created successfully.
mkexfatfs success
writing data to disk ...
sync data ...
esp partition processing ...
Install Ventoy to /dev/sda successfully finished.
keos@keos:~/Downloads/ventoy-1.0.96
$
And it looks like this now in Gparted.
I add the ISO and the 'data' in this form:
Then I go to the BIOS, make the changes, open ventoy, the operating system appears.
I go for the data to the option,
'F2: Browse' > windows open:
DISK (hd0,msdos3) [] fat 313 GB
DIR [Documents]
[hd0,3/Documents/...]
DIR [chess]
DIR [linux] DIR [linux]
(hd03)/Documents/chess/..]
Only these file names appear, there is nothing in existence, as before, there is no data anywhere ...
That 32.0 KiB Documents directory looks like "data" to me. What data would you expect to find on a 300G volume that you never put anything on?
I suggest you attach a volume label to your 300G volume. Before doing that, consider what you intend to put there. If you'll only be using it with Linux, EXT4 could be a much more appropriate filesystem.
Instead of attaching pictures, copy and paste from the terminal the commands issued with their outputs. It should make understanding what you did clear, unlike your narrative.
Now, as you indicate i changed to ext4 and labeled it as data but when trying to add the data (in thunar, but no as root) i found it is no possible to do this, and error:
After running the commands in post 61, did you use gparted to create a ntfs and/or fat32 partition in the empty space at the end of the drive to store your files and/or one for persistence?
Last edited by colorpurple21859; 12-28-2023 at 03:45 PM.
You need to create an EXT4 partition in the unallocated space. Once it has been created, it needs to be formatted. The mkfs.ext4 command is one that can do this. I don't use gparted, so don't know if it has this capability.
gparted formats a new partition to whatever is selected during creation. Gparted is able to format an existing partition to a different filesystem.
Create a partition in the empty 300gb free space for file storage, if using ext4, permissions will need to be adjusted to be able to access files by any user as you will be booting iso files to access the data, henceforth the suggestion to use ntfs file system.
Last edited by colorpurple21859; 12-28-2023 at 05:23 PM.
You keep referring to the fact that there is no data on the partition but make no mention of how any data would get there. As asked in post 62, what data? You are repeatedly creating a new partition and formatting it which destroys any data that may have been on it but make no mention of what data you may have put on the partition or how you put it there.
Are the images you are posting taken from the installed MX Linux or from the MX Linux iso on the Ventoy flash drive? If you have actually copied or tried to copy data to that data partition (sda3?), how did you do it? Did you do it from the installed MX Linux?
The above is from your earlier post which indicates you need root/subo permissions to create a document under /media/keos/data. Is this being done from your installed MX or from the flash drive? If you were able to copy something using root, how did you check to see if it was copied and available? Did you try mounting the partition?
Create a partition in the empty 300gb free space for file storage, if using ext4, permissions will need to be adjusted to be able to access files by any user as you will be booting iso files to access the data, henceforth the suggestion to use ntfs file system.
Sorry but somewhat confusing to my poor understanding, you indicate first that I should format it for ext4, correct, I understand this, but then you suggest later "something" related to 'nfts', I don't follow this ...
I had previously formatted in ext4 and when I added the data, it did not appear ... what could I have done wrong before in order to avoid it now?.
@yancek,
How should the data be added? Maybe this/here is my mistake.
EDIT:
Just in case,
MORE INFORMATION:
Code:
keos@keos:~
$ sudo fdisk -l
[sudo] password for keos:
Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: PC SN520 NVMe WDC 256GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: D3C3AE91-35A3-4FC3-8778-09C16F235FCF
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 3002367 3000320 1.4G EFI System
/dev/nvme0n1p2 3002368 5984255 2981888 1.4G Linux swap
/dev/nvme0n1p3 5984256 88997887 83013632 39.6G Linux root (x86)
/dev/nvme0n1p4 88997888 184377343 95379456 45.5G Linux filesystem
/dev/nvme0n1p5 184377344 286676991 102299648 48.8G Linux filesystem
Disk /dev/sda: 460.27 GiB, 494206451712 bytes, 965246976 sectors
Disk model: SanDisk 3.2Gen1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x3f4c9d7b
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 307281919 307279872 146.5G 7 HPFS/NTFS/exFAT
/dev/sda2 307281920 307347455 65536 32M ef EFI (FAT-12/16/32)
/dev/sda3 307347456 965246975 657899520 313.7G 83 Linux
keos@keos:~
$
You might be a little more clear about how you tried to add data to this partition. Are you moving or copying files/folders from your install of MX Linux on the internal drive? Are you doing this from a terminal? Or are you using a file manager? When you copied or moved data, did you get any warning or error messages? If you did, what were they? If you do not see any warning or error messages, what do you mean by the data did not appear? Did you boot the iso on the usb (sda) to try to access? Did you mount the data partition before you did this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.