Creating a bootable flash drive allows you to install operating systems on any desktop you want while on the go, making it useful for those that have to constantly install operating systems in different locations. It is easy to create a bootable flash drive right from the Linux command line, just make sure that you have a spare USB to use as making a USB bootable often deletes the data on the USB that was there, to begin with.
The tool that we will be using to create our bootable flash drive is Ventoy. By creating a multiboot flash drive, you will be able to effectively carry operating systems on the go, allowing for great versatility when you need to constantly switch between different operating systems.
First, we will download and extract the Ventoy tarball into some directory of our choosing. I will be working in my home directory, but feel free to work in whatever directory you'd like. In your working directory, download and extract the tarball from the downloads page located here. You then should cd into that directory.
We will then need to find the directory path of the USB drive that we will be using. For this, you can use either
Either of these two commands will list the directory path of your USB. A common path is typically /dev/sdc, but yours may differ.
Next, we'll go ahead and run the following command in the current directory:
sudo sh Ventoy2Disk.sh -i /dev/sdc
Note that your USB path may vary, so change the directory path as fits your needs. After inputting the above command, follow the on-screen instructions for the installation process. Doing so should create a separate partition on your USB that you can verify with either fdisk or lsblk.
Your USB drive is now bootable! All you need to do now is copy operating system ISO files to the USB partition that was created (just copy the ISOs onto the USB, what is displayed will be the new partition.) You will then be able to store multiple ISOs on your USB to boot into whatever operating system suits your needs.
Article is closed for comments.