Live USB

From Wikipedia, the free encyclopedia
Jump to: navigation, search
A live USB of Ubuntu, running Firefox, OpenOffice.org and Nautilus.

A live USB is a USB flash drive or a USB external hard disk drive containing a full operating system which can be booted. Live USBs are closely related to live CDs, but sometimes have the ability to save settings and permanently install software packages back onto the USB device. Like live CDs, live USBs can be used in embedded systems for system administration, data recovery, or the testing of operating system distributions without committing to a permanent installation on the local hard disk drive. Many operating systems including Mac OS 9, Mac OS X, Microsoft Windows XP Embedded and many of the Linux distributions and BSDs can also be used from a USB flash drive.

Contents

[edit] History

Since 1999, Apple Macintosh computers (beginning with the Power Mac G4 with AGP graphics and the slot-loading iMac G3 models)[1] have been able to boot from USB. Intel-based Macs support booting Mac OS X from USB.

Specialized USB-based booting was proposed by IBM in 2004, in the papers "Reincarnating PCs with Portable SoulPads" (PDF & Summary) and Boot Linux from a FireWire device.[2]

[edit] Benefits and limitations

Live USBs share many of the benefits and limitations of live CDs.

[edit] Benefits

[edit] Limitations

[edit] Principle of installation

Various applications exist to create live USBs; examples include the Fedora Live USB Creator and UNetbootin, which works with a variety of distributions. A few Linux distribution and live CDs have ready-made scripts which perform the steps below automatically. In addition on some, extra applications can be installed, and a persistent file system can be used to store changes.

To set up a live USB system for commodity PC hardware, the following steps need to be done:

[edit] Types of live USB

[edit] Live CD derived

The first type of live USB is created by simply taking the ISO image file from a live CD distribution and placing it on USB storage device and then making it bootable.

Running from a CD allows the use of a completely different computing system on an existing systerm, and allows running without any storage device. (RAM is still required). Like a CD, it requires no installation. Depending on the methods used to put the system onto USB, the USB may or may not be easily written to. No requirement exists for compression since USB devices are far larger than any optical storage medium. A system as small as 1 M can be used (e.g. Tom's Root Boot).

(Actual use of a CD or DVD will allow the user to choose if the medium can later be written to. Write-Once Read Many discs allow certainty that the live system will be clean the next time it is re-booted.) Use of a liveCD was an idea proposed by students participating in the annual Red/Blue competition sponsored by the US National Security Agency.

Knoppix liveCDs have a utility that, on boot, will allow a user to declare their intent to write to either a temporary (USB, say) or permanent (existing hard drive, say) which enables them to save their configuration along with any security updates they might have added. This can be easier than re-creating the USB system.

[edit] Full install

The second type of live USB is closely related to a traditional operating system hard drive install with minor modifications like the elimination of swap partitions and files.

Advantages Disadvantages
  • Updating applications or the whole thing is as easy as the parent distribution used to create it.
  • Full system encryption possible.
  • Easier to customize with the user's preferred Window Manager and applications.
  • Base install usually starts at approximately 200MB (although some can be as little as 40MB) and grows as the user adds applications.

[edit] Examples

[edit] Comparison

Distribution Alternatives to live Cd creation File saving Application saving Boot methods
Fedora 9 Netinstaller (downloads iso & makes Usb), UNetbootin in folder none
Gobolinux Zip + sh&bat scripts N/A N/A 2ram (gobolinux toram)
sidux USB installer GUI in folder, on USB stick auto normal
Slax Zip + sh&bat scripts, UNetbootin N/A N/A
SliTaz none & from internal drive($tazusb) in hacker folder through script (Tazusb) 2ram - lowram
(K,X)ubuntu UNetbootin auto auto
Wolvix none (Control Panel) auto after making permanent space (Control panel) auto AllUsb - 2Ram

Syslinux is a program that makes a USB storage device bootable (they are often used after extracting files to the formatted media).

[edit] See also

[edit] References

Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages