Want to run Linux any time, any place? Here's what to do with popular distributions like Puppy Linux, Ubuntu, and Fedora, so you can boot up directly from your thumb drive.
Most of the time, Linux is run from either an installation on a hard drive or a live CD/DVD distribution. The first is fast, but not very portable; the second can be run anywhere you have a computer and a CD drive with boot access, but typically isn't very fast. Over the last few years, though, we've seen the emergence of something that combines the speed of a hard drive install with the convenience of a live CD: running Linux from a USB flash drive.
While flash memory prices are still high enough that a flash-based 100-GB hard drive is still way out of the realm of what would be affordable for most people, 2-GB and 4-GB flash drives are cheap enough to make a streamlined Linux installation practical.
You won't be able to pack your MP3 collection and your gigs of vacation photos to go with you -- at least, not yet! -- but you will be able to run Linux with most of the applications you need, and bring the more crucial of your data with you as well. What's more, there are ways to run Linux from a flash drive that don't even require an OS reboot, especially if you're running Windows.
What You Need
Puppy Linux's universal installer supports everything from flash drives to compact flash cards.
To install a given Linux distribution on a flash drive and run it, you'll need the following things:
A Linux distribution that supports installing to and running from USB. The good news is that just about any recent distribution you could name will do this, although the exact steps for getting it running may vary between distros. Some distributions have the ability to do this natively.
A USB flash drive, or other USB-attached external media. All flash drives are not created equally, however, which is something I'll be discussing.
A computer that can boot from a USB port. Again, this can be slightly thorny depending on the PC -- most current PCs support booting from USB, but there are exceptions and quirks.
If you're setting up a Linux installation that will run from within Windows itself, then having USB boot support isn't required, just access to storage devices mounted from USB ports. Note that machines in some environments -- for instance, in a corporate setting -- may have administrative controls in place to prevent users from mounting storage devices on USB ports.
Your choice of Linux distribution is going to depend on a couple of things: what size flash drive you're using, which Linux distros you're familiar/comfortable with, and what features you want to support.
The size of the drive is a factor because of the amount of space the distribution will need, but that may actually be the least of your worries, depending on your budget. Flash drives have plummeted in price; just this past week, I was able to pick up a 1-GB drive for a mere $10, and a decently fast one at that. A 1-GB drive can be used to hold the ISO for a live distribution, with some room left over for persistent user data in a dedicated partition.
Most of the time you'll want to start with a distribution that is designed to run small and light. Two of my favorites in this regard are DamnSmallLinux -- probably the grand-daddy of all "tiny" distributions -- and Puppy Linux, which jams an unbelievable amount of day-to-day functionality into only a couple of hundred megabytes.
Generally, you'll need 2 to 4 GB of space for an actual fully functional installation of a distribution on the order of Ubuntu or Fedora, and if there isn't enough room on the drive for the installation, you'll generally get a warning from the installer. If you have the space for a big distro, use one, as you'll have that many more apps and that much more feature support right out of the box.
Join us for a roundup of the top stories on InformationWeek.com for the week of December 14, 2014. Be here for the show and for the incredible Friday Afternoon Conversation that runs beside the program.