Skip to main content

Running Linux From a USB Drive: Are You Doing It Right?

linux-usb

You’ve probably heard about previewing and installing Linux from USB drives, but did you know that you can also save your data between uses or even run a full permanent Linux installation on a USB stick? This can have massive benefits for your productivity, especially if you’re a remote worker, or cannot afford your own PC.

In short, we’re talking about turning Linux into the ultimate ultra-portable platform: running Linux from a USB flash device. Here are your three options for carrying Linux in your pocket. Find out which method is best for you.

Choose the Right USB Stick

Before you get started, it’s worth considering buying a new USB stick. Older USB sticks have already had their lifespan reduced considerably, and as flash has a finite number of read/write cycles, a fresh stick of flash makes sense. Something affordable with a handy amount of storage space would be the best flash drive for a bootable version of Linux.

SanDisk Ultra 32GB USB 3.0 Flash Drive SanDisk Ultra 32GB USB 3.0 Flash Drive Buy Now On Amazon $8.99

Also, you should consider the hardware you’ll be connecting the USB flash drive to. Does it support USB 3.0? If so, you’ll enjoy considerable speed (and other) advantages over old-fashioned USB 2.0.

To check if the destination computer has USB 3.0, look at its USB ports. If they have blue plastic in them rather than black, that’s a good visual clue. Not all USB 3.0 ports use this shorthand, however, so look up the specs of the PC. On Windows, you can check the Device Manager.

Write a Live ISO to USB

balenaEtcher tool for flashing ISO to a flash drive

It has become really easy to take an ISO image of your favorite Linux distribution and write it to any appropriately sized USB drive. From there, you can boot up a Linux system on any computer that supports booting from USB media. There are plenty of tools that can burn an ISO for you, and this method is compatible with virtually every Linux distribution out there.

One option is balenaEtcher, a free and open source tool available for Linux, macOS, and Windows. While burning an ISO isn’t as complicated as it sounds, Etcher is about as simple as it gets.

However, the downside to this approach is that you’ll lose all of your data as soon as you shut down or restart the computer you’re working on. As a Live environment, all data is kept in RAM and none of it is written to the USB drive; therefore, none of it is saved when the system turns off.

If you’d like to keep a customized Linux environment in your pocket, this isn’t what you want. However, if you’re wanting to use the drive as a way to perform secure communications (think banking, or any activities that require the use of TOR) and ensure that no sensitive information is stored anywhere, this is definitely the way to go.

Download: balenaEtcher

Enable Persistent Data

mkusb tool to create boot drives from ISO files

Depending on your distro, you may have the option to enable persistent data on your USB drive. This is great: it lets you write a relatively compact ISO file to boot from, and you can actually keep your extra installed applications and saved documents.

To make this work, you will need a compatible program to perform the installation. One option is Rufus, a Windows app that supports creating live Linux USB sticks with persistent storage. If you’re already on Linux, you might try mkusb instead. The tool will run on Ubuntu and Debian-based distros, plus some others.

Having persistent data is ideal if you use a large variety of systems with the USB drive, as the live environment will detect what hardware is available every time it boots. So the advantage in this scenario is that you can save your stuff, use up less drive space, and have maximum support for whatever hardware you plug into.

The downsides: you automatically boot into the live user account, which isn’t password protected. Also, you have to be careful with software updates, as newer kernels could break the bootloader.

Download: Rufus for Windows

Download: mkusb for Linux

Do A Full Install to USB

Ubuntu installer

Lastly, you can choose to do a full install onto the USB drive. You’ll have to use a disc or another USB drive for the installation media, but this method literally lets you have a full Linux system in your pocket—one that is as flexible as any other traditional installation.

The advantages are pretty obvious: you get your own system setup just the way you like it, right in your pocket. But there are still a few downsides.

First, you’ll need a larger USB drive for this type of installation. Granted, that’s not as much of an issue as it used to be. If your only option is an old drive lying around, 8GB is feasible. But with 128GB and 256GB drives having drastically dropped in price, you don’t need to spend a lot of money to run Linux on a flash drive comparable in size to an SSD.

Second, as the system thinks it’s installed normally, it will tend to make changes that are ideal for the hardware you’re currently working with, but not necessarily hardware you’ll encounter in the future.

This primarily concerns the use of proprietary drivers. For maximum compatibility, don’t use them. The open drivers are plenty good for most uses.

Linux Loves USB

Surprised? You shouldn’t be! Linux has always been very flexible, so that it can meet all sorts of needs. And the fact that there are no licenses involved means that running Linux on a USB stick is rather simple to do, unlike Windows and macOS.

Now that you know what your options are, it should be very easy to decide which solution is best for your needs. Or, now that you’re aware of your options, maybe it’s not so easy.

To help you with your choice of distro, we have rounded up the best Linux distros to install on a USB stick. By the way, you can also run Chrome OS from a USB drive!

Read the full article: Running Linux From a USB Drive: Are You Doing It Right?

Comments

Popular posts from this blog

25 Awesome iPhone App Icon Packs to Customize Your Home Screen

With the release of iOS 14, Apple made it possible to customize the app icons on your iPhone's Home Screen without worrying about duplicates. Of course, most of us aren't graphic designers, so we need to rely on iOS app icon packs made by other people to change the look of our Home Screen. We've scoured the web to find the coolest, most unique, and best-designed iOS app icon packs for you to download. Before You Customize Your iOS App Icons There are a few important points you need to know before you customize the app icons on your iPhone Home Screen: It's time-consuming: For every app icon you want to change, you need to create a new shortcut in the Shortcuts app, then add it to your Home Screen and hide the original app. If you have a lot of apps, this could take hours. Custom icons don't show notification badges: Customized app icons act as a shortcut to the original app. For this reason, they don't show red notification badges like normal apps. The o...

The 9 Different Types of NFTs

Jack Dorsey, the creator of Twitter, sold the world's first tweet for $2.9 million; this bit of news is what introduced most people to the world of NFTs (Non-Fungible Tokens). Now all the rage, NFTs are being bought and sold like priceless pieces of art. The NFT market is seemingly swarming with digital Mona Lisas, but the question is: besides tweets and pictures, what other types of NFTs are there in the wild? Let's take a dive into the world of NFTs and find that answer. First Off: What Are NFTs? Digital media can be replicated easily and redistributed; however, try making an honest-to-goodness copy of the Mona Lisa down to the brush strokes and the original paper. Think of NFTs as digital non-replicable pieces of art. These are properties that can not be copied or replaced at all. Sure, the media itself can be copied and posted to a person's social media, but the buyer will retain ownership of the NFT, regardless. Hitting Ctrl + C on an NFT and posting it is the equi...

The 7 Best Wired Headphones

Premium pick Sony WH1000XM4/B Over-Ear Headphones See On Amazon Brand Sony Battery Life 30 hours Material Synthetic leather Editors choice PeohZarr On-Ear Headphones See On Amazon Brand PeohZarr Material Synthetic leather Bluetooth No Best value Vogek On-Ear Headphones See On Amazon Brand Vogek Material Protein leather Bluetooth No Grado SR80e Prestige See On Amazon Brand Grado Battery Life N/A Material Leather Sony MDR-XB50AP Extra Bass See On Amazon Brand Sony Bluetooth No Additional Tips Yes Summary List 9.20 /10 1. Premium pick: Sony WH1000XM4/B Over-Ear Headphones 9.00 /10 2. Editors choice: PeohZarr On-Ear Headphones 9.00 /10 3. Best value: Vogek On-Ear Headphones 9.00 /10 4. Grado SR80e Prestige 9.00 /10 5. Sony MDR-XB50AP Extra Bass 8.60 /10 6. Panasonic ErgoFit 9.20 /10 7. Apple Ear...