How To Run Linux From A USB Flash Drive - InformationWeek
IoT
IoT
Software // Operating Systems
News
5/15/2008
04:21 PM
Connect Directly
Google+
Twitter
RSS
E-Mail
50%
50%
RELATED EVENTS
Ransomware: Latest Developments & How to Defend Against Them
Nov 01, 2017
Ransomware is one of the fastest growing types of malware, and new breeds that escalate quickly ar ...Read More>>

How To Run Linux From A USB Flash Drive

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.
(click for image gallery)

To install a given Linux distribution on a flash drive and run it, you'll need the following things:

  1. 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.

  2. 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.

  3. 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.

Which Distribution?

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.

Previous
1 of 4
Next
Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
pkohler01
100%
0%
pkohler01,
User Rank: Apprentice
11/15/2012 | 9:56:04 PM
re: How To Run Linux From A USB Flash Drive
Geez, talk about giving away all the tricks...

Something that should be considered are the security implications, as well as the data recovery opportunities, that having a USB flash drive that you can boot Linux up from introduces.

I created my first Linux Flash Drive a few years ago and have successfully used it in many instances to bypass security on boxes (all white-hat stuff, mind you) and to recover files from systems that would no longer boot before re-imaging them. That made a tool of this nature invaluable to me.
How Enterprises Are Attacking the IT Security Enterprise
How Enterprises Are Attacking the IT Security Enterprise
To learn more about what organizations are doing to tackle attacks and threats we surveyed a group of 300 IT and infosec professionals to find out what their biggest IT security challenges are and what they're doing to defend against today's threats. Download the report to see what they're saying.
Register for InformationWeek Newsletters
White Papers
Current Issue
2017 State of IT Report
In today's technology-driven world, "innovation" has become a basic expectation. IT leaders are tasked with making technical magic, improving customer experience, and boosting the bottom line -- yet often without any increase to the IT budget. How are organizations striking the balance between new initiatives and cost control? Download our report to learn about the biggest challenges and how savvy IT executives are overcoming them.
Video
Slideshows
Twitter Feed
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.
Flash Poll