How to Install Ubuntu on a USB Drive [Complete Guide]
1. Introduction
Benefits of Installing Ubuntu on a USB Drive
Installing Ubuntu on a USB drive allows you to carry a portable operating system wherever you go. One of the major advantages is that you can use your customized environment on different PCs without any changes. Additionally, since the system is physically separate from the computer and does not store data on the internal drive, it offers enhanced security.
Purpose of This Guide and Target Audience
This article provides a step-by-step guide for beginners who are installing Ubuntu on a USB drive for the first time. It is ideal for those interested in Linux but unsure of how to start. In addition to installation steps, we will also cover security and performance considerations.
What You Need
- Two USB Drives: One for installing Ubuntu and another for running Ubuntu.
- Ubuntu ISO File: Downloadable from the official Ubuntu download page.
- Installation Tool: A bootable USB creation tool like Rufus.

2. Step 1: Creating a Bootable Ubuntu USB Drive
Required Software
To create an installation media, you will need a tool like Rufus. Rufus is a simple and user-friendly tool that allows you to write an Ubuntu ISO image to a USB drive.
Download the ISO file from the official Ubuntu website before proceeding.
Step-by-Step Instructions
- Launch Rufus
After installing Rufus, open the application. Select the USB drive for installation and specify the downloaded ISO file. - Create Bootable Media
Check the settings and click “Start” to create the Ubuntu bootable media. - Verify and Proceed
Wait for the process to complete. Ensure that the USB drive was created correctly.
Troubleshooting
- USB Drive Not Recognized: Try plugging it into a different USB port or use another USB drive.
- Possible Corrupted ISO File: Download the file again from the official website and verify its integrity using an MD5 checksum.

3. Step 2: Booting from USB via BIOS Settings
Configuring BIOS/UEFI
Next, restart your PC and enter the BIOS (or UEFI) settings. You can typically access the BIOS screen by pressing F2, F10, or the Delete key during startup.
In the BIOS settings, find the “Boot Order” or “Boot Priority” option and set the USB drive as the first boot device.
Important Notes
- UEFI vs. Legacy Boot Mode: If UEFI mode is enabled, the USB drive may not be recognized. In this case, switch to Legacy Mode or adjust UEFI-compatible settings. Understanding partitioning and troubleshooting boot issues in a UEFI environment can be helpful.
4. Step 3: Installing Ubuntu
Accessing the Ubuntu Live Environment
Boot from the USB drive and select “Try Ubuntu” to enter the live environment. This allows you to test the system before proceeding with the installation.
Installation Process
- Select Language and Keyboard Layout
When the Ubuntu installation screen appears, set the language to “English” (or your preferred language) and choose the appropriate keyboard layout. - Configure Partitioning
Select “Something Else” for manual partitioning and configure the installation USB drive as follows:
- EFI System Partition: 500MB. Required for UEFI-based systems where the bootloader is installed.
- Root Partition: Assign the remaining available space. The root partition stores system files, applications, and personal data. Ensure enough space is left for storage.
- Swap Partition (Optional): If using an 8GB+ USB drive, allocate 1-2GB of swap space for improved performance.
Bootloader Configuration
The bootloader is essential for system startup. Select the USB drive as the target device for bootloader installation. If this is not set correctly, Ubuntu may not boot from the USB drive.

5. Step 4: Post-Installation Configuration
Completing the Installation and Restarting
Once the installation is complete, restart your PC. Make sure to set the USB drive as the primary boot device in BIOS settings again. If the PC successfully boots from the USB drive, the installation was successful.
Important Notes for Restarting
- If the system does not boot: Verify the USB boot order in BIOS settings. If necessary, review partitioning and bootloader settings.
6. Enhancing Security
If you plan to use Ubuntu on a USB drive regularly, strengthening security is crucial. Enabling password protection and data encryption will help prevent unauthorized access in case of loss or theft. During installation, you can enable the “Encrypt my home folder” option for additional security.
7. Conclusion
Installing Ubuntu on a USB drive allows you to carry a portable Linux environment anywhere. With proper partitioning and bootloader setup, you can use a customized Ubuntu setup on any compatible device. By implementing security measures, you can also ensure safe and efficient operation.