Kahibaro
Discord Login Register

1.3.1 Creating a bootable USB

Why You Need a Bootable USB

To install Linux on a real machine or in many virtualized scenarios, you typically start the computer from an installation image stored on a USB drive. A “bootable USB” is a USB stick that contains:

This chapter focuses on the practical steps to turn an ordinary USB stick into a bootable Linux installer.

What You Need Before You Start

Choosing a Tool to Create the Bootable USB

The common approaches depend on your current operating system:

For beginners, a graphical tool (Rufus or balenaEtcher) is usually the easiest.

Verifying the ISO (Basic Overview)

Many distributions publish a checksum (often SHA256) for the ISO. You can quickly verify that the download isn’t corrupted:

  sha256sum your-distro.iso
  Get-FileHash .\your-distro.iso -Algorithm SHA256

Compare the output with the checksum listed on the distribution’s download page. They must match exactly. This step is optional for casual use, but good practice.

Creating a Bootable USB on Windows (Rufus)

Rufus is a single .exe file, no installation required (for the portable version).

  1. Download Rufus
    • From the official website: search for “Rufus USB” and download the latest version.
  2. Insert your USB drive
    • Make sure you’ve backed up any data on it.
  3. Open Rufus
    • Under Device, choose your USB stick.
    • Under Boot selection, click SELECT and choose your Linux .iso.
  4. Partition scheme and target system
    • For most modern computers with UEFI:
      • Partition scheme: GPT
      • Target system: UEFI (non-CSM)
    • For older BIOS-only machines:
      • Partition scheme: MBR
      • Target system: BIOS (or UEFI-CSM)
    • If unsure, leaving defaults usually works for most recent PCs.
  5. File system
    • Leave it as the default (FAT32 is common and widely supported).
  6. Write method
    • For most standard Linux ISOs, select ISO Image mode (Recommended) if prompted.
  7. Start the write
    • Click START.
    • Confirm any warning that the USB will be erased.
  8. Wait for completion
    • When Rufus says READY, safely eject the USB via Windows before unplugging it.

Your USB is now bootable.

Creating a Bootable USB on Windows or macOS (balenaEtcher)

balenaEtcher has a very simple interface and works similarly on all supported OSes.

  1. Download and install balenaEtcher
    • From the official balenaEtcher website.
  2. Run Etcher
    • Click Flash from file and select your Linux .iso.
    • Click Select target and choose your USB drive.
    • Click Flash!.
  3. Wait for flashing and validation
    • Etcher writes the image and then verifies it.
    • When it reports success, you can safely remove the USB (use your OS’s safe eject option).

Creating a Bootable USB on Linux (Graphical Tools)

Using GNOME Disks (often just “Disks”)

This tool is available on many GNOME-based desktops.

  1. Launch Disks
    • Search for “Disks” in your application menu.
  2. Select the USB drive
    • Be careful to choose the correct device.
  3. Restore Disk Image
    • Click the menu button (often three vertical dots) and choose Restore Disk Image….
    • Select your Linux .iso.
  4. Confirm
    • Verify the correct USB is selected and start the write.
  5. Wait and eject
    • When finished, safely remove the USB.

Using Ubuntu’s Startup Disk Creator

On Ubuntu and some derivatives:

  1. Search for Startup Disk Creator in the menu.
  2. Choose the downloaded .iso.
  3. Select the target USB drive.
  4. Click Make Startup Disk.
  5. Wait for completion and safely remove the USB.

Creating a Bootable USB on Linux or macOS (Command Line with `dd`)

The dd command writes data directly to a device. It is powerful and dangerous if you choose the wrong target disk. Double-check everything.

Step 1: Identify the USB device

On Linux:

lsblk

Look for your USB drive, e.g. /dev/sdb or /dev/sdc. Do not include partition numbers like /dev/sdb1 as the device target.

On macOS:

diskutil list

Find the USB disk, e.g. /dev/disk2.

Step 2: Unmount the USB partitions (if needed)

On Linux:

sudo umount /dev/sdX*

Replace sdX with your device (e.g. sdb).

On macOS:

diskutil unmountDisk /dev/diskN

Replace diskN with your USB disk (e.g. disk2).

Step 3: Write the ISO with `dd`

On Linux:

sudo dd if=path/to/your-distro.iso of=/dev/sdX bs=4M status=progress conv=fsync

On macOS (use rdisk for better speed):

sudo dd if=path/to/your-distro.iso of=/dev/rdiskN bs=4m

Wait until the command completes and the shell prompt returns.

Step 4: Safely remove the USB

On Linux:

sudo eject /dev/sdX

On macOS:

diskutil eject /dev/diskN

Using Ventoy for Multiple ISOs (Optional)

Ventoy is different from traditional tools: it turns the USB into a special drive where you simply copy ISO files, and it presents a boot menu.

Basic idea:

  1. Install Ventoy to the USB using the Ventoy tool (available for Windows and Linux).
  2. After installation, mount the USB and copy multiple .iso files onto it.
  3. Boot from the USB; Ventoy shows a menu where you pick which ISO to boot.

This is handy if you test many distributions or need rescue tools, but it’s slightly more advanced than single-ISO tools like Rufus or Etcher.

Recognizing a Successful Bootable USB

After creating the USB, you typically:

  1. Insert it into the target computer.
  2. Enter the boot menu or firmware setup (UEFI/BIOS) at startup (often by pressing a key like F12, F2, Del, or Esc).
  3. Choose the USB as the boot device.

If the USB is correctly prepared and your system is configured to boot from it, you should see the Linux distribution’s boot or installation menu.

If instead you boot into your usual OS or see an error like “No bootable device,” the issue may be:

Common Pitfalls and Quick Checks

Once you’ve created a working bootable USB, you’re ready to move on to installing Linux on real hardware or using it for live sessions and troubleshooting.

Views: 103

Comments

Please login to add a comment.

Don't have an account? Register now!