How to run Linux from a USB drive

Once you have your Linux installation, you can do with it as you please. But we'd recommend you make some or all of these simple changes to make it truly feel like home:

Add your own user. Running under the Live session user will get old sooner or later, so create your own user and home directory, and make sure you give it the "administer the system" privilege.

  • Windows XP
  • The Fedora Live USB Creator app
  • A Fedora 9 ISO image
  • A 2GB or larger flash drive

If you want to run it from Linux, you'll need:

  • EITHER: Fedora 9 and the Fedora Live USB Creator app.
  • OR: Fedora 10 with the liveusb-creator package installed.
  • A Fedora 9 ISO.
  • A 2GB or larger flash drive.

One of the nice features of the Fedora LiveUSB Creator is that it is non-destructive, meaning that any data on your flash drive is left intact. Fedora also uses Grub rather than ISOLinux as its bootloader, which means you can boot, test and work with your Fedora flash drive straight from a virtual machine using a command line like this:
qemu –hda /dev/sdb

You'll obviously need enough RAM to run both your host operating system and the guest Fedora flash install, and you'll probably want to have the KQemu kernel module installed to make Qemu run at an acceptable speed!

Installing Fedora from Linux

Because the Fedora Live USB Creator is written using Python and Qt, it's completely cross-platform – that Windows program runs just the same on Linux, albeit with a few dependencies that need to be sorted out first.

To get started, go to System > Add/Remove Software, then install both PyQt 4 (you don't need to the –devel packages), and SysLinux. Once that's done, pop in your LXF coverdisc from this issue and browse to the System folder, where you should find the Live USB Creator RPM file. Run this as root:
rpm –i liveusb-creator-2.7.1.fc9.noarch.rpm

Once that's done, the program will be available to run from under the Tools > liveusb-creator menu. You'll need to enter your root password, but otherwise it's the same look, feel and functionality as the Windows version, thanks to its Python/Qt base – make sure you have your Fedora ISO and USB drive ready.

-------------------------------------------------------------------------------------------------------

First published in Linux Format, Issue 114

Now read The 14 best Linux distros

Sign up for the free weekly TechRadar newsletter
Get tech news delivered straight to your inbox. Register for the free TechRadar newsletter and stay on top of the week's biggest stories and product releases. Sign up at http://stealprices.shop/register%3C/a%3E%3C/p%3E