Create USB drive contains multi Ubuntu versions, HBCD-PE-64 and multi Windows installation
In this guide we will recognize how to use Ubuntu to make multiboot USB drive contains:
- multi Ubuntu versions in the boot menu.
- the ability to boot from ISO file or from folder.
- the ability to boot from USB partition/s (especially for HBCD PE or Windows installation).
- no need to use any especial multiboot creation tool.
- no need to make more than one partition.
- all files in your USB drive will be in read/write order.
Our steps in this guide to Create USB drive contains multi Ubuntu versions, HBCD-PE-64 and multi Windows installation:
1- prepare the USB drive by Ubuntu disks utility.
2- install grub2 and boot files to the USB drive.
3- copy your ISO files and other folders to the USB drive.
4- edit boot menu.
5- examin more than one Linux/Ubuntu from your new multiboot USB drive.
6- easy method to repair/install Windows (no need to boot by Windows ISO).
1- prepare the USB drive by disks utility:
format the -16 gb- USB disk by disk utility, choose (MRB/DOS), creat NFTS partition this very usfull fore files > 4 gb, flage the partition to bootable.
2- install grub2 and boot menu to the USB drive:
mount the USB drive in /mnt by terminal or by disk utility
install grub2 bootloader to the USB drive:
3&4- copy your iso files and other folders to the USB drive and edit boot menu:
at the first copy one Ubuntu ISO file to USB drive root directory, open your text editor and write the new
boot/grub/grub.cfg
or copy one from any Ubuntu ISO and edit it to make your new boot menu entry. as a example i started my work by Ubuntu budgie ISO and mygrub.cfg
seems like this:save the `grub.cfg` file and reboot by your USB drive to test your work, you can login to the first ISO, continue copy the second ISO and add the new menu entry.
Especially for **Ubuntu 23.04** we will add new line to our entry so we can login to test Ubuntu 23.04 not to install it. our neW entry will seems like this:
if you delete `layerfs-path=minimal.standard.live.squashfs` you will login directly to install ubuntu 23.04 so you can add other menu entry for that and it will seems lik this:
Feel free to try any other Ubuntu/Linux ISO file and adjust the new menu entry by the new ISO file name.
Now we will try to copy folders from Ubuntu 22.04 ISO to our USB drive root and add menu entry to boot from this folders, you will copy all ubuntu 22.04 folders except boot folder. our new entry will seems like this;
I use this way because i make a backup from Ubuntu partiton to filesystem.squashfs file so if i make new one or added new thing to my Ubuntu i will replace it in this (casper) folder and no need to replace all Ubuntu ISO for 22.04 version.
note: all of this menu entrys will boot directly to try or install ubuntu except 23.04 adjusted entry will boot to install ubuntu.
Feel free to choose other version and reboot by USB drive to test your work.
Our last entry will be about another OS like Windows or HBCD PE 64 which builded on Windows 10 64 bit, this very useful tool to repair and install any Windows on your hard disk, with this entry you will need to one file from any Windows ISO and no need to boot by Windows ISO file to fix any problem or make new installation.
Copy all folders -except boot folder just copy its enternal files to boot folder- from hbcd-pe-64.iso to the USB drive root and add this menu entry:
Replace
55DD0595418E5BFC
by your USB drive uuid that can be known from disk utility.if you dont want HBCD you can replace it by any windows 7/8/10/11 files by the same way but just chang menu entry name, dont chang any other thing. by this way you can boot by other partition if you have, let we say another windows version files from other partiton.
Feel free to reboot by USB drive and test your last entry.
note: with any Wndows pe version you must add its folders to the USB root, any Windows installation version its folders can be set to folder in the root except sources folder must be in the root.
6- How to repair/install Windows (no need to boot by win ISO) from our new USB drive:
Extract
/sources/install.wim
from Windows ISO to you USB drive, if you want multi Windows versions you will rename any new extractedinstall.wim
so you will be informed which file to install.After login in to HBCD open WINNTSETUP programe and choose the appropriate install.wim, Windows partitions, installation settings. after WINNTSETUP finished you can reboot to your new Windows.
note: install windows will delete grub boot loader frome your hard disk so if you installed ubuntu you will have to use boot-repair or ubuntu live USB to restore grub boot loader and add Windows entrys to grub menu so no need to windows boot loader again.
To repair Windows from HBCD you will find many tools like EASYBCD to edit/creat Windows boot menu entrys or install Windows boot loader to your hard disk but same the Windows installation this will delete grub boot loader. ther are many other tools in Hbcd like backup/restor, format/partition, test/fix, and more you can explore them.
Finally i hope this guide will help as an introduction to customize your multiboot USB that totally will created in ubuntu.
Create USB drive Windows and multiboot Ubuntu
Use Rufus to make Windows To Go USB.
Use
Windows Disk Management
to clear space and make a partition for each Linux, (Ubuntu), install on the USB.Using
something else
, install an Ubuntu version to each of the USB partitions, same as when creating Windows-Ubuntu dual boot. Install Ubuntu in same BIOS-UEFI mode Windows is installed inWhen done boot Ubuntu and run
sudo update grub
, to add all OS to GRUB boot loader.Note: This method creates Full installs of Windows and Linux to USB, not Live installs. Full installs can not be used to install Ubuntu and Windows.