A bootable USB drive lets you install Linux, try it without touching your hard disk, or rescue a system that no longer starts. On Linux you don’t need any extra software to make one: the dd command that is already installed copies an ISO image to a USB stick in one line. On Ubuntu and Linux Mint you can also use the built-in Startup Disk Creator and USB Image Writer apps.
This guide shows how to create a bootable USB from the Linux terminal the safe way: download and verify the ISO, find the right device, write it with dd, check that the copy is perfect, and boot from it. It also covers the Ubuntu and Linux Mint apps, installing Ubuntu from the USB drive, Ventoy for keeping several ISOs on one stick, Windows ISOs, and how to turn the stick back into a normal drive afterwards. We tested the terminal steps on Ubuntu 26.04 with the Alpine Linux 3.24.4 ISO; they work the same with Ubuntu, Debian, Fedora, Linux Mint and most other Linux ISOs.
Warning: writing an ISO erases everything on the USB drive. Writing it to the wrong device erases that disk instead, so follow Step 2 carefully.
Quick Answer
If your USB stick is /dev/sdb:
lsblk -o NAME,SIZE,TRAN,MODELsudo umount /dev/sdb?*sudo dd if=ubuntu-26.04-desktop-amd64.iso of=/dev/sdb bs=4M status=progress oflag=sync
Use the whole device (/dev/sdb), not a partition (/dev/sdb1).
What You Need
- A USB flash drive at least as large as the ISO file. Desktop ISOs such as Ubuntu 26.04 Desktop need an 8 GB stick; server and minimal ISOs fit on 2–4 GB.
- The ISO image of the Linux distribution, downloaded from its official website.
- A Linux computer with
sudoaccess. On Windows, see how to create an Ubuntu bootable USB in Windows.
Step 1 of 5Download and Verify the ISO
Download the ISO and its checksum file from the distribution’s website. For Ubuntu 26.04, both are on releases.ubuntu.com/26.04/. Checking the checksum proves the download is complete and unmodified; a damaged ISO is one of the most common reasons a USB stick won’t boot.
cd ~/Downloadssha256sum -c SHA256SUMS --ignore-missing
ubuntu-26.04-desktop-amd64.iso: OK
--ignore-missing skips the other ISOs listed in Ubuntu’s SHA256SUMS file that you didn’t download. Some projects publish one checksum file per ISO instead, which you check the same way; this is the Alpine ISO from our test:
sha256sum -c alpine-virt-3.24.4-x86_64.iso.sha256alpine-virt-3.24.4-x86_64.iso: OK
If you see FAILED, download the ISO again. Never write a failed image to USB.
Step 2 of 5Find the USB Drive’s Device Name
Plug in the USB stick and list the disks with their connection type:
lsblk -o NAME,SIZE,TYPE,TRAN,MODEL,MOUNTPOINTS
NAME SIZE TYPE TRAN MODEL MOUNTPOINTS
nvme0n1 476.9G disk nvme Samsung SSD 980
├─nvme0n1p1 1G part /boot/efi
└─nvme0n1p2 475.9G part /
sdb 14.9G disk usb SanDisk Cruzer
└─sdb1 14.9G part /media/user/STICK
The USB stick is /dev/sdb: its TRAN column says usb, and the size (14.9G for a “16 GB” stick) and model match. The disk with / and /boot/efi is your running system; never write to it. On a laptop with a SATA disk, the system disk is usually /dev/sda and the USB stick /dev/sdb, but don’t rely on that: always check the size and TRAN column.
If any partition of the stick is mounted (it has a MOUNTPOINTS entry), unmount all of them:
sudo umount /dev/sdb?*
Step 3 of 5Write the ISO to the USB Drive with dd
sudo dd if=ubuntu-26.04-desktop-amd64.iso of=/dev/sdb bs=4M status=progress oflag=sync
What each part means:
- if=: the input file, your ISO.
- of=: the output device, the whole USB stick (
/dev/sdb), not a partition like/dev/sdb1. Modern Linux ISOs are “hybrid” images that contain their own partition table and boot code, so they must be written to the start of the disk. - bs=4M: copy in 4 MB blocks, which is much faster than the 512-byte default.
- status=progress: show how much has been copied so far.
- oflag=sync: write each block straight to the stick, so the progress you see is real and the command only finishes once the data is on the drive. Without it,
ddmay report “done” while gigabytes are still waiting in memory.
When it finishes, dd prints a summary. This is from our test with the Alpine ISO:
16+1 records in
16+1 records out
70254592 bytes (70 MB, 67 MiB) copied, 0.167282 s, 421 MB/s
A 6 GB desktop ISO takes from about 2 minutes on a fast USB 3 stick to 15 minutes or more on an old USB 2 stick. There is no harm in waiting; don’t unplug the stick while dd runs.
You can also copy the ISO with cp, which works for hybrid images too: sudo cp ubuntu-26.04-desktop-amd64.iso /dev/sdb && sync. In our test, both methods produced a byte-for-byte identical stick.
Step 4 of 5Verify the Copy and Eject
To be sure the stick holds an exact copy of the ISO, compare them. -n limits the comparison to the ISO’s size, because the stick is larger:
sudo cmp -n $(stat -c%s ubuntu-26.04-desktop-amd64.iso) ubuntu-26.04-desktop-amd64.iso /dev/sdb && echo "Copy OK"
Copy OK
If a single byte differs, cmp reports where, for example differ: char 1000001. In that case write the ISO again, and try another USB port or stick if it keeps failing. Then flush any remaining writes and power the stick off before you unplug it:
syncudisksctl power-off -b /dev/sdb
After writing, lsblk and file managers show the stick very differently from before: it contains the ISO’s own filesystem (iso9660) and a small EFI partition, and it looks much smaller than its real size. That is normal. In our test, a 4 GB stick then showed only a 1.4 MB EFI partition. If Windows offers to “format” the stick, say no.
Step 5 of 5Boot From the USB Drive
Plug the stick into the computer you want to start from it and turn it on. Press the boot menu key right after power-on (tap it repeatedly) and choose the USB drive, often listed as “UEFI: SanDisk…” or similar.
| Brand | Boot menu key | BIOS/UEFI setup key |
|---|---|---|
| Dell | F12 | F2 |
| HP | F9 (or Esc, then F9) | F10 |
| Lenovo | F12 (or Fn+F12, or the Novo button) | F1 or F2 |
| ASUS | F8 or Esc | F2 or Del |
| Acer | F12 (enable it in setup first) | F2 |
| MSI, Gigabyte, ASRock (desktops) | F11 / F12 / F11 | Del |
| Apple Mac (Intel) | Hold Option (⌥) |
Secure Boot: Ubuntu, Debian, Fedora, Linux Mint, openSUSE and RHEL-based ISOs boot with Secure Boot enabled. Smaller distributions may need Secure Boot turned off in the UEFI setup. If the computer ignores the stick, see Troubleshooting below.
Boot Ubuntu From the USB Drive and Install It
When an Ubuntu USB drive starts, the GRUB menu offers Try or Install Ubuntu. Press Enter (or wait a few seconds) and Ubuntu loads into memory from the stick. Nothing on the computer’s disk is changed at this point.
- The installer opens and asks for your language, accessibility and keyboard settings, and whether to connect to the internet.
- Choose Try Ubuntu to use the live desktop without installing: a good way to check that Wi-Fi, graphics and sound work on this computer. You can start the installer later from the Install Ubuntu icon on the desktop.
- Choose Install Ubuntu to continue. Pick Interactive installation, the apps you want, and then the disk setup: Erase disk and install Ubuntu replaces everything on the disk, while Install Ubuntu alongside Windows (when Windows is detected) keeps it for dual boot.
- Create your user account, choose the time zone and start the installation. When it finishes, click Restart now and remove the USB drive when asked.
The same USB drive also works as a rescue system: boot it, choose Try Ubuntu, and you can mount the computer’s disks to copy files or repair the bootloader. Practising in a virtual machine first? See how to install Ubuntu on VirtualBox.
Multiple ISOs on One Stick: Ventoy
Ventoy installs a small boot manager on the USB stick once; after that you simply copy ISO files onto it like normal files, and Ventoy shows a menu of them at boot. It is the easiest way to carry several installers and rescue systems, and it also boots Windows ISOs.
Download the latest ventoy-*-linux.tar.gz from Ventoy’s GitHub releases page (github.com/ventoy/Ventoy/releases; version 1.1.18 at the time of writing), extract it and install it to the stick:
tar xzf ventoy-1.1.18-linux.tar.gzcd ventoy-1.1.18sudo ./Ventoy2Disk.sh -i /dev/sdb
- -i installs Ventoy and erases the stick (it asks twice for confirmation). Use -I to force a reinstall, -g for a GPT instead of MBR partition table, and -u to update Ventoy later without deleting your ISOs.
- Ventoy creates a large exFAT partition named Ventoy. Copy your
.isofiles onto it with the file manager orcp. - With Secure Boot enabled, Ventoy asks you to enrol its key once on each computer (“Enroll key from disk”); follow the on-screen steps.
The same folder has a graphical installer (VentoyGUI.x86_64) if you prefer clicking.
Without the Terminal: Ubuntu and Linux Mint Apps
Ubuntu: Startup Disk Creator
Ubuntu Desktop includes Startup Disk Creator (package usb-creator-gtk, still part of Ubuntu 26.04). If it is missing, for example on a minimal installation, install it:
sudo apt install usb-creator-gtk
- Open Startup Disk Creator from the app grid.
- Under Source disc image (.iso), click Other… and choose your ISO file.
- Under Disk to use, select the USB stick. Check its size and name so you don’t pick another drive.
- Click Make Startup Disk, confirm that the stick will be erased, and enter your password.
It writes the image to the whole stick, just like dd, and works for Ubuntu and other Linux ISOs.
Linux Mint: USB Image Writer
Linux Mint ships USB Image Writer (package mintstick, also available in the Ubuntu 26.04 repositories). Open it from Menu → Accessories → USB Image Writer, choose the ISO and the USB stick, and click Write. Its companion USB Stick Formatter turns the stick back into normal storage afterwards. Right-clicking an ISO file in the file manager also offers Make bootable USB stick.
Other graphical tools
- GNOME Disks (installed on Ubuntu and Fedora Workstation): select the USB drive, open the ⋮ menu and choose Restore Disk Image…, then pick the ISO and click Start Restoring. It writes the image like
dd. - balenaEtcher: a cross-platform app (download the AppImage from etcher.balena.io) that also verifies the write automatically.
- Ventoy:
VentoyGUI.x86_64, as above.
What about UNetbootin? Older guides, including earlier TecAdmin articles, used UNetbootin from the ppa:gezakovacs/ppa repository. That PPA’s last packages are for Ubuntu 20.10, so adding it fails on Ubuntu 22.04, 24.04 and 26.04. UNetbootin also copies the ISO’s files instead of writing the image, which modern UEFI ISOs don’t always boot from. Use dd or one of the tools above instead.
Windows ISOs Need a Different Tool
dd doesn’t make a working Windows 10 or 11 installer: Windows ISOs are not hybrid images, and their install.wim file is often larger than the 4 GB limit of FAT32, which UEFI needs. Use Ventoy (copy the Windows ISO to it like any other), or WoeUSB-ng, which formats the stick and copies the files correctly:
sudo woeusb --device Win11_English_x64.iso /dev/sdb
Install WoeUSB-ng by following the instructions on its GitHub project page (WoeUSB/WoeUSB-ng); the old WoeUSB PPA for Ubuntu used in many older guides is no longer maintained.
Turn the Bootable USB Back Into a Normal Drive
Deleting files won’t help, because the stick now has the ISO’s partition layout. Remove all old signatures, create a new partition table and format it:
sudo wipefs -a /dev/sdbsudo parted -s /dev/sdb mklabel msdos mkpart primary 1MiB 100%sudo mkfs.exfat -L MYUSB /dev/sdb1
The stick shows its full size again. The details, including FAT32 and NTFS, are in how to format a USB drive in Linux.
Troubleshooting
The computer doesn’t show the USB drive in the boot menu
- Check the write with
cmp(Step 4) and the ISO withsha256sum(Step 1). - Make sure you wrote to
/dev/sdb, not to the partition/dev/sdb1; the latter produces a stick that is not bootable. - Disable Secure Boot for distributions that don’t support it, and turn off “Fast Boot” so the firmware checks USB devices.
- Try a USB 2 port (often black) instead of USB 3, especially on older computers.
dd: failed to open ‘/dev/sdb’: Permission denied
Writing to a disk device needs root. Run the command with sudo.
dd: error writing ‘/dev/sdb’: No space left on device
The ISO is larger than the USB stick. Use a bigger stick; the result of a partial copy won’t boot.
The USB stick now shows a tiny size or strange partitions
That is how a written ISO looks (see Step 4). To use the stick for files again, reformat it as shown above.
dd seems stuck at the end
Without oflag=sync, dd copies quickly into memory and then waits while the data is written to the slow stick. Wait until the command returns and run sync; never unplug the stick before that.
Frequently Asked Questions
Do I need to format the USB drive before using dd?
No. dd overwrites the stick from the first byte, including the partition table, so any formatting beforehand is lost anyway.
Can I use the rest of the USB stick for files?
Not with a dd-written stick; the ISO’s layout uses only part of it. With Ventoy, the whole stick is an exFAT partition, so you can keep normal files next to your ISOs.
Will the bootable USB work on both UEFI and old BIOS computers?
Yes for most current Linux ISOs, which include boot code for both. Ventoy also supports both.
How do I create a bootable Ubuntu USB?
Download the Ubuntu ISO from ubuntu.com and verify it with sha256sum -c SHA256SUMS --ignore-missing. Then either open Startup Disk Creator, select the ISO and the USB stick and click Make Startup Disk, or write it from the terminal with sudo dd if=ubuntu-26.04-desktop-amd64.iso of=/dev/sdX bs=4M status=progress oflag=sync. An 8 GB stick is enough.
Is dd or Ventoy better?
dd is built in, writes an exact copy of the official image and needs nothing extra, which makes it the safest choice for one installer. Ventoy is better if you want several ISOs on one stick or switch between them often.
Conclusion
To create a bootable USB in Linux, verify the ISO with sha256sum, identify the stick with lsblk, write the image to the whole device with sudo dd if=file.iso of=/dev/sdX bs=4M status=progress oflag=sync, and check the result with cmp. Use Ventoy for a multi-ISO stick or for Windows installers, and wipefs plus mkfs to turn the stick back into normal storage.
Related guides:
- How to format a USB drive in Linux
- How to create an Ubuntu bootable USB in Windows
- dd command in Linux and dd cheat sheet
- How to boot from a USB drive in VirtualBox
- How to install Linux Mint
How did it make you feel?

Hi ! Nice tutorial. I wrote a bash script ‘bootiso’ that does exactly that but with extra security guards !
You can check it here: https://github.com/jsamr/bootiso.
Good day – I am studying the command lines you wrote; I need one clarification about the /medma/USB path. Is that a directory that have to create or is this the same as /media/USB. If it’s the latter, how is that possible when the literature state that you mount a device on an empty directory?
Hi Krista,
It was a typo. I have corrected the commands.
Hi Rahul, thanks for clarifying this matter. Now the only roadblock that I am running up against is the command for make bootable USB. An error message is displayed, it reads – no directory slots | syslinux: failed to create ldlinux.sys. Any thoughts on this? The host laptop that is being used lubuntu, the iso image that was copied is ubuntu v16.04 and the USB drive is 8 GB.
Hello again, I was able to successfully follow your instructions until I got to make USB bootable. I received an error message, and it reads – no directory slots | syslinux : failed to create ldlinux.sys. What this is referring to? As for my host laptop, it’s lubuntu. A copy of ubuntu v16.04 was copied to an 8 GB USB drive