Skip to content
Semillero
ARES

Ubuntu on a USB drive

Running Ubuntu from a USB drive

We know two methods that work for using Ubuntu without installing it on the computer’s disk.

Flashing an image to the USB drive

To copy one of these images to the USB drive you can use balenaEtcher:

Installing it in VirtualBox

You can also use VirtualBox. Download and install:

  • VirtualBox platform packages
  • VirtualBox Extension Pack

Download Ubuntu Desktop and follow the instructions in this video (in Spanish):

Choosing a USB drive

To use Ubuntu comfortably from a USB drive, it needs good random write speed, because the system reads and writes many small files all the time. It should also have at least 32 GB so you can install heavy software such as ROS 2.

We measured several drives with CrystalDiskMark. For reference, this is the result for a magnetic hard disk:

Magnetic disk

Based on that reference, the USB drive needs a random write speed (RND4K) of at least 1 MB/s, ideally 2 MB/s.

These drives meet the random write requirement:

  • SanDisk Ultra USB 3.0, 64 GB (SDCZ48-064G)

    SanDisk Ultra 64 GB

  • SanDisk Ultra USB 3.0, 32 GB (SDCZ48-032G)

  • Kingston DataTraveler Exodia M, 32 or 64 GB (DTXM)

    Kingston DataTraveler Exodia M

We have not tested the 32 GB Kingston DataTraveler Exodia (DTX), but it should work well.

With these drives Ubuntu takes a long time to load or sometimes does not load at all. Their random write speed (RND4K) is below 1 MB/s.

  • Maxell Flix, 64 GB

    Maxell Flix 64 GB

  • Kingston DataTraveler Kyson, 32 GB

    Kingston DataTraveler Kyson 32 GB

  • Kingston DataTraveler 100 G3, 32 GB

    Kingston DataTraveler 100 G3 32 GB

Translated from Spanish.