sodcalculator

10 Tech How-To

Install Ubuntu on an External Drive as a Persistent System

Guide 10-5742 · Updated · Step by step

Yes, you can install Ubuntu on an external drive and use it as a fully persistent system, meaning your files, settings, and installed programs survive reboots. This guide covers the two main approaches—a full installation and a persistent live USB—and walks you through the steps, requirements, and common pitfalls.

Full Installation vs. Persistent Live USB

There are two distinct ways to run Ubuntu from an external drive, and choosing the right one depends on your needs.

  • Full installation: The Ubuntu installer writes a normal system to the external drive, just as it would to an internal disk. This gives you a complete, fast, and reliable OS with full control over partitioning and updates. It works on any computer that can boot from USB, but the drive is dedicated to Ubuntu (though you can partition it to share space with other data).
  • Persistent live USB: Tools like Rufus or the built-in Ubuntu Startup Disk Creator create a live environment with a “persistence” file or partition. This is lighter and lets you keep the USB also usable for data, but it is slower, more limited in size (the persistence file is often capped at 4 GB on FAT32), and can be less stable for heavy use.

For most people who want a reliable portable OS, a full installation is the better choice. The rest of this article focuses on that method, with notes on the persistent live alternative.

What You Need Before Starting

Gather these items and check compatibility before you begin.

  • External drive: A USB 3.0 flash drive (at least 32 GB) or an external SSD (recommended for speed). USB 2.0 drives will work but will be painfully slow.
  • Ubuntu ISO: Download the latest LTS (Long Term Support) version from the official Ubuntu website. LTS releases are supported for five years and are the most stable.
  • A USB stick for the installer: A second drive (8 GB or larger) to hold the live installer, unless you plan to boot the ISO directly via a tool like Ventoy.
  • A computer with a free USB port: You will boot from the installer, then install to the external drive. The target computer must support booting from USB (almost all do).
  • Backup: The installation will erase the external drive. Back up any data on it.

Also, check that your computer’s BIOS/UEFI is set to allow booting from USB. On many machines, you can press a key (like F12 or Esc) during startup to bring up a boot menu—no need to change the boot order permanently.

Step-by-Step: Full Installation to an External Drive

These steps assume you are using a Windows or Linux machine to create the installer, and that the target computer is a standard x86 PC.

  1. Create a bootable installer. Use Rufus (Windows) or the Startup Disk Creator (Ubuntu) to write the ISO to your installer USB. In Rufus, select the ISO, choose GPT for UEFI or MBR for BIOS (see the next section), and use FAT32 as the file system.
  2. Boot from the installer. Plug the installer into the target computer, restart, and enter the boot menu. Select the USB drive and choose “Try Ubuntu” or “Install Ubuntu.”
  3. Start the installer. When the desktop loads, double-click “Install Ubuntu” and follow the language and keyboard prompts.
  4. Choose installation type. Select “Something else” to manually partition the external drive. This is critical to avoid overwriting your internal disk.
  5. Identify your external drive. In the partitioning screen, look for the drive that matches your external drive’s size and model (e.g., /dev/sdb). Do not touch the internal drive (usually /dev/sda).
  6. Create partitions. On the external drive, create an EFI system partition (if UEFI) of 100–500 MB (FAT32, mount point /boot/efi), a root partition (ext4, mount point /) with the rest of the space, and optionally a swap partition (2–4 GB) or a swap file later.
  7. Set the bootloader location. In the “Device for boot loader installation” dropdown, select the external drive itself (e.g., /dev/sdb), not a partition. This ensures the bootloader goes to the external drive.
  8. Complete the installation. Click “Install Now,” confirm the changes, and let the installer run. When it finishes, restart and remove the installer USB.
  9. Boot from the external drive. Plug the external drive into any computer and use the boot menu to select it. You should see the GRUB menu and then Ubuntu.

If the computer does not boot, check the UEFI/BIOS settings (see Troubleshooting below).

Choosing the Right Partitioning Scheme: UEFI vs. BIOS

Modern computers use UEFI firmware with GPT partitioning, while older ones use BIOS with MBR. The installer will usually detect the mode automatically, but if you plan to use the external drive on multiple computers, you need to decide.

  • UEFI (GPT): This is standard on most computers from the last decade. You need an EFI system partition (FAT32, 100–500 MB) and the bootloader installed to the EFI partition. The drive will boot on UEFI machines only.
  • BIOS (MBR): For older machines. You do not need an EFI partition; the bootloader is installed to the master boot record. The drive will boot on BIOS machines only.

If you want a drive that works on both, you can create a hybrid setup with both an EFI partition and a BIOS boot partition, but this is advanced and often not worth the effort. Most users should target the type of the computer they intend to use.

Common Problems and How to Fix Them

Even with careful steps, things can go wrong. Here are the most frequent issues and solutions.

  • The computer won’t boot from the external drive. Check the boot menu (F12, Esc, F2, etc.) and ensure the USB is recognized. In UEFI settings, disable Secure Boot or add the drive as a trusted device. Also, try a different USB port (preferably USB 2.0 if the drive is USB 3.0).
  • GRUB is not installed on the external drive. If you accidentally selected the internal drive as the bootloader location, you may have overwritten your internal bootloader. To fix, boot from the live USB, mount the external drive, and reinstall GRUB using the grub-install command. Or, simpler, redo the installation with the correct bootloader target.
  • The external drive is slow. USB flash drives are much slower than SSDs. Use an external SSD for better performance. Also, ensure it’s plugged into a USB 3.0 port (blue interior) and not a USB 2.0 port.
  • Wi-Fi doesn’t work after install. Some hardware needs proprietary drivers. Connect via Ethernet and run “Software & Updates” > “Additional Drivers” to install them.
  • You see “No bootable device” error. This often means the firmware is not set to boot from USB, or the drive is not formatted correctly. Recheck the partition scheme and boot mode.

If you encounter a black screen after GRUB, try adding nomodeset to the GRUB boot parameters (press ‘e’ at the GRUB menu and add it to the linux line). This is a common fix for graphics issues.

Persistent Live USB: A Lighter Alternative

If you don’t want to dedicate a whole drive to Ubuntu, a persistent live USB lets you carry a portable system that also stores your files. Tools like Rufus (Windows) or mkusb (Linux) can create one.

With Rufus, select the Ubuntu ISO, choose “Persistent partition” or “Persistent file” (if available), and set a size (e.g., 4 GB). The resulting USB will boot into Ubuntu and save changes to that persistent storage. However, this method has limitations: the persistence file is often limited to 4 GB on FAT32, and the system runs from a compressed squashfs image, making it slower and less flexible for updates. It’s fine for trying Ubuntu or light use, but not ideal for a daily driver.

Performance and Practical Considerations

Running Ubuntu from an external drive is perfectly viable, but there are trade-offs.

  • Speed: An external SSD over USB 3.0 will feel nearly as fast as an internal SSD. A flash drive will be noticeably slower, especially for large file operations and system updates.
  • Portability: You can carry your entire OS, files, and settings in your pocket and use it on any compatible computer. This is great for privacy (your data stays with you) and for having a consistent environment.
  • Hardware compatibility: The system will adapt to different hardware on each boot. Graphics drivers and Wi-Fi may need manual setup on each new machine, but most common hardware works out of the box.
  • Updates: You can update Ubuntu normally, but be aware that the bootloader (GRUB) may be updated to the external drive. If you later remove the drive, the internal system is unaffected (as long as you didn’t overwrite its bootloader).
  • Security: If you lose the drive, anyone can access your files. Consider encrypting the drive during installation (choose “Encrypt the new Ubuntu installation” if available) or using LUKS manually.

Frequently Asked Questions

Can I install Ubuntu on an external drive without affecting my internal Windows? Yes, as long as you select the external drive as the installation target and the bootloader location. The installer will not touch the internal drive if you choose “Something else” and correctly identify the drives.

Will the external drive work on any computer? It will work on any computer that supports the same boot mode (UEFI or BIOS) and has drivers for its hardware. Most modern PCs use UEFI, so a GPT drive with an EFI partition will boot on most. Some machines may require disabling Secure Boot.

How much space do I need? A minimal Ubuntu installation takes about 10–15 GB, but with applications and files, 32 GB is a comfortable minimum. For an external SSD, 128 GB or more gives you room to grow.

Is it better to use a persistent live USB or a full installation? For regular use, a full installation is recommended because it is faster, more stable, and allows full system updates. A persistent live USB is fine for testing or occasional use, but it has size limits and is slower.

Can I install Ubuntu on an external drive using a Mac? Yes, but the process is more complex because Macs use different firmware. You can create a bootable USB with a tool like balenaEtcher, then boot with the Option key. However, you may need to disable SIP and deal with T2 chip issues on newer Macs. For most users, running Ubuntu in a VM on a Mac is easier.

Will my external drive wear out faster? Flash memory has a limited number of write cycles, but modern SSDs and USB drives are designed to last for years under normal use. Heavy write operations (like frequent updates) can shorten lifespan, but for typical use, it’s not a concern. Using an external SSD with wear leveling is safer than a cheap flash drive.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →