How to run Linux from a USB drive

4. Speed

The simple rule here is "pay more, get more". Companies such as OCZ and Corsair specialise in high-performance devices – Corsair even makes a special range of flash drives (known as 'GT') that are made from extra-fast components. Remember, your entire computer will be running from this tiny device, so only go for a slow drive if you're a very, very patient person.

5. Size

Arguably the least important consideration is the actual physical size of the flash drive. This isn't usually a problem because all flash drives are necessarily small, and it's only if you're after a particularly tiny one that you even need to consider this. SanDisk's Cruzer Micro and Corsair's Flash Voyager Mini both come in 4GB and 8GB capacities, despite being less than half the size of conventional drives.

Make your choice

There are two distinct ways of running Linux from a flash drive, but we'll only be covering one of them here – and for good reason, as you'll see.

The two ways are: using your flash drive as a Live CD, and using the drive as a full Linux install. Perhaps surprisingly, the first option is the better one for several reasons:

  • Live CDs scan the hardware at boot time, and so are likely to be compatible with the most machines.
  • Live CDs must by necessity have a small footprint, which means there's more space for your files – or you can just buy a smaller, cheaper drive.
  • Live CDs run as much as they can in RAM, which makes for better performance.
  • Live CDs don't use swap.

That last point is actually the most important one of all: Linux makes extensive use of hard drives to save temporary data, and if you treat your flash drive as a real hard drive then Linux will use it for swap, too.

The problem is that flash drives, like all flash memory devices, have a limited number of times they can be written to before they fail. Most drives are able to withstand 100,000 writes to every memory sector, but the best can handle up to 1,000,000 and often automatically balance writes to ensure that no one sector gets excessively worn out while others are sitting untouched. Again, this is a reliability factor, so if you care for keeping your data intact for a long time it's worth you buying a trusted brand.

Just how fast is it?

As fast as flash memory is compared with mechanical hard disks, it's still limited by the throughput of USB. But on the upside, the lack of swap availability means that Linux will take advantage of your RAM much more, which means the most commonly accessed data will be just as fast if not faster when using USB drives.

If you're used to using a Live CD, you'll also be pleased to know there's much less noise (the triple-digit decibel whir of a busy DVD drive is, of course, absent with flash drives), and there's also none of the latency that usually happens when the OS lets the DVD drive go idle.

On the flip side, the nature of Live distros means they must detect their environment during boot up, so expect boot times to be a bit longer.

Do it with Ubuntu

Ubuntu 8.10 doesn't contain much in the 'wow' department, but it does come with a USB installation wizard as standard. This works by mimicking the Casper system of running a live operating system from read-only media – with the exception that flash drives aren't read-only, so you can actually make changes to the OS.

Even after Ubuntu is installed to your drive, it still looks and feels as if it works in Live mode, so you'll be prompted to choose a language when it boots up. This might seem like an annoyance, but it does come with the added bonus that the Ubuntu hard disk installer is always within reach – you can use your flash drive as an Ubuntu installer on as many PCs as you want.

Make these changes

Latest in Software
Super Mario Odyssey
ChatGPT is the ultimate gaming tool - here's 4 ways you can use AI to help with your next playthrough
Apple CEO Tim Cook delivers remarks before the start of an Apple event at Apple headquarters on September 09, 2024 in Cupertino, California. Apple held an event to showcase the new iPhone 16, Airpods and Apple Watch models. (Photo by Justin Sullivan/Getty Images)
The big Siri Apple Intelligence delay proves that maybe we really don't know Apple at all
AI writer
Coding AI tells developer to write it himself
Google Messages update
Google Messages could soon follow WhatsApp with an upgrade that makes it much easier to join group chats
Apple iPhone 16 Pro Max REVIEW
Apple Intelligence is a fever dream that I bet Apple wishes we could all forget about
DeepSeek on an iPhone
OpenAI calls on US government to ban DeepSeek, calling it ‘state-subsidized’ and ‘state-controlled’
Latest in News
Three iPhone 16 handsets on show
Apple could launch an iPhone 17 Ultra this year – but we've heard these rumors before
Super Mario Odyssey
ChatGPT is the ultimate gaming tool - here's 4 ways you can use AI to help with your next playthrough
Ray-Ban smart glasses with the Cpperni logo, an LED array, and a MacBook Air with M4 next to ecah other.
ICYMI: the week's 7 biggest tech stories from Twitter's massive outage to iRobot's impressive new Roombas
Brad Pitt looks over his right shoulder with 'F1' written behind him
Apple Original Films will take you behind-the-scenes of a racing cockpit in this new thrilling F1 movie trailer
AI writer
Coding AI tells developer to write it himself
Reacher looking down at another character from the Prime Video TV series Reacher
Reacher season 3 becomes Prime Video’s biggest returning show thanks to Hollywood’s biggest heavyweight