How to Install The Real Ubuntu System on USB Flash Drive

Last updated: November 29, 2014

Ubuntu To Go

This is a step by step tutorial shows you how to install the real Ubuntu OS on USB stick to create a ‘Windows To Go’ style USB drive. Tested with Ubuntu 14.04


Before getting started, you need to prepare something:

  1. A 8GB+ USB Drive.
  2. A Ubuntu Live CD/DVD/USB. In the case below, I created a bootable Ubuntu Live USB from the .iso image.
  3. A computer with an operating system installed.

And always backup your data on the USB flash drive!

To get started:

In my case I have a newly bought 16GB USB stick, a 4GB old USB stick, and a laptop multi-boot with Ubuntu based systems.

1. I don’t have a Ubuntu CD/DVD, so I decided to burn the Ubuntu .iso image into the old USB stick. To do so:

  1. Download Ubuntu image:
  2. Download UNetbootin: For Ubuntu, install it from Software Center.
  3. Plug in the USB stick.
  4. Start UNetbootin, and burn the .iso image into USB
If you need more hints, follow this screenshot tutorial to create bootable Ubuntu Live USB

2. Plug in the bootable USB drive to your computer and boot into the Live Ubuntu system.

IMPORTANT: For Windows 8 pre-installed machine, you have to disable “fast startup” and “secure boot” features.

To disable “fast startup”, go to Control Panel > Hardware and Sound > Power Options > System Settings > Choose what the power buttons do and uncheck the Turn on fast startup box.

To disable “secure boot”, follow this screenshot tutorial.

3. Now you’re in the Ubuntu Live system. Plug in the 8GB+ USB stick. Then launch Gparted from the Unity Dash.

In the top-right drop-down box select the USB drive (16GB in my case), and you should see something like below:


I have two USB flash drives plugged in the computer, the Hard Disk is /dev/sda, 4GB Live USB is /dev/sdb, and the 16GB USB drive is /dev/sdc.

4. From the right-click context menu, un-mount partitions on the USB drive and then delete them.

Click the green check mark button to apply changes, finally you have an unallocated flash drive, like:

unallocated USB flash drive

When done, close Gparted partition manager.

5. Click the desktop shortcut “Install Ubuntu” to bring up the Ubuntu installation wizard.

Follow the wizard until it asks you to choose where to install Ubuntu. Select the last option “Something else” and click Continue to bring up partition table.

Bring up partition table

6. In the partition table, scroll down and highlight the “free space” under the USB drive (/dev/sdc in the case) and click the plus sign to create below partitions one by one:

  • a FAT32 (or fat16) partition (required)
    • must be /dev/sdc1 (or sdX1)
    • mount point /NAME_HERE (/UDISK in the case)
    • set the memory size by yourself, it can be used for normal data storage.
    • leave others default.
  • a EXT4 partition for Ubuntu (required)
    • mount point “/” (without quotes)
    • memory size 5G+
    • leave others default.
  • a swap partition (optional).
    • You can skip this if RAM is large enough and you don’t need hibernation feature.

And very important is select install boot-loader to the USB flash drive (/dev/sdc in the case).


7. When everything’s done, click Install Now and confirm to format the partitions (Pay attention on which partitions to be formatted).


Click continue and finish the wizard. Once the installation complete, restart your computer and boot with the ‘Ubuntu To Go’ USB drive and enjoy!


I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to remind me outdated tutorial! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee:

26 responses to How to Install The Real Ubuntu System on USB Flash Drive

  1. I was wondering if you happen to know how to install ubuntu onto fixed state disks (compatible with Win 8). I understand that for bootable removable flash disks to work, the drives have to be of removable media and not fixed state disks.

  2. Hello,

    Thank you very much for this awesome guide it helps a lot :) not like other crappy guides it’s really helps me to install ubuntu 15.10 to my 16Gb usb flash drive thanks ;)

    Best regards

  3. My friend installed it on 16GB USB via old Compaq CQ60-101AU laptop. The installation was successful. However, the screen flickers continuously. Tried changing display driver to (proprietary-tested). The flickering stopped. However, after restart no window borders, no launcher, no taskbar. Hence, changed back to X-org default driver. How to fix this?

    Also, whenever we boot via usb[ubuntu], it comes to Ubuntu boot prompt screen. Why? Is it normal if using Ubuntu USB?

  4. I want to install Ubuntu on usb stick.
    I want Ubuntu to have gcc support
    It should also have video playing and audio playing as home purpose.

    Can we do it. As I have tried for live cd it just had Ubuntu but I can play a video nor I can do development work.

    • Neeth; I was able to find instructions to create a live ubuntu usb stick and install java jdk then eclipse with java and c++ tools. To do so you must select use persistence. We are limited to 4 GB. And the data is stored in a file on the usb stick so we can’t put the usb stick into another pc and copy work files off of it. Which is why I’m looking into this method. After we make the bootable usb stick with Ubuntu loaded onto it we should be able to take that stick to another machine and see our user directory. Then we may copy our work files off to another computer or do whatever we want with them.

  5. Valiant Eldson April 1, 2016 at 11:28 am

    The resulting USB cannot be booted from a Mac. Is there a way to allow me to boot from a Linux USB that isn’t just an installer? I’ve used a try-it-out installer with persistence before, but I don’t like those as the storage is critically limited.

  6. what are the problems may occur using this method compared to ordinary HDD installation?

  7. Thanks this was very helpful and worked very well on an old HP, which I have now replaced with a MacBook Air (early 2015). The USB drive will not show up in the startup manager so I can’t boot to it from my new machine. I was wondering if there is a relatively simple change that can be made to the process above so that the usb install will be available in the Mac startup manager.

  8. In these instructions, you’ve written that creating the swap partition on USB drive is optional. I’m going to create the swap partition on the USB drive, because I’m uncomfortable with the message I get about reformatting the swap partition on the hard drive.

    This work is being done on a computer tower with Ubuntu 16.04 installed. I had put the Ubuntu 14.04 iso onto a (red) 8GB USB key. The target for installation is a (white) 8GB USB key.

    The partition sizes for the (white) 8GB USB key that I chose were roughtly 1 GB for the fat32 partition, labelled dos; 6.5 GB for the ext4 partition labeled /; and 0.5 GB for the swap partition.

    I was sure to set the Device for boot loader installation as sdc1

    When I select the “Install Now” button, I get a message:

    — begin message —

    If you continue, the changes listed below will be written to the disks. Otherwise, you will be able to make further changes manually.

    The partition tables of the following devices are changed:
    SCSI9 (0,0,0) sdc

    The following partitions are going to be formatted:
    partition #5 of SCSI1 (0,0,0) (sda) as swap
    partition #1 of SCSI9 (0,0,0) (sdc) as fat32
    partition #5 of SCSI9 (0,0,0) (sdc) as ext4
    partition #6 of SCSI9 (0,0,0) (sdc) as swap

    — end message —

    It looks like whether I create a swap partition on the (white) USB key or not, the installation wants to reformat the swap partition on the fixed disk in the tower computer. My understanding is that really shouldn’t make a difference, so it seems like a quirk with the installation program that a swap partition had to be created somewhere.

    Upon rebooting the tower normally (i.e. from the internal disk), the rewriting of the swap partition didn’t seem to have an impact.

    Ubuntu 14.04 now runs successfully from the (white) USB 2.0 flash drive. Opening a terminal window (which couldn’t be done with “Try Ubuntu”) works. I’ve installed Google Chrome so that I can message with Hangouts, resulting in the 6.5 GB root being 74% full.

    Thanks for the instructions.

  9. My friend installed Ubuntu 16.04 x64 on USB using this method. It was working fine. However, there was some issue when used on a nvidia graphics laptop. So, he changed from nouveau drivers to proprietary to test it. However, it ended in corrupted partition sdc5.

    Using recovery rootshell, reverted back to nouveau drivers. It was all working fine except this one issue. The download percentage on software updater and other areas show a orange-white box instead of complete orange box.

    You can view the uploaded image here:

    Tried repair broken packages and ran fsck in recovery. However, the issue still not fixed.

    Please help fix this issue for my friend.

  10. Valter Fukuoka June 2, 2016 at 1:42 pm

    Nice tutorial, very simple/easy, thanks for the info.

    I just want to say that I had 3 SUCCESS remarks to make:
    1) Ubuntu 16.04 also works fine as your tutorial describe.

    2) Then, I added more 2 USBKEYS, build a RAID-0 including these 2 new USBKEYS and did move (copy) the “/usr var MailPoetForm = {"ajax_url":"https:\/\/\/wp-admin\/admin-ajax.php","is_rtl":""};