How to: run Linux from a USB stick

By Elena Santos on 20 February, 2009

How to: run Linux from a USB memory stickI've always been curious about testing other operating systems. I currently run Windows XP on the office computer, and also have two virtual machines with Vista and Windows 7 respectively. My home computer is a MacBook with Mac OS X. And I'm even planning on acquiring an HTC Magic to be able to fiddle with Android.

The one OS missing in this list is obviously Linux. I tried a few distributions in the 90s and I must say I didn't have a very positive experience. Linux wasn't that user-friendly back then and I had problems with sound configuration and with network settings, not to mention the effort I had to make to find new software and keep my system updated.

But things have changed a lot since then. Hundreds of developers have been working hard on improving usability in Linux, and all major distributions are now easier to set up and run. There are even some that can be run from a CD or a USB stick, meaning you can have a sneaky peak at the OS without actually having to erase, format or reinstall anything. It's the perfect way to take your first steps in a completely new environment while leaving a backdoor open: in case something goes wrong or you're not sure about the switch yet, you can simply restart the computer and go back to Windows. Given that it's that easy, I couldn't help it: I decided to give Linux a second chance, this time from my USB pendrive.

Running a Linux distribution from a USB stick is surprisingly easy. The first element you need is obviously a USB memory flash drive (the larger, the better). I used a 2 GB one and the Ubuntu distribution I installed took 715 MB, leaving about 1.2 GB for system memory, documents and others.

The second and final element is UNetbootin, an open-source tool that can create bootable USB versions of Linux, either downloading the necessary content from the Web or using an ISO file provided by yourself. UNetbootin doesn't require installation, so all you have to do is run the program and pick your preferred distribution from the more than two dozen supported by the program – or enter the location of your ISO file. Then select the target drive (that is, the USB stick) and click on OK.

How to: run Linux from a USB memory stick

UNetbootin will start downloading all the necessary system files (which can take a while) and after that, it will extract and install them automatically on your USB stick. Once done, you'll be asked to restart the system, and select "USB device" in the boot menu. This menu appears when you press a certain key while the computer starts up, before Windows begins to load (usually a function key, F12 in my case). And there you go: Ubuntu in full glory, running on a Vista machine from a USB memory stick.

How to: run Linux from a USB memory stick

How to: run Linux from a USB memory stick

I have to admit the distribution didn't work in the first computer I tried. The PC booted and the loading Ubuntu logo appeared on the screen, but then everything faded to black and though I heard Ubuntu's starting chime and the system was apparently still running, I couldn't see a thing. Thinking that this issue could be due to the fact that I have a dual monitor machine, I tried the USB on another computer with a single screen, and guess what: Ubuntu launched seamlessly, detected my Internet connection, configured sound with absolutely no problem and worked even better than I thought.

Besides the operating sytem, this USB-based Ubuntu installation includes also a bunch of programs to get you started: web browser, email client, video and audio players, photo editor, productivity suite, a handful of games and pretty much everything you may need for daily standard computer usage. It's the perfect way to really test Ubuntu - or any other Linux distribution - before taking the definitive leap. Don't be afraid to test it: you don't run any risks, you can get to know a whole new operating system and besides, if you finally decide you don't like it, simply reboot and go back to Windows.

[Via: OnSoftware Spain]

Comments

  • DeEspaña DeEspaña

    Pues mira es una copia exacta del artickulo en español1!

    • Sent on 22 Feb 2009
  • Elena Santos Elena Santos

    Hola DeEspaña, efectivamente, este artículo está inspirado (que no copiado, como puedes comprobar si comparas los dos) en el artículo publicado por el blog OnSoftware en español. De hecho, los dos blogs (junto con OnSoftware en alemán) pertenecemos a la misma red y tenemos un público lector común, por lo que muchas veces compartimos contenido. No obstante, siempre que lo hacemos añadimos un enlace al artículo original - como puedes ver al final de este mismo post. Saludos!

    • Sent on 23 Feb 2009
  • Trude Trude

    Hi, I tried this, but I don't get a boot window on restart, do I need a special usb memory stick to do this? thanks, Trude

    • Sent on 23 Feb 2009
  • Trude Trude

    I should tell you I'm using xp. I tried again, but got the message, "no bootable devices". I used a 2 gig memory stick from Verbatim. There were no instructions as to how to format the stick, I assume Unetbootin does the formatting? Please help, I really would like to get this to work. I've tried a few other things like this in the past, but found the installations were very sluggish, am curious if this is any better. Thanks, Trude

    • Sent on 23 Feb 2009
  • Elena Santos Elena Santos

    Hi Trude, I used a standard 2GB USB stick I got for free - no special brand whatsoever. Are you sure you press the right key to make the boot menu appear when starting the system? Remember this boot menu is not generated by Unetbootin - and it's not a window. It's a text-based menu included in the system boot-up sequence that only comes up when you press a certain key right before Windows starts loading - F12 in my case. When starting your computer, pay attention to all the messages appearing on the screen. You should probably see a couple of them that tell you which keys you need to press to enter system setup and boot menu, respectively. Hope this helps! Cheers, Elena

    • Sent on 23 Feb 2009
  • Kabi Kabi

    Also, if you have the problem finding which device you want to boot up first you can always change the boot device order in your BIOS setup. Although it can cause some problem if you setup the the boot order to find the usb devices first, for example you left your iPod plugged in, and wonder why nothing boots up. LOL Kabi

    • Sent on 26 Feb 2009
  • olenick olenick

    unetbootin doesn't format the pendrive/usb stick. Right click the icon for the drive (in my case E and from the menu click format and then click full. After doing this then use unetbootin to download linux to the usb memory stick. In my case it still didn't think the stick was formatted so I selected show all disks and selected E then ok. Takes quite a while! In fact it is still downloading. I'll let you know if it works when it's done.

    • Sent on 04 Mar 2009
  • olenick olenick

    oh well. Download crashed 70% in. Time for tea I think.

    • Sent on 04 Mar 2009
  • olenick olenick

    loaded PClinuxOS to Usb. Sadly USB is not in boot menu. Stuffed I think.

    • Sent on 04 Mar 2009
  • Comment

Softonic on Facebook