How to Create a Bootable USB Pen Drive for Installing Ubuntu ?

Creating a bootable USB pen drive is a crucial step for installing Ubuntu on your computer. This process allows you to run Ubuntu directly from the USB drive, facilitating a clean installation or a trial run of the operating system. In this guide, we’ll walk you through the steps required to create a bootable USB drive for Ubuntu, ensuring a smooth and efficient installation process.

Table of Contents

  1. Prerequisites
  2. Download Ubuntu ISO File
  3. Choose a USB Drive
  4. Create Bootable USB Using Rufus (Windows)
  5. Create Bootable USB Using balenaEtcher (Windows, macOS, Linux)
  6. Create Bootable USB Using Startup Disk Creator (Ubuntu)
  7. Verify the Bootable USB
  8. Troubleshooting Common Issues
  9. Conclusion

Prerequisites

Before you start, ensure you have the following:

  • A USB Pen Drive: At least 4GB of storage space is recommended, though 8GB or more is preferable.
  • Ubuntu ISO File: Downloadable from the official Ubuntu website.
  • A Computer: Running Windows, macOS, or Ubuntu.
  • USB Burning Software: Tools like Rufus, balenaEtcher, or Startup Disk Creator.

Download Ubuntu ISO File

  1. Visit the Ubuntu Website: Go to the Ubuntu download page.
  2. Select the Version: Choose the version of Ubuntu you want to install (e.g., Ubuntu Desktop, Ubuntu Server).
  3. Download the ISO: Click the download link to save the ISO file to your computer.

Choose a USB Drive

  1. Insert the USB Drive: Plug your USB pen drive into a USB port on your computer.
  2. Backup Data: Ensure that any important data on the USB drive is backed up, as the process will erase all existing data.

Create Bootable USB Using Rufus (Windows)

  1. Download Rufus: Get Rufus from the official website.
  2. Open Rufus: Run the Rufus application.
  3. Select Device: Choose your USB drive from the device dropdown list.
  4. Select ISO File: Click the “Select” button and choose the Ubuntu ISO file you downloaded.
  5. Partition Scheme: Choose “MBR” for BIOS or UEFI, or “GPT” for UEFI only.
  6. Create the Bootable USB: Click “Start” and wait for Rufus to create the bootable USB drive.

Create Bootable USB Using balenaEtcher (Windows, macOS, Linux)

  1. Download balenaEtcher: Obtain balenaEtcher from the official website.
  2. Install and Open balenaEtcher: Follow the installation instructions for your operating system.
  3. Select Image: Click “Flash from file” and choose the Ubuntu ISO file.
  4. Select Target: Choose your USB drive from the list of available drives.
  5. Create the Bootable USB: Click “Flash!” and wait for the process to complete.

Create Bootable USB Using Startup Disk Creator (Ubuntu)

  1. Open Startup Disk Creator: Search for it in the Ubuntu application menu.
  2. Select Source: Click “Other” and choose the Ubuntu ISO file.
  3. Select Disk: Choose your USB drive from the list.
  4. Create the Bootable USB: Click “Make Startup Disk” and confirm to start the creation process.

Detailed steps are as here, connect the pen drive you want to format to create bootable disk to install Ubuntu. check in dmesg the device node created after connecting pendrive, this is just to make sure usb creator uses the right device node.

devbee@devbee:~/Desktop$ dmesg
[ 2396.372066] usb 2-2: new high-speed USB device number 2 using ehci-pci
[ 2399.299527] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 2399.325106]  sdb: sdb1
[ 2399.328776] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 2404.515673] EXT4-fs (sdb1): 1 orphan inode deleted
[ 2404.515675] EXT4-fs (sdb1): recovery complete
[ 2404.552993] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 2935.303552]  sdb: sdb1

dmesg shows the pendrive detected as /dev/sdb1, and also may get automounted by your existing ubuntu.

 $ sudo usb-creator-gtk 
Install Ubuntu

Verify the Bootable USB

  1. Check the USB Drive: Ensure that the USB drive contains the Ubuntu files.
  2. Test Boot: Restart your computer, enter the BIOS/UEFI settings, and set the USB drive as the primary boot device. Save changes and reboot to test if the system boots from the USB drive.

Troubleshooting Common Issues

  • USB Drive Not Recognized: Ensure the USB drive is properly connected and formatted. Try using a different port or USB drive.
  • Boot Errors: Recheck the steps to make sure the ISO file was correctly written to the USB drive. Consider redoing the process with a different USB burning tool.
  • Corrupted Files: Verify the integrity of the Ubuntu ISO file by comparing its checksum with the value provided on the Ubuntu website.

Conclusion

Creating a bootable USB pen drive for Ubuntu is a straightforward process that enables you to install or test Ubuntu with ease. By following the steps outlined above, you can ensure a successful and efficient installation experience. Whether you’re using Rufus, balenaEtcher, or Startup Disk Creator, having a bootable USB drive will make setting up Ubuntu a breeze.

Leave a Comment