Search My Blog

Friday, June 25, 2010

How to install Linux on a USB flash drive | TuxRadar Linux

How to install Linux on a USB flash drive

Nothing can beat having a great Linux distro installed on a super-fast hard drive, with all your favourite apps configured just how you like them and all your files at your fingertips. But this has one major drawback: perfect as your setup is, it's also just one machine, and sooner or later you'll be forced to leave that computer behind and use something else. Something that might run Windows. Something that might not even have Firefox. Because no one likes being parted from their data for too long, we present a smarter option: store it all on a USB flash drive... In older days, you were able to store Linux on a CD and use a flash drive just to save changes. After some advancements, you were able to run Linux straight from the flash drive, but it didn't store any changes you made. But the latest generation of Linux distros - namely Ubuntu 8.10 and Fedora 9 - have a memory overlay system that allows you to store your Linux distro and any changes you make to it on a single flash drive. Sure, you'll need at least 1GB to be able to fit the entire distro on there, but it does mean everything you need is all on the one device. Once you switch your install to a flash drive, it means you can take it pretty much anywhere and get back to work immediately. Whether you're using a server, a desktop or even a tiny little Aspire One or Eee PC, the vast majority of modern computers support booting straight from USB, so you can just plug in your drive and go. You'll need a flash drive with at least 1GB of free space, and ISO images of either Ubuntu 8.10 or Fedora 9. It's likely there are other distros out there that work with similar or perhaps even identical instructions, but Ubuntu and Fedora are the big two so we stuck with them. One of the first thing you encounter when switching to free software are people who want to let you know all a bout the difference between free beer and free speech, and that's all very nice. But for most us, nearly all our software is free of cost and free to modify, so in our minds we balk at the idea of paying for functionality. However, if you want to put Linux on a flash drive you really do have to fork out and buy some hardware, so if you don't already have a good flash drive you need to read this first.
There are five things you'll want to consider when buying the perfect flash drive for Linux. If we order them with the most important first, it looks like this:
  1. Reliability. This is easily the most important thing to care about, because it doesn't matter how cheap, fast and spacious a flash drive is when it dies after 20 minutes. If losing your data is simply not an option (and, let's face it, that's almost certainly the case), go for a brand name you trust - we chose Corsair, because it's a company with a huge amount of experience making quality flash drives, and its Flash Voyager range is designed to be water- and shock-proof.
  2. Cost. This is always going to be a consideration, but fortunately flash prices have dropped dramatically in recent years - whereas 256MB drives used to be £60 or £70, you can now get 32GB drives for the same price. That's over 100 times the capacity for the same price!
  3. Capacity. 1GB is the absolute minimum needed to get started, but it really depends on how much data you want to store - and also how much extra software you want to install. If cost is an issue, the best value drive sizes right now are 4GB or 8GB.
  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.


This is a Great Article, with allot of info on Installing Linux to a USB Drive. Definitely Go there and Read On!:)



Jetchisel said...

The OpenSuSE way.

Don's Deals Blog said...

Thanks for the link, Jetchisel. That's a great Step by Step Tutorial on installing OpenSuse to a Hard Drive. At first, I thought you were talking about installing it to a USB Stick "How to install Linux on a USB flash drive | TuxRad". But, after reading through your Article. I see that you are showing How to install Linux from a USB flash drive... I like the Screen shots and explanations. Great work!:) I have an OpenSuse Remix that I made my self too. I made it in Suse Studio on their Web Site. It is my first delve into OpenSuse. I haven't "Shared" it yet. Since, I'm not done tweaking the Setup and Apps. But, it is going to be a full Desktop System, with most all Apps the anyone would need to Daily Web and Audio Video work. When I installed it to one of my HD's on my System. I had to read very carefully and think about the Partitioning of the Drive, to make sure I didn't Format any of my other Systems on other Partitions. OpenSuse installation is definitely different than Fedora or Debian. My favorite is Fedora. I find it easier to see what is going to happen, when you commit to Formatting your Drive. I will do a Post on your Tutorial on my Blog too, so that others can read it...