How to Use Ventoy2Disk from the Terminal to Create Bootable USBs | VMoreCloud
VMoreCloud › Linux & Open Source › Bootable Media › Ventoy
LINUX • VENTOY • TERMINAL • BOOTABLE USB

How to Use Ventoy2Disk from the Terminal to Create Bootable USBs

Create a multiboot USB drive from Linux with Ventoy2Disk.sh, then boot supported Windows, Linux, and other image files without rewriting the USB for every ISO.

Author: Khurram Shahzad
Platform: Linux
Technology: Ventoy / USB media
Method: Terminal / CLI
Level: Beginner–Intermediate
Reading Time: 10–12 minutes

Create One USB for Multiple ISO Images

Install Ventoy once, copy image files to the USB data partition, and select an image from Ventoy’s boot menu when the computer starts.

Featured image idea: a terminal showing sudo sh Ventoy2Disk.sh -i /dev/sdX beside a USB drive and several OS ISO tiles.

WordPress featured image: This hero section is an in-article visual placeholder. Upload a separate 16:9 featured image in WordPress for post cards, social previews, and the page header. Suggested alt text: “Ventoy2Disk terminal commands for creating a multiboot bootable USB drive.”

Important data-loss warningInstalling Ventoy with -i or force-installing with -I repartitions the selected disk and erases its existing data. Confirm the USB device by name, size, and model before running any install command. Never guess the device path.
01

Identify the USB

Use lsblk and verify the whole-disk device, not a partition.

02

Install Ventoy once

Run Ventoy2Disk.sh with the install command for the correct device.

03

Copy ISO files

Copy supported images as ordinary files onto Ventoy’s large data partition.

Introduction

Ventoy is an open-source tool for creating multiboot USB media. Unlike a traditional image writer that usually writes one ISO to a drive, Ventoy is installed on the USB drive and lets you copy supported image files to its data partition. At boot, Ventoy presents a menu from which you choose an image.

This guide focuses on the Linux command-line utility Ventoy2Disk.sh, often referred to as Ventoy2Disk. The examples use a placeholder device such as /dev/sdX; replace it only after identifying your actual USB drive.

How Ventoy Works

During installation, Ventoy creates its boot and data partition layout on the selected disk. You then copy ISO and other supported image files to the main data partition. Ventoy searches directories recursively for supported image files and lists them in its boot menu.

Key differenceYou generally do not need to run Ventoy2Disk again every time you add a new ISO. Install Ventoy, copy images as files, and safely eject the USB. Use the update operation when updating an existing Ventoy installation.

Boot success depends on the target computer’s firmware, Secure Boot configuration, and the particular image. Test important installation media before relying on it.

Prerequisites

  • A Linux computer with terminal access and administrator privileges through sudo.
  • A USB drive with enough capacity for Ventoy and your ISO files.
  • A backup of all files on the USB drive.
  • The official Ventoy Linux release archive from the Ventoy download page.
  • ISO files from trusted publishers, ideally with their checksums or signatures verified.

Commands such as lsblk, findmnt, cp, and sudo are available on most mainstream Linux distributions. Install any missing utility through your distribution’s package manager.

Step 1: Download and Extract Ventoy

Open the official download page and choose the current Linux archive. Avoid third-party download sites. The release filename includes a version number, so your filename may differ from the example below.

1.1 Move to your downloads directory

cd ~/Downloads
ls -lh

Download the Linux .tar.gz archive using your browser or the download link provided by Ventoy. If using a terminal downloader, copy the exact current archive URL from the official page rather than relying on a guessed version-specific URL.

1.2 Extract the archive

tar -xzf ventoy-*-linux.tar.gz
ls -d ventoy-*-linux

If the wildcard matches more than one archive, specify the exact filename in the tar command. Change into the extracted release directory:

cd ventoy-*-linux
ls

You should see Ventoy2Disk.sh and the supporting Ventoy directories. Run the script from the extracted release package, not from an arbitrary directory or a source-code checkout.

Step 2: Identify the USB Device Carefully

Connect the USB drive and list disks with filesystem, size, mountpoint, and model information:

lsblk -o NAME,PATH,SIZE,MODEL,TRAN,TYPE,FSTYPE,MOUNTPOINTS

Example output (illustrative only; your device names and sizes will differ):

NAME   PATH      SIZE MODEL            TRAN   TYPE FSTYPE MOUNTPOINTS
sda    /dev/sda  1.0T Internal SSD             disk
├─sda1 /dev/sda1  512M                        part vfat   /boot/efi
└─sda2 /dev/sda2  999G                        part ext4   /
sdb    /dev/sdb   32G USB Flash Drive  usb    disk
└─sdb1 /dev/sdb1   32G                        part exfat  /media/user/USB

In this example, /dev/sdb appears to be the 32 GB USB device. Confirm it using your actual output, manufacturer/model, transport type, and physical device. Do not copy the example path blindly.

Use the whole diskPass a device such as /dev/sdb or the appropriate whole-disk device for your hardware. Do not pass a partition such as /dev/sdb1. On some systems USB devices may appear as /dev/sdX; NVMe or other device naming conventions can differ.

For a second view, you can run:

sudo fdisk -l

Before installation, close applications using the USB and unmount its mounted partitions. Replace the example partition name below with the partition(s) that your own lsblk output shows for the USB:

sudo umount /dev/sdX1

If the USB has more than one mounted partition, unmount each relevant partition. Do not run the example command literally with /dev/sdX1; it is a placeholder.

Step 3: Install Ventoy from the Terminal

From the extracted Ventoy directory, run the install command with the confirmed whole-disk path. For example, if you verified that the USB is /dev/sdb:

sudo sh Ventoy2Disk.sh -i /dev/sdb

The -i option installs Ventoy and refuses to install over a disk that already contains a Ventoy installation. Read the terminal output and any confirmation prompt before proceeding. If the selected device is wrong, stop instead of confirming.

Optional: Use GPT partitioning

Ventoy uses MBR by default for a fresh install. If you specifically need GPT, add -g during installation:

sudo sh Ventoy2Disk.sh -i -g /dev/sdb

Choose MBR or GPT based on the target hardware and your deployment requirements. The partition-style option applies to installation, not ordinary updates.

Optional: Secure Boot support

Ventoy documents the -s option for enabling Secure Boot support. The default behaviour can differ between release versions and documentation, so check the usage text included with the version you downloaded and choose deliberately:

sudo sh Ventoy2Disk.sh -i -s /dev/sdb

Secure Boot workflows may require an enrollment or confirmation step on the target computer. Do not assume that selecting this option guarantees every ISO will boot under every firmware policy.

Optional: Reserve space at the end of the disk

The -r option can reserve a specified amount of space in MiB at the end of the USB during installation. For example, to reserve 1024 MiB:

sudo sh Ventoy2Disk.sh -i -r 1024 /dev/sdb

Use this only if you understand why you need reserved space. Confirm the supported syntax in your bundled version’s usage output.

Wait until the script reports that the operation completed successfully. Do not disconnect the drive while the partition table or boot files are being written.

Step 4: Copy ISO Files to the Ventoy USB

After installation, unplug and reconnect the USB if your desktop does not automatically show the new data partition. Use lsblk to find the main Ventoy data partition and its mountpoint.

lsblk -o NAME,SIZE,FSTYPE,LABEL,MOUNTPOINTS

Once the data partition is mounted, copy ISO files to it as ordinary files. In the example below, replace the source ISO path and destination mountpoint with the paths on your system:

cp ~/Downloads/debian.iso /media/$USER/Ventoy/

You can create folders to keep images organised:

mkdir -p /media/$USER/Ventoy/ISO/Linux
mkdir -p /media/$USER/Ventoy/ISO/Windows
cp ~/Downloads/linux-live.iso /media/$USER/Ventoy/ISO/Linux/
cp ~/Downloads/windows-installer.iso /media/$USER/Ventoy/ISO/Windows/

The paths are examples; desktop environments may mount the partition under a different directory. You can also use a graphical file manager. Ventoy scans directories and subdirectories for supported image files, so you do not have to keep all ISOs in the root folder.

When copying finishes, flush pending writes and safely eject or unmount the drive:

sync
udisksctl unmount -b /dev/sdX1

Replace /dev/sdX1 with the actual data partition. If you use a desktop’s eject function, follow its completion notification before unplugging the drive.

Useful Ventoy2Disk Commands

These are the principal Linux CLI operations documented by Ventoy. Substitute your verified whole-disk device for /dev/sdX.

CommandPurposeImportant note
sudo sh Ventoy2Disk.sh -i /dev/sdXInstall VentoyRecreates the target disk layout and erases its existing data.
sudo sh Ventoy2Disk.sh -I /dev/sdXForce installationUse only when you intentionally want to force install; data loss risk remains.
sudo sh Ventoy2Disk.sh -u /dev/sdXUpdate an existing Ventoy installationNormally preserves files on the main data partition, but backups are still recommended.
sudo sh Ventoy2Disk.sh -l /dev/sdXList Ventoy informationUseful for checking the installed version and disk information.
sudo sh Ventoy2Disk.sh -i -g /dev/sdXInstall using GPTInstall-time option; decide partition style before creating the drive.
sudo sh Ventoy2Disk.sh -i -s /dev/sdXRequest Secure Boot supportCheck the version-specific usage text and test on target firmware.

Install versus update: use -i for a new Ventoy drive, and -u when updating an existing Ventoy installation. Do not use -I as a routine update shortcut. Back up important data before changing a boot drive.

Step 5: Verify and Test the Bootable USB

  1. Run lsblk and confirm the expected Ventoy data partition exists.
  2. Optionally check the installed Ventoy details using the list operation:
sudo sh Ventoy2Disk.sh -l /dev/sdb

Replace /dev/sdb with your verified USB disk. The script may show version and partition information for a Ventoy-formatted device.

  1. Confirm the intended ISO files are present on the data partition.
  2. Safely eject the USB and connect it to the target computer.
  3. Open the machine’s one-time boot menu and select the USB device.
  4. Choose an ISO from Ventoy’s menu and test that it starts correctly.

Firmware menu keys vary by vendor. Secure Boot, UEFI/Legacy settings, the ISO itself, and device compatibility can affect the result. Test Windows and Linux installation media separately if both are important to your workflow.

Troubleshooting

“Permission denied” or the script will not run

Run the script with administrator privileges as shown in the official usage examples. Make sure you extracted the official release archive and are running the script from its extracted directory.

sudo sh Ventoy2Disk.sh -i /dev/sdX

Replace the placeholder only after identifying the disk.

Ventoy reports that the device is a partition

You probably specified a partition such as /dev/sdb1. Identify the parent disk with lsblk and pass the whole-disk device, such as /dev/sdb, only after verifying it.

The USB does not appear or is busy

Try another USB port, reconnect the device, inspect lsblk, and close file managers or processes using the mounted filesystem. Unmount the USB’s mounted partitions before installation.

The Ventoy boot menu appears, but an ISO fails to boot

Verify the ISO’s integrity, try a known-good image, and check the target computer’s UEFI/Legacy and Secure Boot settings. Compatibility is image- and firmware-dependent; consult the official FAQ and image-specific documentation.

Files are missing after installation

Installation can erase the target disk. Stop writing to the drive and check your backups. Do not assume the old contents can be recovered; reinstalling Ventoy is not a substitute for a backup.

Security and Best Practices

  • Verify the target device twice. Compare size, model, and device path before confirming an install.
  • Back up first. Treat Ventoy installation as a destructive disk operation.
  • Download from the official project. Prefer the Ventoy website and project releases, and verify published checksums where available.
  • Use trusted ISO images. Validate checksums or signatures from the operating-system vendor when offered.
  • Keep a recovery copy. Store essential ISO files elsewhere before updating Ventoy or rebuilding a USB.
  • Test before deployment. Check boot behaviour on the actual systems where the media will be used.
  • Use Secure Boot intentionally. Confirm the settings and enrollment requirements for the specific Ventoy version and target device.

Frequently Asked Questions

Do I need to install Ventoy again for every ISO?

No. After Ventoy is installed, you can normally copy additional supported image files to the USB data partition without reinstalling Ventoy.

Can I put multiple ISO files on one USB drive?

Yes. Ventoy is designed for multiboot use. Copy multiple supported image files to the data partition and choose the desired one from the boot menu.

Does the command format the USB?

Installing Ventoy repartitions the selected disk and erases existing data. Always back up the drive and verify the device path before confirming.

Should I use -i or -I?

Use -i for a normal installation on a disk that does not already have Ventoy. -I forces installation regardless of the existing Ventoy state and should be used only when intentionally required.

Will the USB boot on every computer?

No tool can guarantee compatibility with every firmware and every image. UEFI/Legacy mode, Secure Boot, image support, and hardware differences can affect booting.

Can I update Ventoy without deleting the ISO files?

The documented update operation is designed to update Ventoy while preserving files on the main data partition. Still, back up valuable files before any disk operation.

Conclusion

Ventoy2Disk.sh provides a straightforward way to create a multiboot USB from the Linux terminal. Identify the correct whole disk, install Ventoy using the documented CLI, copy ISO files to the data partition, and test the USB on the target hardware. The most important step is disk verification: an incorrect device selection can destroy data on an internal drive.

For command syntax and version-specific behaviour, refer to the official Ventoy documentation and the usage text included with your downloaded release.

References and Sources

KS

About the Author

Khurram Shahzad — Hybrid Cloud & Virtualization Engineer

Hybrid Cloud & Virtualization Engineer specializing in VMware, Azure, AWS, Windows Server, Microsoft 365, Linux, networking, backup & disaster recovery. I share practical guides, technical projects and insights into modern IT infrastructure through VMoreCloud.

Explore more practical IT tutorialsVisit VMoreCloud for Linux, cloud, virtualization, backup, and infrastructure guides.

Editorial note: Commands and examples are based on the official Ventoy documentation. Verify the current release’s bundled usage output and test the procedure on a non-critical USB before using it in production. Device paths, mountpoints, and firmware behaviour vary by system.

Leave a Reply

Your email address will not be published. Required fields are marked *