All Topics  
Live CD

 

   Email Print
   Bookmark   Link






 

Live CD



 
 
A live CD or live DVD is a CD or DVD containing a bootable
Booting

In computing, booting is a Bootstrapping process that starts operating systems when the user turns on a computer system. A boot sequence is the initial set of operations that the computer performs when it is switched on....
 computer operating system. Live CDs are unique in that they have the ability to run a complete, modern operating system on a computer lacking mutable secondary storage
Computer storage

Computer data storage, often called storage or memory, refers to computer components, devices, and recording medium that retain digital data used for computing for some interval of time....
, such as a hard disk drive. Live USB
Live USB

A live USB is a USB flash drive or a USB external hard disk drive containing a full operating system which can be booting. Live USBs are closely related to live CDs, but typically have the ability to save settings and permanently install software packages back onto the USB device....
 flash drives are similar to live CDs, but often have the added functionality of automatically and transparently writing changes back to their bootable medium.

The term "live" derives from the fact that these CDs each contain a complete, functioning and operational operating system on the distribution medium.

While a live CD typically does not alter the operating system or files already installed on a computer's hard drive, many live CDs include mechanisms and utilities for altering the host computer's hard drive, including permanent installation.






Discussion
Ask a question about 'Live CD'
Start a new discussion about 'Live CD'
Answer questions from other users
Full Discussion Forum



Encyclopedia


A live CD or live DVD is a CD or DVD containing a bootable
Booting

In computing, booting is a Bootstrapping process that starts operating systems when the user turns on a computer system. A boot sequence is the initial set of operations that the computer performs when it is switched on....
 computer operating system. Live CDs are unique in that they have the ability to run a complete, modern operating system on a computer lacking mutable secondary storage
Computer storage

Computer data storage, often called storage or memory, refers to computer components, devices, and recording medium that retain digital data used for computing for some interval of time....
, such as a hard disk drive. Live USB
Live USB

A live USB is a USB flash drive or a USB external hard disk drive containing a full operating system which can be booting. Live USBs are closely related to live CDs, but typically have the ability to save settings and permanently install software packages back onto the USB device....
 flash drives are similar to live CDs, but often have the added functionality of automatically and transparently writing changes back to their bootable medium.

The term "live" derives from the fact that these CDs each contain a complete, functioning and operational operating system on the distribution medium.

While a live CD typically does not alter the operating system or files already installed on a computer's hard drive, many live CDs include mechanisms and utilities for altering the host computer's hard drive, including permanent installation. This is important for the system management aspect of live CDs, such as removing viruses, drive imaging, and system recovery.

The default option, however, is to allow the user to return the computer to its previous state when the live CD is ejected and the computer is reboot
ReBoot

ReBoot is a Canada Computer-generated imagery-animated series action-adventure television series that originally aired from 1994 to 2001. It was produced by Vancouver-based production company Mainframe Entertainment, and created by Gavin Blair, Ian Pearson, Phil Mitchell and John Grace, with the visuals designed by Brendan McCarthy after...
ed. It is able to run without permanent installation by placing the files that typically would be stored on a hard drive into RAM, typically in a RAM disk
RAM disk

A RAM disk is a software layer that enables applications to transparently use RAM, often a segment of main memory, as if it were a hard disk or other secondary storage....
. However, this does cut down on the RAM available to applications, reducing performance somewhat. As of 2007, certain live CDs run a graphical user interface
Graphical user interface

A graphical user interface is a type of user interface which allows people to human-computer interaction such as computers; hand-held devices such as MP3 Players, Portable Media Players or Gaming devices; household appliances and office equipment....
 in as little as 32MB RAM.

History


Compact Disc
Compact Disc

A Compact Disc is an optical disc used to store Data , originally developed for storing digital audio. The CD, available on the market since October 1982, remains the standard physical medium for sale of commercial Sound recording and reproduction to the present day....
s, originally developed for storing audio
Sound recording and reproduction

Sound recording and reproduction is the electrical or mechanics inscription and re-creation of sound waves, such as spoken voice, singing, instrumental music, or sound effects....
, were adapted for use as media for storing and distributing large amounts of computer data. This data may also include application and operating system software, sometimes packaged and archived in compressed formats. Later, it became convenient and useful to boot the computer directly from compact disc, often with a minimal working system in order to install a full system onto a hard drive.

The first Compact Disc drives on personal computers were generally much too slow for running complex operating systems. Often, the computer could not boot from optical disc
Optical disc

In computing, sound reproduction, and video, an optical disc is a flat, circular disc wherein Data is stored in the pits in its flat surface ? sequentially on the continuous, spiral track extending from the innermost track to the outermost track, covering the entire disc surface....
s. When operating systems were distributed on compact discs, either a boot floppy or the CD itself would boot specifically, and only, in order to install onto a hard drive.

Origin of Linux live CDs


Although early developers and users of distributions built on top of the Linux kernel
Linux kernel

The Linux kernel is an operating system kernel used by a family of Unix-like operating systems. The term Linux distribution is used to refer to the various operating systems that run on top of the Linux Kernel....
 were able to take advantage of cheap optical disks and rapidly declining prices of CD drives for personal computers, the Linux distribution
Linux distribution

A Linux distribution is a member of the family of Unix-like software distributions built on top of the Linux kernel. Such distributions consist of a large collection of software applications such as word processors, spreadsheets, media players and database applications....
 CDs or "distros" were generally treated as a collection of installation packages that must first be permanently installed to hard disks on the target machine.

However in the case of these distributions built on top of the Linux kernel
Linux kernel

The Linux kernel is an operating system kernel used by a family of Unix-like operating systems. The term Linux distribution is used to refer to the various operating systems that run on top of the Linux Kernel....
, the free
Free software

Free Software or software libre is software that can be used, studied, and modified without restriction, and which can be copied and redistributed in modified or unmodified form either without restriction, or with minimal restrictions only to ensure that further recipients can also do these things and to prevent consumer-facing hardware...
 operating system was meeting resistance in the consumer market because of the perceived difficulty, effort, and risk involved in installing an additional partition on the hard disk, particularly the ext2
Ext2

The ext2 or second extended filesystem is a file system for the Linux kernel . It was initially designed by R?my Card as a replacement for the extended file system ....
 filesystem.

The term "live CD" was coined because after typical PC RAM was large enough and 52x speed CD drives and CD burners were widespread among PC owners, it finally became convenient and practical to boot the kernel, run X11, a window manager and GUI applications directly from a CD without disturbing the OS (generally Windows on FAT32 or NTFS) on the hard disk.

This was a new and different situation for Linux than other OSes, because the updates/upgrades were being released so quickly, different distributions and versions were being offered online, and especially because users were burning their own CDs.

Copying Linux from the installation media was also encouraged instead of actively hindered and discouraged with such things as requiring the input of long and elaborate serial numbers and lengthy and complicated installation procedures.

The first Linux
Linux

Linux is a generic term referring to Unix-like computer operating systems based on the Linux kernel. Their development is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed by anyone under the terms of the GNU GPL license...
-based 'Live CD' was Yggdrasil Linux
Yggdrasil Linux

Yggdrasil Linux/GNU/X, or LGX , was an early Linux distribution developed by Yggdrasil Computing, Incorporated, a company founded by Adam J....
 first released in beta form 1992~1993 (ceased production in 1995), though in practice its functionality was hampered due to the low throughput of then-current CD-ROM drives. Some time later, Knoppix
Knoppix

Knoppix, or KNOPPIX , is an operating system based on Debian designed to be run directly from a Compact Disc / DVD, one of the first of its kind for any operating system....
, a Debian
Debian

Debian GNU/Linux is one of the most popular and influential computer operating systems composed of free software and open source software....
-derived Linux distribution was released in 2003, and found popularity as both a rescue disk
Data recovery

Data recovery is the process of salvaging data from damaged, failed, corrupted, or inaccessible Computer data storage#Secondary storage media when it cannot be accessed normally....
 system and as a primary distribution in its own right. Since 2003, the popularity of live CDs has increased substantially, partly due to and remastersys
Remastersys

Remastersys is a free software and open source scriptfor Debian, Ubuntu-based, or derivative operating systems that can:* Create a customized Live CD/DVD of Ubuntu and its derivatives....
 which made it very easy to build customized live systems.

Most of the popular Linux distribution
Linux distribution

A Linux distribution is a member of the family of Unix-like software distributions built on top of the Linux kernel. Such distributions consist of a large collection of software applications such as word processors, spreadsheets, media players and database applications....
s now include a live CD variant, which in some cases is also the preferred installation medium.

Uses


While some live CDs are designed to "demo" or "test drive" a particular operating system (usually Linux or another free
Free software

Free Software or software libre is software that can be used, studied, and modified without restriction, and which can be copied and redistributed in modified or unmodified form either without restriction, or with minimal restrictions only to ensure that further recipients can also do these things and to prevent consumer-facing hardware...
 or open source
Open source

Open source is an approach to design, development, and distribution offering practical accessibility to a product's source . Some consider open source as one of various possible design approaches, while others consider it a critical Strategy element of their business operations....
 operating system), there are live CDs made for many different uses.

Although some live CDs can load into memory in order to free the optical drive for other uses, loading the data off a CD-ROM is still slower than a typical hard drive boot, so this is rarely the default with large live CD images, but for smaller live CD images loading the filesystem directly into RAM can be highly practical. Loading the filesystem image into RAM can provide a significant performance boost as RAM is several orders of magnitude faster than a hard drive. Also, since RAM has no moving parts, a system running from a live CD loaded into RAM can run with improved power efficiency. Experienced users of the operating system may also use a live CD to determine whether and to what extent a particular operating system or version is compatible with a particular hardware configuration and certain peripherals. Or as a way to know beforehand which computer or peripheral will work before buying. Users may also use a live CD to troubleshoot hardware, especially when a hard drive fails. Some live CDs can save user-created files in a Windows partition, a USB drive, a network drive, or other accessible media.

A few additional uses include:
  • installing a Linux distribution
    Linux distribution

    A Linux distribution is a member of the family of Unix-like software distributions built on top of the Linux kernel. Such distributions consist of a large collection of software applications such as word processors, spreadsheets, media players and database applications....
     to a hard drive
  • testing new versions of software
  • testing hardware
  • system repair and restoration
    Restoration

    selfref|To restore an article that has been deleted, see...
  • high security/non-invasive environment for a guest
  • cracking/stealing passwords
  • network security testing
  • being the primary or backup operating system for any computer
  • quick and simple clustering of computers
  • computer forensics
    Computer forensics

    Computer forensics is a branch of forensic science pertaining to legal evidence found in computers and digital storage mediums. Computer forensics is also known as digital forensics....
  • playing video games
  • providing a secure server platform where crucial files cannot be permanently altered
  • Internet kiosks, which can be brought back to their original state by a reboot


Live CD software appliances


Packaging a software appliance
Software appliance

A software appliance is a Application software combined with just enough operating system for it to run optimally on industry standard hardware or in a Platform virtualization ....
 as an installable live CD can often be beneficial as a single image can run on real hardware in addition to most types of virtual machines.

This allows developers to avoid the complexities involved in supporting multiple incompatible virtual machine
Virtual machine

In computer science, a virtual machine is a software implementation of a machine that executes programs like a real machine.Definitions...
 images formats and focus on the lowest common denominator instead.

Typically after booting the machine from the live CD, the appliance will either run in non-persistent demo mode or install itself, at the user's request, to an available storage device.

Mounting without burning


The files on a live CD ISO image
ISO image

An ISO image is an archive file of an optical disc in a format defined by the International Organization for Standardization . This format is supported by many software vendors....
 can be accessed in Microsoft Windows
Microsoft Windows

Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
 with a disk image emulator such as Daemon Tools
DAEMON Tools

Daemon Tools is a disk image emulator and optical disc authoring software for Microsoft Windows. Daemon Tools was originally a furtherance in the development of another program, Generic SafeDisc emulator, and incorporated all of its features....
, or in Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
 variants by mounting a loop device
Loop device

In Unix-like operating systems, a loop device, vnd , or lofi is a device node that makes a computer file accessible as a device file system....
.

After mounting the live CD's filesystem, software on the live CD can be run directly (I.e., without booting) by chrooting
Chroot

A chroot on Unix operating systems is an operation that changes the apparent disk root directory for the current running process and its children....
 into the live CD's mounted filesystem.

Common traits


Some live CDs come with an installation utility launchable from a desktop icon that can optionally install the system on a hard drive or USB flash drive
USB flash drive

A USB flash drive consists of a Flash memory#NAND memories-type flash memory data storage device integrated with a USB interface. USB flash drives are typically removable and rewritable, much smaller than a floppy disk , and most USB flash drives weigh less than an ounce ....
. Most live CDs can access the information on internal and/or external hard drives, diskettes and USB flash drives.

Generally live CDs are booted from read-only
Read-only

Read-only generally refers to something that can be read, but not written to or modified.In computing, read-only can mean:* Read-only memory , a type of storage media...
 media, requiring either copying to rewriteable media (i.e. a hard drive) or complete remastering to install additional software; however, there are exceptions such as Morphix
Morphix

Morphix is a modular operating system, based on Knoppix . Morphix uses the Live CD features of Knoppix, but it is more modular. Different modules can be combined on a CD for varying purposes, making Morphix a sort of Live CD construction kit....
 and Puppy Linux
Puppy Linux

Puppy Linux is a Live CD Linux distribution that is very small and focuses on Usability. If the computer has at least 256 MB of RAM, the entire operating system and all the applications will run from Random access memory, allowing the boot medium to be removed after the operating system starts....
 which are one of the few Linux live CD distributions able to save files to the live CD itself or other multisession medium, allowing users to carry data, and more importantly, added programs and customized settings, along with them on optical disc.

Most live CDs are based on Linux, as this was the operating system that had the most to gain by offering free trials and demonstrations without regard to sales or copyright. Now others are using the term live CD for other operating systems, such as OpenSolaris
OpenSolaris

File:Opensolaris-screenshot-2008-05.pngOpenSolaris is an open source operating system based on Sun Microsystems' Solaris . It is also the name of the project initiated by Sun to build a developer and user community around it....
, BeleniX
BeleniX

BeleniX is an Software_distribution built using the OpenSolaris source base. It is primarily a Live CD but can be installed to hard disk. BeleniX was born out of the efforts of coders at the India Engineering Centre of Sun Microsystems in Bangalore, India....
 and others based on Solaris. Other "live" operating systems include Mac OS
Mac OS

Mac OS is the trademarked name for a series of graphical user interface-based operating systems developed by Apple Inc. for their Macintosh line of computer systems....
, Microsoft Windows
Microsoft Windows

Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
, ReactOS
ReactOS

ReactOS is a computer operating system intended to be Application binary interface with application software and device drivers made for Microsoft Windows NT versions 5.x and up ....
, NetBSD
NetBSD

NetBSD is a freely redistributable, open source version of the Unix-derivative Berkeley Software Distribution computer operating system. It was the second open source BSD descendant to be formally released, after 386BSD, and continues to be actively developed....
, FreeBSD
FreeBSD

FreeBSD is a Unix-like free software operating system descended from AT&T Unix via the Berkeley Software Distribution branch through the 386BSD and Berkeley Software Distribution#4.4BSD and descendants operating systems....
, OpenBSD
OpenBSD

OpenBSD is a Unix-like computer operating system descended from Berkeley Software Distribution , a Unix derivative developed at the University of California, Berkeley....
, MINIX 3
MINIX 3

MINIX 3 is a project to create a small, highly reliable and functional Unix-like operating system. The main goal of the project is for the system to be fault-tolerant by detecting and repairing its own faults on the fly, without user intervention....
, Plan 9 from Bell Labs
Plan 9 from Bell Labs

Plan 9 from Bell Labs is a distributed operating system, primarily used for research. It was developed as the research successor to Unix by the Computing Sciences Research Center at Bell Labs between the mid-1980s and 2002....
, MorphOS
MorphOS

MorphOS is a computer operating system . It is a mixed proprietary software and open source OS produced for the Pegasos PowerPC -processor-based computer, most models of PPC-accelerator-equipped Amiga computers, and a series of Freescale development boards that use the Genesi Firmware, including the EFIKA and mobileGT....
 and FreeDOS
FreeDOS

FreeDOS is an operating system for IBM PC compatible computers. FreeDOS is made up of many different, separate programs that act as "packages" to the overall FreeDOS Project....
.

The first personal computer operating system on a CD to support "live" operations might have been the AmigaOS
AmigaOS

AmigaOS is the default native operating system of the Amiga personal computer. It was developed first by Commodore International, and initially introduced in 1985 with the Amiga 1000....
, which could be booted from CD on an Amiga CDTV in 1990.. Earlier examples of live OS are of course the operating systems used from floppy, and most widely spread is DOS
DOS

DOS, short for "Disk Operating System", is a shorthand term for several closely related operating systems that dominated the IBM PC compatible market between 1981 and 1995, or until about 2000 if one includes the partially DOS-based Microsoft Windows versions Windows 95, Windows 98, and Windows Me....
.

Unlike previous operating systems on optical media, though, Linux "live CDs" were specifically designed to run without installation onto other media like a hard disk drive. The live CD concept was meant to promote Linux and showcase the abilities of the free, open source
Open source

Open source is an approach to design, development, and distribution offering practical accessibility to a product's source . Some consider open source as one of various possible design approaches, while others consider it a critical Strategy element of their business operations....
 operating system on conventional personal computers with Microsoft Windows already installed.

On a PC
Personal computer

A personal computer is any general-purpose computer whose original sales price, size, and capabilities make it useful for individuals, and which is intended to be operated directly by an end user, with no intervening computer operator....
, a bootable Compact Disc generally conforms to the El Torito
El Torito (CD-ROM standard)

The El Torito Bootable CD Specification is an extension to the ISO 9660 CD-ROM specification. It is designed to allow a computer to booting from a CD-ROM....
 specification. Many Linux based live CDs use a compressed filesystem image, often with the cloop
Cloop

The compressed loopback device or cloop is a Loadable kernel module for the Linux kernel. It adds support for transparently decompressed, read-only block devices....
 compressed loopback driver, or squashfs
SquashFS

Squashfs is a Data compression File system permissions file system for Linux . Squashfs compresses Computer file, inodes and directory , and supports block sizes up to 1024 Kilobyte for greater compression....
 compressed filesystem, generally doubling effective storage capacity, although slowing application start up.

The resulting environment can be quite rich: typical Knoppix
Knoppix

Knoppix, or KNOPPIX , is an operating system based on Debian designed to be run directly from a Compact Disc / DVD, one of the first of its kind for any operating system....
 systems include around 1,200 separate software packages. Live CDs have a reputation for supporting advanced auto-configuration
Auto-configuration

Auto-configuration is the automatic computer configuration of devices without manual intervention, without any need for software configuration programs or jumper s....
 and plug-and-play
Plug-and-play

In computing, plug and play is a term used to describe the characteristic of a computer bus, or device specification, which facilitates the discovery of a hardware component in a system, without the need for physical device configuration, or user intervention in resolving resource conflicts....
 functionality. This came out of necessity to avoid requiring the user to configure the system each time it boots and to make it easily usable by those who are new to the operating system.

Technique


A read-only file system
File system

In computing, a file system is a method for store and organize computer files and the data they contain to make it easy to find and access them....
, such as on a CD-ROM has the drawback of being unable to save any current working data. For this reason, a read-only file system is often merged with a temporary writable file system in the form of a RAM disk
RAM disk

A RAM disk is a software layer that enables applications to transparently use RAM, often a segment of main memory, as if it were a hard disk or other secondary storage....
. Often the default Linux directories "/home" (containing users' personal files and configuration file
Configuration file

In computing, configuration Computer files, or config files, are used to configure the initial settings for some computer programs. They are used for user application software, Server and operating system settings....
s) and "/var" (containing variable data
Data (computing)

In computer science, data is anything in a form suitable for use with a computer. Data is often distinguished from computer programs. A program is a set of instruction that detail a task for the computer to perform....
) are kept in ramdisk, because the system updates them frequently. Puppy linux has a savable layer so if you choose to, the next time you boot you can resume (pick right back up again) from where you left off. Each time the CD boots, it looks for the file and then uses it if it has the right name.

In modern live CDs, a read-only file system is merged with ramdisk using transparent
Transparency (computing)

Any change in a computing system, such as new feature or new component, is transparent if the system after change adheres to previous interface as much as possible while changing its internal behaviour....
 techniques such as UnionFS
UnionFS

UnionFS is a filesystem service for Linux and FreeBSD which implements a union mount for other file systems. It allows files and directories of separate file systems, known as branches, to be transparently overlaid, forming a single coherent file system....
 or AuFS
Aufs

Aufs is an alternative version of UnionFS, a filesystem service which implements a union mount for Linux file systems. It has been developed by Junjiro Okajima since early 2006 ....
. In MS-DOS systems, a DOS utility, ramdrive.sys, can be loaded at boot for this purpose.

Live CDs have to be able to detect a wide variety of hardware (including network card
Network card

A network card, network adapter, network interface controller , network interface card, or LAN adapter is a computer hardware component designed to allow computers to communicate over a computer network....
s, graphic cards etc.). This is easily achieved nowadays by udev
Udev

udev is the device manager for the Linux kernel 2.6 Kernel series. Primarily, it manages device nodes in Filesystem Hierarchy Standard....
 or hotplug, which is a common part of all distributions based on Linux kernel
Linux kernel

The Linux kernel is an operating system kernel used by a family of Unix-like operating systems. The term Linux distribution is used to refer to the various operating systems that run on top of the Linux Kernel....
 2.6.

Cheat code

During live CD
Live CD

A live CD or live DVD is a CD or DVD containing a booting computer operating system. Live CDs are unique in that they have the ability to run a complete, modern operating system on a computer lacking Computer_storage , such as a hard disk drive....
 initialization, a user typically may resort to using one or more cheat codes to change the booting behavior. These vary from distribution to distribution but can most often be accessed upon first boot screen by one of the function key
Function key

A function key is a key on a computer or computer terminal computer keyboard which can be programmed so as to cause an operating system command interpreter or application program to perform certain actions....
s.

See also


  • List of live CDs
  • Comparison of Linux distributions#Live CDs/DVDs
    Comparison of Linux distributions

    Technical variations of Linux distributions include support for different hardware devices and systems or software package configurations. Organizational differences may be motivated by historical reasons....
  • List of remastering software
    List of remastering software

    The following is a list of software to Software remastering operating systems:*Windows slipstream/remastering utilities**98lite **2000-XPLite ...
  • Software appliance
    Software appliance

    A software appliance is a Application software combined with just enough operating system for it to run optimally on industry standard hardware or in a Platform virtualization ....


Screenshots

Here are some screenshots of live CDs:

External links


  • Howto create LiveCDs and build tool resource
  • - A BSD perspective on the concept of Live CDs
  • Article published on Free Software Magazine about Live CDs