Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Live USB

From Wikipedia, the free encyclopedia
USB drive with a full bootable operating system
Puppy Linux, an example of an operating system for live USBs
Ubuntu 8.04 runningFirefox,OpenOffice.org andNautilus
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Live USB" – news ·newspapers ·books ·scholar ·JSTOR
(February 2025) (Learn how and when to remove this message)

Alive USB is a portableUSB-attached externaldata storage device containing a fulloperating system that can bebooted from. The term is reminiscent ofUSB flash drives but may encompass an externalhard disk drive orsolid-state drive, though they may be referred to as "live HDD" and "live SSD" respectively. They are the evolutionary next step afterlive CDs, but with the added benefit of writable storage, allowing customizations to the booted operating system. Live USBs can be used inembedded systems forsystem administration,data recovery, or test driving, and can persistently save settings andinstall software packages on the USB device.

Many operating systems includingMac OS 9,macOS,Windows XP Embedded and a large portion ofLinux andBSD distributions can run from a USB flash drive, andWindows 8 Enterprise has a feature titledWindows To Go for a similar purpose.

Background

[edit]

To repair a computer with booting issues, technicians often use lightweight operating systems onbootable media and acommand-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 theMacintosh computers introducing the functionality in 1999 beginning with thePower Mac G4 with AGP graphics and the slot-loadingiMac G3 models.[1] Intel-based Macs carried this functionality over with bootingmacOS from USB.[2] Specialized USB-based booting was proposed by IBM in 2004 withReincarnating PCs with PortableSoulPads andBoot Linux from a FireWire device.[3][4]

Benefits and limitations

[edit]
AUSB flash drive

Live USBs share many of the benefits and limitations of live CDs, and also incorporate their own.

Benefits

[edit]
  • In contrast to live CDs, the data contained on thebooting 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. asafe), reducing the opportunities for others to access their data. On the other hand, a USB device is easily lost or stolen, so dataencryption andbackup is even more important than with a typical desktop system.
  • The absence of moving parts in USB flash devices allows truerandom access, thereby avoiding therotational latency andseek time(see alsomechanical latency) of hard drives oroptical 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 forUSB 2.0 or newer can be very slow.

Limitations

[edit]
  • Live USB OSes likeUbuntu Linux apply allfilesystem writes to acasper 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 aBIOS 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 orfloppy disk.[5][6][7]
  • SomeIntel-based Macintosh computers have limitations when booting from USB devices – while theExtensible 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 inRAM until the user logs off.[9] Awrite-locked SD card (known as a Live SD, thesolid-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 aWORM 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;seepersistence (computer science).

Setup

[edit]

Various applications exist to create live USBs; examples includeUniversal USB Installer,Rufus,Fedora Live USB Creator, andUNetbootin. There are also software applications available that can be used to create aMultiboot live USB; some examples includeYUMI Multiboot Bootable USB Creator[10] andVentoy. A fewLinux 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 apersistentfile 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:

  • AUSB 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
  • AnMBR must be written to the primary partition of the USB flash drive
  • The partition must be formatted (most often inFAT32 format, but otherfile systems can be used too)
  • A bootloader must be installed to the partition (most often usingsyslinux 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 aRAM 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 manylive USB tools are simple to use.

Full installation

[edit]

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, somelive 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

[edit]

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 usingDiskpart[11] orWinToUSB.[12]

See also

[edit]

References

[edit]
  1. ^"USB Info and Benefits of Dual-Channel USB".Apple (published February 20, 2012). September 16, 2003.Archived from the original on May 12, 2013. RetrievedSeptember 25, 2016.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.
  2. ^"Starting from an external USB storage device (Intel-based Macs)".Apple. March 22, 2016.Archived from the original on May 22, 2016. RetrievedSeptember 25, 2016.
  3. ^Singer, Michael (August 15, 2005)."IBM brains capture a PC's soul".CNET. CBS Interactive.Archived from the original on September 27, 2016. RetrievedSeptember 25, 2016.
  4. ^Honeyford, Martyn (July 15, 2004)."Boot Linux from a FireWire device".IBM DeveloperWorks.IBM. Archived fromthe original on January 17, 2007. RetrievedMay 15, 2016.
  5. ^Trevor (May 6, 2010)."Boot from a USB Drive Even If Your BIOS Won't Let You".How-To Geek.Archived from the original on September 23, 2016. RetrievedSeptember 25, 2016.
  6. ^"Plop Boot Manager". February 7, 2012.Archived from the original on February 8, 2012. RetrievedSeptember 25, 2016.
  7. ^"Universal USB Installer - Bootable USB Software - UUI".PenDrive Linux. 2010-02-10. RetrievedFebruary 17, 2024.
  8. ^knome (December 14, 2013)."MactelSupportTeam/EFI-Boot-Mactel".Ubuntu Community Help Wiki. Canonical Ltd.Archived from the original on March 4, 2016. RetrievedSeptember 25, 2016.
  9. ^"XFCE minimum install HD".Linux Mint Forums.Archived from the original on September 27, 2016. RetrievedSeptember 25, 2016.Live cd only write to the swap partition if your pc has one.
    If it doesn't it'll only use your RAM.
  10. ^"YUMI - Multiboot USB Creator | Easily Boot from USB Windows".Pendrive Linux. 13 March 2011.Archived from the original on 2017-10-23. Retrieved2024-02-17.
  11. ^nnamuhcs."Create a Bootable USB Flash Drive".docs.microsoft.com.Archived from the original on 2018-09-16. Retrieved2021-09-15.
  12. ^Gordon, Whitson (21 April 2014)."How to Run a Portable Version of Windows from a USB Drive".Lifehacker. Gawker Media.Archived from the original on September 25, 2016. RetrievedSeptember 25, 2016.

External links

[edit]
Wikimedia Commons has media related toLive USB.
Wikibooks has a book on the topic of:Live distro and Full Linux Install
Linux kernel
Controversies
Distributions
Organizations
Adoption
Media
Professional related certifications
General
Variants
Kernel
Architectures
Components
Process management
Concepts
Scheduling
algorithms
Memory management,
resource protection
Storage access,
file systems
Supporting concepts
Retrieved from "https://en.wikipedia.org/w/index.php?title=Live_USB&oldid=1276687066"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp