Website Vidya
Linux & ServersStep-by-Step Guide

How to Create a Bootable Ubuntu USB Stick on Linux

Learn how to create bootable ubuntu usb stick on linux using dd, Startup Disk Creator, Ventoy, and GNOME Disks with SHA-256 ISO verification.

RR
Rajesh RayLead Systems Educator
Published:
6 min read
PDF Cheat Sheet
How to Create a Bootable Ubuntu USB Stick on Linux
AI Executive SummaryWebsiteVidya AI

6 min read

Learn how to create bootable ubuntu usb stick on linux using dd, Startup Disk Creator, Ventoy, and GNOME Disks with SHA-256 ISO verification.

Key Highlights
  • Prerequisites and Supported Releases
  • Step 1: Downloading and Verifying the Ubuntu ISO Image
  • Step 2: Identifying the USB Drive Device Name with lsblk
Grounded in full engineering runbookWebsiteVidya AI Engine

Creating a bootable USB flash drive is the essential starting point for installing Ubuntu on physical desktop workstations, laptop computers, or bare-metal server hardware.

A bootable live USB stick not only functions as an operating system installer—it also serves as an indispensable rescue toolkit that allows administrators to boot into a fully functional live Linux environment to recover data, repair damaged filesystems, reset root passwords, or test hardware compatibility.

Linux offers several powerful, native methods to write ISO images to USB storage, ranging from graphical point-and-click desktop utilities to raw terminal byte-copy commands.

In this guide, we walk through how to create bootable ubuntu usb stick on linux step-by-step, verify ISO cryptographic checksums, safely identify target disk nodes, and flash the installer drive.

Advertisement

Prerequisites and Supported Releases

This guide is thoroughly verified on Ubuntu 24.04 LTS (Noble Numbat) & Ubuntu 22.04 LTS. The instructions apply cleanly to cloud instances (AWS EC2, Google Compute Engine, DigitalOcean, Hetzner), bare-metal servers, and local virtual machines.

Before proceeding, ensure you have the following requirements satisfied:

  • A computer running Ubuntu, Debian, Fedora, or any modern Linux distribution.
  • A USB flash drive with at least 8 GB of storage (all data on the drive will be overwritten).
  • A downloaded Ubuntu Desktop or Server ISO image.
  • A non-root user account with sudo administrative privileges.

Step 1: Downloading and Verifying the Ubuntu ISO Image

Download the official Ubuntu 24.04 LTS (or latest release) ISO image directly from Ubuntu's official release mirrors.

Advertisement

Before writing the image to physical media, verify its cryptographic SHA-256 checksum to ensure the download is uncorrupted and free from tampering.

Compute the SHA-256 checksum of your downloaded ISO file:

# Compute SHA-256 hash of the downloaded ISO:
sha256sum ~/Downloads/ubuntu-24.04-desktop-amd64.iso

# Compare the output hash against the official hash listed in SHA256SUMS:
# Example official hash:
# 81fae63112014f8428596873d64870fff15744a1b38c1ac369ec7b2404eda2b3 *ubuntu-24.04-desktop-amd64.iso

Step 2: Identifying the USB Drive Device Name with lsblk

Plugging in a USB flash drive registers a new block device node in /dev/ (such as /dev/sdb or /dev/sdc).

Correctly identifying your USB drive letter is critical: writing an ISO image to the wrong drive (like your primary hard drive /dev/sda or NVMe drive /dev/nvme0n1) will result in irreversible data loss.

Advertisement

Run lsblk before and after inserting the USB drive to confirm its device letter and size:

# List all active block storage devices:
lsblk

# Look for your USB drive matching its known capacity (e.g., 14.8G for a 16GB stick):
# NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
# sda      8:0    0 465.8G  0 disk 
# ├─sda1   8:1    0   512M  0 part /boot/efi
# └─sda2   8:2    0 465.3G  0 part /
# sdb      8:16   1  14.8G  0 disk 
# └─sdb1   8:17   1  14.8G  0 part /media/user/USB

# In this example, the target device is /dev/sdb (NOT /dev/sdb1).

Step 3: Unmounting USB Partitions Before Flashing

If your desktop environment automatically mounted the USB drive upon insertion, unmount all active partitions on the drive before writing the image.

Use the umount command targeting the mounted partition:

Unmounting ensures that the filesystem is disengaged and prevents write conflicts during flashing:

# Unmount active partition on target USB device (e.g., /dev/sdb1):
sudo umount /dev/sdb*

# Verify that no mountpoints are listed for sdb in lsblk:
lsblk | grep sdb

Step 4: Method 1: Creating Bootable USB with the dd Command (Terminal)

The dd (data duplicator) command is the universal, low-level Linux utility that writes raw byte streams directly to storage media.

Because Ubuntu ISOs are formatted as 'hybrid' ISOs, writing them directly to a raw block device creates a fully bootable MBR/GPT and UEFI installation disk.

Execute the dd command, specifying the ISO path for if= (input file) and the raw USB device (e.g., /dev/sdb) for of= (output file):

# Write ISO to raw USB device (replace /dev/sdb with your verified USB device letter):
sudo dd if=~/Downloads/ubuntu-24.04-desktop-amd64.iso of=/dev/sdb bs=4M status=progress oflag=sync

# Command explanation:
# if=...         : Path to the source Ubuntu ISO image file
# of=/dev/sdb    : Destination target USB block device (target raw disk, NOT partition sdb1)
# bs=4M          : Read/write in 4MB blocks for optimal write speed
# status=progress: Displays real-time transfer progress, speed, and time
# oflag=sync     : Synchronizes all cached data directly to physical flash storage before exiting

Step 5: Method 2: Using Ubuntu Startup Disk Creator (GUI)

For desktop users who prefer a graphical interface, Ubuntu includes the pre-installed Startup Disk Creator (usb-creator-gtk).

Press the Super key and type Startup Disk Creator to launch the application.

The top pane automatically detects Ubuntu ISO files in your Downloads directory (or click Other... to browse).

The bottom pane selects your inserted USB drive. Click Make Startup Disk, enter your administrative password, and wait for the write process to complete.

Step 6: Method 3: Using Ventoy (Multi-Boot USB Solution)

If you regularly install different Linux distributions or want to store normal files alongside ISOs without reformatting each time, Ventoy is the modern industry solution.

Ventoy installs a small bootloader on the USB drive, creating an open exFAT partition.

Once installed, you simply copy and paste ISO files directly onto the USB drive like normal documents; Ventoy automatically generates a boot menu upon computer startup:

# Download and extract Ventoy for Linux:
cd /tmp
wget https://github.com/ventoy/Ventoy/releases/download/v1.0.97/ventoy-1.0.97-linux.tar.gz
tar -xf ventoy-1.0.97-linux.tar.gz
cd ventoy-1.0.97

# Install Ventoy to your USB drive (WARNING: all data on /dev/sdb will be erased):
sudo ./Ventoy2Disk.sh -i /dev/sdb

# Once installed, copy any ISO file directly onto the Ventoy USB partition:
cp ~/Downloads/ubuntu-24.04-desktop-amd64.iso /media/$USER/Ventoy/

Troubleshooting and Common Errors

When configuring Ubuntu servers, unexpected permission errors, network timeouts, or lock contention can occur. Review these common issues and verified resolutions:

dd: failed to open '/dev/sdb': Permission denied

Cause: The dd command was executed without administrative root privileges.

Resolution: Prepend sudo to the dd command: sudo dd if=... of=/dev/sdb ....

sudo dd if=ubuntu.iso of=/dev/sdb bs=4M status=progress oflag=sync

Computer boots directly to existing OS without recognizing USB stick

Cause: UEFI boot order prioritizes the internal hard drive, or Fast Boot is preventing external USB boot.

Resolution: Reboot computer and tap F12, F11, or Del to access the One-Time Boot Menu and select the UEFI USB drive.

lsblk

USB drive shows incorrect capacity (e.g., 5 MB free) after flashing

Cause: The ISO hybrid partition table overrides the normal disk partition layout.

Resolution: To reuse the USB stick as a regular storage drive later, wipe the partition table using sudo wipefs -a /dev/sdb and format with FAT32/exFAT.

sudo wipefs -a /dev/sdb

Security Best Practices and Hardening

Always verify the SHA-256 checksum of downloaded operating system ISOs before writing them to physical media.

Double-check the target device identifier with lsblk before executing dd; writing to the wrong drive will erase your operating system.

Always include oflag=sync with dd or execute sync in your terminal before unplugging the USB stick to ensure all memory buffers are flushed to flash storage.

Deepen your Linux system administration skills with our related production-tested guides:

Authoritative References and Official Documentation

Frequently Asked Questions

Quick answers to common questions and configurations

4 FAQs
/dev/sdb represents the entire raw physical drive including the Master Boot Record (MBR) and partition table. /dev/sdb1 represents only the first individual partition on the drive. You must write ISO images to the entire raw device (/dev/sdb) for the drive to boot properly.
On a USB 3.0 or 3.1 port with a fast flash drive, the process typically takes 1 to 3 minutes. On older USB 2.0 ports, it can take 5 to 10 minutes depending on drive write speeds.
Wipe the hybrid ISO partition table using sudo wipefs -a /dev/sdb, then create a new partition using fdisk /dev/sdb or format it with sudo mkfs.vfat -F 32 /dev/sdb1 (or use GNOME Disks GUI).
Yes. Flashing an ISO image using dd, Startup Disk Creator, or GNOME Disks overwrites the partition table and all existing files on the target USB drive.
RR
Written byVerified Author

Rajesh Ray

I’m Rajesh Rai, a full-stack developer, Linux administrator, and technology enthusiast passionate about making complex technology easier to understand and use.

SPAM-FREE MODERATED DISCOURSE

Join the Conversation & Perspective

Have thoughts, counterpoints, or reflections on this story? Engage directly with fellow readers and editorial contributors.

AT
MP
JV
+2

No comments on this guide yet. Be the first to share your thoughts or ask a question!

Recommended Reading10 Guides

Related Technical Guides

Tested runbooks, server administration walkthroughs, and troubleshooting guides

Featured Infrastructure PartnerUp to 75% OFF + 3 Months Free

Supercharge Your Linux & Cloud Workloads with Hostinger

Deploy high-speed NVMe KVM VPS, Docker containers, and LiteSpeed-accelerated WordPress servers in under 60 seconds with full root access, dedicated IPv4, and 24/7 technical support.

Pure NVMe SSD StorageFull Root Access & SSHFree Domain & Unlimited SSL99.9% Uptime SLA
Plans from$2.99/mo
Claim Hostinger DealAffiliate link • Special discount applied at checkout