Create an Ubuntu Bootable USB Drive

Khimananda Oli 8 min read Virtualization
Create an Ubuntu Bootable USB Drive

By Khimananda Oli | Last reviewed: August 2026

You need to install a server, rescue a broken system, or test a new release, but the process fails because your media is corrupt or incompatible. Learning to correctly create an Ubuntu bootable USB drive is a foundational skill for any DevOps engineer or sysadmin managing bare metal and hybrid infrastructure. This guide covers verified methods for Linux, Windows, and macOS, including critical steps for data integrity and UEFI compatibility that generic tutorials often miss.

How Do You Verify an Ubuntu ISO Before Creating a Bootable USB?

Before you even plug in a flash drive, you must validate your source image. In my experience supporting teams across Nepal and globally, at least 30% of "failed installations" trace back to a corrupted download or a man-in-the-middle modification. Skipping this step when you set up a fresh server can waste hours debugging phantom errors.

Download the SHA256SUMS file from the official Ubuntu releases page alongside your ISO. Never trust third-party mirrors without independent verification. Run the following command in your terminal to compare the hash:

sha256sum -c SHA256SUMS --ignore-missing 2>/dev/null | grep ubuntu-24.04-desktop-amd64.iso

If the output does not explicitly say OK, delete the ISO immediately and re-download. A single flipped bit in the kernel image or squashfs filesystem will result in unbootable media or silent data corruption during installation. For automated pipelines, integrate this check into your provisioning scripts so no technician can accidentally skip it.

Download ISO+ SHA256SUMSVerify Hashsha256sum -cWrite to USBdd / Etcher / RufusBoot & InstallUEFI / BIOSVerified Media WorkflowReject if mismatch
Verification workflow: always validate checksums before you create an Ubuntu bootable USB drive to avoid corrupt installations.

What Is the Most Reliable Way to Create an Ubuntu Bootable USB on Linux?

The native dd utility remains the gold standard for Linux engineers because it performs a raw byte-for-byte copy without abstraction layers. While GUI tools like BalenaEtcher are convenient, understanding dd is essential for headless servers, automated provisioning, and troubleshooting when GUIs fail.

Using dd Safely on the Command Line

Identify your USB device accurately. Confusing /dev/sdb (your USB) with /dev/sda (your system disk) will destroy your host OS instantly. Use lsblk to confirm size and mount points:

lsblk -o NAME,SIZE,MOUNTPOINT,MODEL
# sdb      14.9G            SanDisk Ultra Fit
# sda     465.8G            NVMe SSD

Unmount all partitions on the target drive before writing. Writing to a mounted filesystem causes I/O errors and corruption:

sudo umount /dev/sdb*
sudo dd if=ubuntu-24.04-desktop-amd64.iso of=/dev/sdb bs=4M status=progress conv=fsync oflag=direct

The conv=fsync flag forces physical writes before completion, preventing false-positive success messages when data is still cached in RAM. The oflag=direct bypasses the kernel page cache, which significantly improves write consistency on slower USB 2.0 drives common in legacy environments. Expect 5–15 minutes depending on drive speed.

When to Use BalenaEtcher Instead

BalenaEtcher validates writes automatically and prevents accidental selection of system drives. It is preferable when handing off tasks to junior staff or when working on unfamiliar hardware where device enumeration might be unpredictable. However, Etcher does not support persistence configuration natively, so for advanced setups, stick with CLI tools.

How Do You Create an Ubuntu Bootable USB on Windows with Rufus?

Rufus is the most reliable Windows tool for Ubuntu media creation because it handles UEFI partition schemes correctly. Many other tools silently create BIOS-only media that fails on modern laptops and servers with Secure Boot enabled.

  1. Select your USB device and choose the Ubuntu ISO via the SELECT button.
  2. Under Partition scheme, choose GPT for UEFI systems (post-2018 hardware) or MBR for legacy BIOS.
  3. When prompted for write mode, always select DD Image mode over ISO mode. ISO mode extracts files and rebuilds the bootloader, which frequently breaks Ubuntu's casper-rw persistence and secure boot signatures.
  4. Click START and wait for the verification pass to complete.

A common mistake in Windows environments is leaving Fast Startup enabled. This locks NTFS partitions and can interfere with USB enumeration. Disable it in Power Options if Rufus reports access denied errors. For enterprise deployments across many machines, consider automating server provisioning with cloud-init after initial installation to reduce manual USB work.

Why Won't My Ubuntu USB Boot on Modern UEFI Systems?

UEFI boot failures usually stem from three specific misconfigurations. Understanding these saves hours of frustration compared to blindly retrying different tools.

USB Not Booting?Check 1: Secure Boot StateEnabledUse official Ubuntu ISO(signed shim bootloader)Disabled / FailingDisable Secure Bootor re-write in DD modeCheck 2: GPT vs MBRMatch firmware expectationCheck 3: Write ModeDD mode required for UEFIAlways prefer DD mode + GPT for post-2018 hardware
Troubleshooting decision tree for UEFI boot issues when you create an Ubuntu bootable USB drive.

Secure Boot and Signed Shims

Ubuntu ships with a Microsoft-signed shim bootloader that works with Secure Boot enabled. However, custom respins, older LTS versions, or ISOs modified with tools like Cubic may lack valid signatures. If your system hangs at the vendor logo, temporarily disable Secure Boot in firmware settings to isolate whether signing is the issue. For production infrastructure, always use official Canonical images to maintain chain-of-trust compliance.

Partition Scheme Mismatches

Modern UEFI firmware requires GPT partition tables with a FAT32 EFI System Partition (ESP). If you wrote the ISO in MBR mode or used a tool that created an NTFS ESP, the firmware will not recognize the device. Verify your USB layout with:

sudo fdisk -l /dev/sdb
# Device       Start    End Sectors  Size Type
# /dev/sdb1     2048  10239   8192    4M EFI System
# /dev/sdb2    10240 8388574 8378335  4G ISO9660

If the Type column does not show "EFI System" for the first partition, rewrite the media using DD mode with GPT selected.

USB Port and Controller Compatibility

Some server motherboards do not initialize USB 3.x controllers during early POST. If your drive is invisible in the boot menu, try a USB 2.0 port or enable "Legacy USB Support" in BIOS. On Dell PowerEdge and HP ProLiant servers, iDRAC/ILO virtual media mounting is often more reliable than physical USB for remote installations.

How Can You Add Persistence to an Ubuntu Live USB?

Persistence allows saving files, configurations, and installed packages between reboots on a live USB. This is invaluable for field diagnostics, recovery kits, or demo environments where you need state without full installation.

MethodMax SizeUEFI CompatibleBest For
casper-rw file4GB (FAT32 limit)YesSimple demos, quick diagnostics
casper-rw partitionFull drive capacityYes (ext4)Production rescue kits, heavy tooling
Full installation to USBFull drive capacityYesPortable workstation, encrypted setups

For partition-based persistence (recommended), create an ext4 partition labeled casper-rw after writing the ISO. Use GParted or parted to add the partition in remaining free space, then format and label it:

sudo mkfs.ext4 -L casper-rw /dev/sdb3

Edit the GRUB configuration on the USB's EFI partition to append persistent to the kernel boot parameters. Without this flag, Ubuntu ignores the persistence partition entirely. Note that persistence adds write amplification; use quality USB 3.x drives rated for endurance, not cheap promotional sticks that fail after weeks of journal writes.

Which Tool Should You Choose for Different Scenarios?

No single tool is optimal for every situation. Your choice should depend on your operating environment, audience, and requirements.

dd (Linux/macOS)✓ Raw byte accuracy✓ Scriptable / CI-ready✓ No dependencies✗ Destructive if wrong dev✗ No GUI validationBest: Servers, AutomationBalenaEtcher✓ Auto-verify writes✓ Safe device selection✓ Cross-platform✗ No persistence support✗ Large binary (~100MB)Best: Teams, Junior StaffRufus (Windows)✓ UEFI/GPT handling✓ DD + ISO modes✓ Portable executable✗ Windows only✗ Manual mode selectionBest: Windows AdminsVentoy✓ Multi-ISO support✓ Drag-and-drop✓ Persistent plugins✗ Complex setup✗ Some UEFI bugsBest: Multi-Distro Kits
Tool comparison matrix for creating Ubuntu bootable USB drives based on platform and use case.

For automated build pipelines and infrastructure-as-code workflows, dd integrates cleanly into Ansible playbooks and shell scripts. For helpdesk teams preparing recovery media, BalenaEtcher reduces human error. For Windows-centric IT departments managing mixed fleets, Rufus provides the necessary UEFI controls. Ventoy deserves mention for technicians who maintain multi-boot rescue drives with dozens of ISOs, though its additional complexity makes it less suitable for single-purpose deployment media.

Regardless of tool choice, always perform a test boot on representative hardware before mass-producing media. Firmware variations between vendors mean that a USB working on your laptop may fail on a specific server model. Maintain a known-good reference drive and validate new batches against it.

Next Steps After Creating Your Ubuntu Bootable USB

Successfully writing the media is only the first step. Once booted, prioritize security hardening and automation from the start rather than retrofitting later. Follow our guide on hardening SSH with key authentication and fail2ban immediately after installation to prevent brute-force attacks that begin within minutes of public exposure. Configure firewalls with UFW rules tailored to your workload before connecting to any network.

If you manage multiple servers or need repeatable deployments, invest time learning proper automation instead of relying on repeated manual USB installations. Reach out via the contact page if you need assistance designing scalable, audit-ready infrastructure that reduces dependency on physical media and manual processes.

Frequently Asked Questions

BalenaEtcher and Rufus remain the top choices for creating an Ubuntu bootable USB drive. Etcher offers a simple GUI across platforms, while Rufus provides advanced options like persistent storage and partition scheme selection specifically for Windows users preparing Linux installation media.

Yes. Use BalenaEtcher or the dd command in Terminal to create an Ubuntu bootable USB drive on macOS. Etcher validates writes automatically, reducing corruption risks compared to manual dd commands that require precise device identification to avoid overwriting system drives.

UEFI boot failures usually stem from incorrect partition schemes or disabled Secure Boot. When you create an Ubuntu bootable USB drive, select GPT partitioning for UEFI targets and disable Secure Boot in BIOS settings if the installer lacks proper Microsoft signing keys.

Use Rufus or mkusb to create an Ubuntu bootable USB drive with a casper-rw partition for persistence. This allows saving files and settings between reboots, unlike standard live USBs that reset completely after each shutdown or restart cycle.

Minimum 4GB required.

Yes, completely.

Most tools include verification.

Ventoy lets you create an Ubuntu bootable USB drive alongside other distributions without reformatting. Simply copy ISO files to the exFAT partition after installation. The bootloader auto-detects images, making it ideal for testing multiple Ubuntu versions or rescue tools.

Detection issues often result from improper write completion or incompatible filesystem formats. Recreate the Ubuntu bootable USB drive using DD mode in Rufus instead of ISO mode, ensure safe removal before unplugging, and confirm USB legacy support is enabled in older BIOS firmware.

The dd command works reliably but requires extreme caution when specifying output devices. Always verify target device paths with lsblk before execution. One typo can destroy system partitions. Consider using gnome-disks or usb-creator-gtk for safer graphical alternatives when available.

Reformat the drive using gparted or diskpart to clear corrupted partition tables, then recreate the Ubuntu bootable USB drive from a verified ISO checksum. Physical flash memory degradation also causes persistent corruption; test with a different USB stick if errors continue after multiple write attempts.

Package installations on non-persistent Ubuntu bootable USB drives exist only in RAM and vanish after reboot. Enable persistence during creation or install Ubuntu fully to the USB drive itself for permanent package updates, configuration changes, and user data retention across sessions.

Write speeds depend on USB generation and flash quality. USB 3.0 drives typically achieve 20-40MB/s when you create an Ubuntu bootable USB drive, completing a standard desktop ISO write in three to five minutes. USB 2.0 sticks may take fifteen minutes or longer.

Yes, root or administrator access is mandatory because writing to block devices requires elevated permissions. On Linux, use sudo with dd or usb-creator-gtk. Windows users must run Rufus or Etcher as Administrator. macOS requires password authentication for Etcher or sudo for terminal dd operations.

Use Startup Disk Creator (usb-creator-gtk) preinstalled on Ubuntu desktops to create an Ubuntu bootable USB drive without third-party software. Select your downloaded ISO and target device, then click Make Startup Disk. The tool handles partitioning, bootloader installation, and verification automatically within the native environment.