0

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:

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

  • 1
    Use ventoy.https://www.ventoy.net/en/index.html " I would like to do that with "dd" tool, " sure... but .... " but the how can I pick which one to launch?" you can't so no. Use ventoy. – Rinzwind Nov 25 '23 at 14:46
  • thank you for the reply, I edited the post. Isn't there another way to "pick which one to launch" without using an External program? For example, could I install grub on the USB so it lets me pick the ISO to launch?

    Edit, I saw that I can install grub on the usb using the command sudo grub-install /dev/sdb will this let me pick the ISO to load?

    – koxige9113 Nov 25 '23 at 15:00
  • 2
    You can install grub to flash drive, but have to manually create a grub boot stanza. And that can use loopmount to just mount & boot the ISO directly. I now prefer SSD with full install that already has grub, so I just add boot stanzas to 40_custom. https://www.supergrubdisk.org/wiki/Loopback.cfg & https://help.ubuntu.com/community/Grub2/ISOBoot & https://wiki.archlinux.org/title/Multiboot_USB_drive#GParted_Live – oldfred Nov 25 '23 at 18:46
  • Yes, you can create partitions on a thumb-drive, and thus 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 using grub something to select which you'll use. I"ve done it myself, alas not recently. – guiverc Nov 25 '23 at 21:33
  • Probably good old grub4dos is the way to go since Windows involved... – mgw Nov 26 '23 at 16:23

0 Answers0