I have a 16 GB Pendrive and I would like to put Windows 11 ISO and Ubuntu 22.04 ISO and make it bootable. I would like to pick the ISO to launch every time the USB is inserted.
I saw that there are some programs that do that:
- How to write two install .iso (for example windows and linux) on one flash?
- How to create a bootable USB with multiple ISO images in it
But they use an external program to do that. I would like to do that with "dd" tool, for example as they do in this thread: How to burn a Windows .iso to a USB device?
using the command sudo dd bs=4M if=[your.iso] of=/dev/sd[X]
Is that possible? Maybe I should create 2 partition on the USB, one for Windows one for Linux, but the how can I pick which one to launch?
EDIT: If there is another way to do that without DD but that does not require to install an external program, I would be glad to hear
Edit, I saw that I can install grub on the usb using the command
– koxige9113 Nov 25 '23 at 15:00sudo grub-install /dev/sdb
will this let me pick the ISO to load?dd
to write anything you like (including ISOs) to partitions, allowing many to co-exist. This will confuse most boot loaders (firmware of boxes that start the boot process), but you can jimmy up usinggrub
something to select which you'll use. I"ve done it myself, alas not recently. – guiverc Nov 25 '23 at 21:33