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:
- Ubuntu 22.04 for a 32 GB USB drive, without ROS 2
- Ubuntu 22.04 for a 32 GB USB drive, with ROS 2 Humble installed
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:

Based on that reference, the USB drive needs a random write speed (RND4K) of at least 1 MB/s, ideally 2 MB/s.
Recommended
These drives meet the random write requirement:
-
SanDisk Ultra USB 3.0, 64 GB (SDCZ48-064G)

-
SanDisk Ultra USB 3.0, 32 GB (SDCZ48-032G)
-
Kingston DataTraveler Exodia M, 32 or 64 GB (DTXM)

We have not tested the 32 GB Kingston DataTraveler Exodia (DTX), but it should work well.
Not recommended
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

-
Kingston DataTraveler Kyson, 32 GB

-
Kingston DataTraveler 100 G3, 32 GB

Translated from Spanish.