Short description: USB drive with a full bootable operating system
Puppy Linux, an example of an operating system for live USBs
Ubuntu 8.04 running Firefox, OpenOffice.org and Nautilus
A live USB is a portable USB-attached external data storage device containing a full operating system that can be booted from. The term is reminiscent of USB flash drives but may encompass an external hard disk drive or solid-state drive, though they may be referred to as "live HDD" and "live SSD" respectively. They are the evolutionary next step after live CDs, but with the added benefit of writable storage, allowing customizations to the booted operating system. Live USBs can be used in embedded systems for system administration, data recovery, or test driving, and can persistently save settings and install software packages on the USB device.
Many operating systems including Mac OS 9, macOS, Windows XP Embedded and a large portion of Linux and BSD distributions can run from a USB flash drive, and Windows 8 Enterprise has a feature titled Windows To Go for a similar purpose.
Contents
1Background
2Benefits and limitations
2.1Benefits
2.2Limitations
3Setup
4Full installation
4.1Microsoft Windows
5See also
6References
7External links
Background
To repair a computer with booting issues, technicians often use lightweight operating systems on bootable media and a command-line interface. The development of the first live CDs with graphical user interface made it feasible for non-technicians to repair malfunctioning computers. Most Live CDs are Linux-based, and in addition to repairing computers, these would occasionally be used in their own right as operating systems.
Personal computers introduced USB booting in the early 2000s, with the Macintosh computers introducing the functionality in 1999 beginning with the Power Mac G4 with AGP graphics and the slot-loading iMac G3 models.[1] Intel-based Macs carried this functionality over with booting macOS from USB.[2] Specialized USB-based booting was proposed by IBM in 2004 with Reincarnating PCs with Portable SoulPads and Boot Linux from a FireWire device.[3][4]
Benefits and limitations
A USB flash drive
Live USBs share many of the benefits and limitations of live CDs, and also incorporate their own.
Benefits
In contrast to live CDs, the data contained on the booting device can be changed and additional data stored on the same device. A user can carry their preferred operating system, applications, configuration, and personal files with them, making it easy to share a single system between multiple users.
Live USBs provide the additional benefit of enhanced privacy because users can easily carry the USB device with them or store it in a secure location (e.g. a safe), reducing the opportunities for others to access their data. On the other hand, a USB device is easily lost or stolen, so data encryption and backup is even more important than with a typical desktop system.
The absence of moving parts in USB flash devices allows true random access, thereby avoiding the rotational latency and seek time (see also mechanical latency) of hard drives or optical media, meaning small programs will start faster from a USB flash drive than from a local hard disk or live CD. However, as USB devices typically achieve lower data transfer rates than internal hard drives, booting from older computers that lack support for USB 2.0 or newer can be very slow.
Limitations
LiveUSB OSes like Ubuntu Linux apply all filesystem writes to a casper filesystem overlay (casper-rw) that, once full or out of flash drive space, becomes unusable and the OS ceases to boot.[citation needed]
USB controllers on add-in cards (e.g. ISA, PCI, and PCI-E) are almost never capable of being booted from, so systems that do not have native USB controllers in their chipset (e.g. such as older ones before USB) likely will be unable to boot from USB even when USB is enabled via such an add-in card.
Some computers, particularly older ones, may not have a BIOS that supports USB booting. Many which do support USB booting may still be unable to boot the device in question. In these cases a computer can often be "redirected" to boot from a USB device through use of an initial bootable CD or floppy disk.[5][6][7]
Some Intel-based Macintosh computers have limitations when booting from USB devices – while the Extensible Firmware Interface (EFI) firmware can recognize and boot from USB drives, it can do this only in EFI mode. When the firmware switches to "legacy" BIOS mode, it no longer recognizes USB drives. Non-Macintosh systems, notably Windows and Linux, may not be typically booted in EFI mode and thus USB booting may be limited to supported hardware and software combinations that can easily be booted via EFI.[8] However, programs like Mac Linux USB Loader can alleviate the difficulties of the task of booting a Linux-live USB on a Mac. This limitation could be fixed by either changing the Apple firmware to include a USB driver in BIOS mode, or changing the operating systems to remove the dependency on the BIOS.
Due to the additional write cycles that occur on a full-blown installation, the life of the flash drive may be slightly reduced. This doesn't apply to systems particularly designed for live systems which keep all changes in RAM until the user logs off.[9] A write-locked SD card (known as a Live SD, the solid-state counterpart to a live CD) in a USB flash card reader adapter is an effective way to avoid any duty cycles on the flash medium from writes and circumvent this problem. The SD card as a WORM device has an essentially unlimited life. An OS such as Linux can then run from the live USB/SD card and use conventional media for writing, such as magnetic disks, to preserve system changes; see persistence (computer science).
Setup
Various applications exist to create live USBs; examples include Universal USB Installer, Rufus, Fedora Live USB Creator, and UNetbootin. There are also software applications available that can be used to create a Multiboot live USB; some examples include YUMI Multiboot Bootable USB Creator[10] and Ventoy. A few Linux distributions and live CDs have ready-made scripts which perform the steps below automatically. In addition, on Knoppix and Ubuntu extra applications can be installed, and a persistent file system can be used to store changes. A base install ranges between as little as 16 MiB (Tiny Core Linux) to a large DVD-sized install (4 gigabytes).
To set up a live USB system for commodity PC hardware, the following steps must be taken:
A USB flash drive needs to be connected to the system, and be detected by it
One or more partitions may need to be created on the USB flash drive
The "bootable" flag must be set on the primary partition on the USB flash drive
An MBR must be written to the primary partition of the USB flash drive
The partition must be formatted (most often in FAT32 format, but other file systems can be used too)
A bootloader must be installed to the partition (most often using syslinux when installing a Linux system)
A bootloader configuration file (if used) must be written
The necessary files of the operating system and default applications must be copied to the USB flash drive
Language and keyboard files (if used) must be written to the USB flash drive
USB support in the BIOS’s boot menu (although there are ways to get around this; actual use of a CD or DVD can 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 rebooted.)
Knoppix live CDs have a utility that, on boot, allows users to declare their intent to write the operating system's file structures either temporarily, to a RAM disk, or permanently, on disk or flash media to preserve any added configurations and security updates. This can be easier than recreating the USB system but may be moot since many live USB tools are simple to use.
Full installation
One alternative to the live operating-system solution would be a full installation; that is, a traditional installation, but without swap partitions. This option has the advantage of being efficient for the software, as it eliminates the need for the device to retain – separate from the persistent file – the operating-system’s installer software. However, full installation is not without disadvantages; due to the additional write cycles that it requires, the life of the flash drive may be slightly reduced. To mitigate this, some live systems are designed to store changes in RAM until the user initiates a system powerdown, which triggers the actual writes to the device. The trade-off is greater risk of lost work, in the case of an abnormal abort. Beyond these, another factor to consider is that, if the transfer speed of the storage device is poor, then performance can be reduced to a rate more typical of legacy computers – even for machines with modern components. This issue can usually be overcome by installing to a USB hard drive, as they generally perform better than flash drives, regardless of the connector.
Microsoft Windows
Although many live USBs rely on booting an open-source operating system such as Linux, it is possible to create live USBs for Microsoft Windows by using Diskpart[11] or WinToUSB.[12]
See also
Boot disk
List of live CDs
List of tools to create Live USB systems
List of Linux distributions that run from RAM
Live USB creator
Comparison of Linux Live CDs
Self-booting diskette
UNetbootin
References
↑"USB Info and Benefits of Dual-Channel USB". September 16, 2003. https://support.apple.com/kb/TA25908. "Bootable USB drives: A storage device such as a SuperDisk, Zip disk, or other USB storage drive can be used to hold a valid system folder and used at startup."
↑"Starting from an external USB storage device (Intel-based Macs)". March 22, 2016. https://support.apple.com/en-ca/HT201663.
↑Singer, Michael (August 15, 2005). "IBM brains capture a PC's soul". CNET. CBS Interactive. https://www.cnet.com/news/ibm-brains-capture-a-pcs-soul/.
↑Honeyford, Martyn (July 15, 2004). "Boot Linux from a FireWire device". IBM. http://www-128.ibm.com/developerworks/linux/library/l-fireboot.html.
↑Trevor (May 6, 2010). "Boot from a USB Drive Even If Your BIOS Won't Let You". http://www.howtogeek.com/howto/16822/boot-from-a-usb-drive-even-if-your-bios-wont-let-you/.
↑"Plop Boot Manager". February 7, 2012. https://www.plop.at/en/bootmanager/index.html.
↑"Use a Floppy to Boot USB Pendrive Linux". 2007-11-21. http://www.pendrivelinux.com/use-a-floppy-to-boot-usb-pendrive-linux/.
↑"XFCE minimum install HD". https://forums.linuxmint.com/viewtopic.php?f=46&t=16243?f=46&t=16243#p141498. "Live cd only write to the swap partition if your pc has one. If it doesn't it'll only use your RAM."
↑"YUMI - Multiboot USB Creator | Bootable Pen Drive Linux" (in en-us). 13 March 2011. https://www.pendrivelinux.com/yumi-multiboot-usb-creator/.
↑nnamuhcs. "Create a Bootable USB Flash Drive" (in en-us). https://docs.microsoft.com/en-us/windows-server-essentials/install/create-a-bootable-usb-flash-drive.
↑Gordon, Whitson (21 April 2014). "How to Run a Portable Version of Windows from a USB Drive". Gawker Media. http://lifehacker.com/how-to-run-a-portable-version-of-windows-from-a-usb-dri-1565509124.
External links
The Differences Between Persistent Live USB and Full Linux Install on USB
Universal USB Installer
Partitionless Installation
Tutorial – How to Set your BIOS to boot from CD or USB
HOW TO: Create a working Live USB
Debian Live project
How to create a Live USB in Ubuntu
Casper
v
t
e
Linux
Linux kernel
History
Kernel
Linus's law
Linux-libre
Linux startup process
Linux kernel oops
Tux
more…
Controversies
Criticism of Linux
Criticism of desktop Linux
GNU/Linux naming controversy
Tanenbaum–Torvalds debate
SCO and Linux
Distributions
General comparison
Distributions list
Netbook-specific comparison
Distributions that run from RAM
Lightweight
Security-focused operating system
Proprietary software for Linux
Package manager
Package format
List of software package managers
Organizations
LinuxChix
Linux Counter
Linux Documentation Project
Linux Foundation
Linux Mark Institute
Linux User Group (LUG)
Adoption
Adopters
Desktop
Embedded
Gaming
Mobile
Range of use
Media
DistroWatch
Free Software Magazine
Full Circle
Linux.com
Linux Format
Linux Gazette
Linux Journal
Linux Magazine
LinuxUser
Ubuntu User
Linux Outlaws
Linux Voice
LugRadio
LWN.net
Open Source For You
Phoronix
Revolution OS
The Code
Linux
Linux kernel features
Portal
WikiProject
v
t
e
Operating systems
General
Advocacy
Comparison
Forensic engineering
History
Hobbyist development
List
Timeline
Usage share
Kernel
Architectures
Exokernel
Hybrid
Microkernel
Monolithic
vkernel
Rump kernel
Unikernel
Components
Device driver
Loadable kernel module
Microkernel
User space
Process management
Concepts
Context switch
Interrupt
IPC
Process
Process control block
Real-time
Thread
Time-sharing
Scheduling algorithms
Computer multitasking
Fixed-priority preemptive
Multilevel feedback queue
Preemptive
Round-robin
Shortest job next
Memory management and resource protection
Bus error
General protection fault
Memory protection
Paging
Protection ring
Segmentation fault
Virtual memory
Storage access and file systems
Boot loader
Defragmentation
Device file
File attribute
Inode
Journal
Partition
Virtual file system
Virtual tape library
List
Acorn
Arthur
ARX
MOS
RISC iX
RISC OS
Amiga Inc.
AmigaOS
AmigaOS 1.0-3.9 (Motorola 68000)
AmigaOS 4 (PowerPC)
Amiga Unix, a.k.a. Amix
Amstrad
AMSDOS
Contiki
SymbOS
Android
Apple Inc.
Apple II family
Apple III
Apple DOS
Apple Lisa
Apple SOS
Apple Pascal
ProDOS
GS/OS
GNO/ME
Contiki
Apple Macintosh
Classic Mac OS
A/UX
Copland
MkLinux
Pink
Rhapsody
macOS (formerly Mac OS X and OS X)
macOS Server (formerly Mac OS X Server and OS X Server)
Apple Network Server
Apple MessagePad
Newton OS
iPhone and iPod Touch
iOS (formerly iPhone OS)
iPad
iPadOS
Apple Watch
watchOS
Apple TV
tvOS
Darwin
iPod
iPod software (unnamed embedded OS)
A/ROSE
Apollo Computer
Domain/OS
Atari
Atari DOS
Atari TOS
Atari MultiTOS
BAE Systems XTS-400
Be Inc.
BeOS
BeIA
BeOS r5.1d0
Bell Labs Non-Unix
BESYS
Plan 9 from Bell Labs
Inferno)
Burroughs Corporation
Burroughs MCP
BSD
Control Data Corporation
Chippewa Operating System
Kronos
NOS (Network Operating System)
SCOPE)
Convergent Technologies Operating System
Cosmos
Cromemco
Cromemco DOS
Cromix
Data General
AOS (for 16-bit)
DG/UX
RDOS (Real-time DOS)
Datapoint (CTOS for Z-80)
DDC-I Inc.
HeartOS
Digital Research, Inc.
CP/M
CP/M Plus
CP/M-68K
CP/M-8000
CP/M-86
CP/M-86 Plus
Concurrent CP/M
Concurrent CP/M-86
Concurrent CP/M 8-16
Concurrent CP/M-68K
Concurrent DOS
Concurrent PC DOS
Concurrent DOS 8-16
Concurrent DOS 286
Concurrent DOS XM
Concurrent DOS 386
Concurrent DOS 386/MGE
Concurrent DOS 68K
DR-DOS
FlexOS
FlexOS 186
FlexOS 286
FlexOS 68K
Multiuser DOS
Datapac Multiuser DOS
Datapac System Manager, a derivative of Datapac Multiuser DOS
IMS Multiuser DOS
MP/M
MP/M II
MP/M-86
MP/M 8-16
PalmDOS 1.0
Personal CP/M
Digital Equipment Corporation
Batch-11/DOS-11
OS/8
RSTS/E
RSX-11
RT-11
TOPS-10
TOPS-20
TENEX
Digital UNIX
Ultrix
VMS
WAITS
DOS
ENEA AB OSE
Fujitsu Towns OS
General Electric, Honeywell, Bull
Real-Time Multiprogramming Operating System
GCOS
Multics
Genode
GNU
Google
Android
Chromium OS
Chrome OS
Goobuntu
Fuchsia)
Green Hills Software
INTEGRITY
INTEGRITY-178B
µ-velOSity
Haiku
Harmony
Heathkit, Zenith Data Systems
HDOS
HT-11
Hewlett-Packare
HP-UX
Multi-Programming Executive
Honeywell CP-6
Huawei Harmony OS
Intel Corporation
ISIS
IBM
Pre-360
BESYS
CTSS
GM OS & GM-NAA I/O
IBSYS
SHARE Operating System
University of Michigan Executive System (UMES)
OS/360 and successors
OS/360 and successors
MVS
OS/390
Phoenix/MVS
z/OS)
DOS
DOS/360 and successors on IBM S/360, S/370, and successor mainframes
BOS/360
TOS/360
DOS/VS
DOS/VSE
VSE/SP
VSE/ESA
z/VSE)
VM/CMS
CP/CMS
CP-40
CP-67
VM/370
VM/XA
VM/ESA Virtual Machine
z/VM)
TPF line
Airline Control Program ACP
Transaction Processing Facility)
Unix-like
AIX
UTS (Mainframe UNIX)
Linux on z Systems
Others on IBM S/360, S/370, and successor mainframes
TSS/360
MUSIC/SP
ORVYL and WYLBUR
IBM PC
PC DOS
OS/2
OS/2 Warp
eComStation)
Other hardware
IBM Series 1
EDX
RPS
CPS
IBM 1130 DM2
IBM 1800 MPX & TSX
IBM 8100
DPCX
DPPX)
System 3 DMS
IBM System 34, 36, 38
OS/400
illumos
IncludeOS
iOS
audioOS
iPadOS
tvOS
Linux
MINIX
MorphOS
MUSIC/SP
Nemesis
NeXTSTEP
NOS
ORVYL
OS/2
OS-9
OSv
Pick
QNX
ReactOS
RISC OS
Solaris
Tandem
NonStop
TPF
TRIPOS
Unix
Visi On
VS/9
webOS
Windows
Xerox 500 series (530 RTB, 560)
Xinu
z/OS
Miscellaneous concepts
API
Computer network
HAL
Live CD
Live USB
OS shell
CLI
GUI
NUI
TUI
VUI
ZUI
PXE
0.00
(0 votes)
Original source: https://en.wikipedia.org/wiki/Live USB. Read more