Live CDs By: Lawrence Wellman. What is a Live CD A Live CD is a computer operating system that is executed upon boot, without installation to a hard disk.

Slides:



Advertisements
Similar presentations
Windows 7 Test Prep Ch 2 Configuring System Images Part 2.
Advertisements

Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
Introduction to Unix (CA263) File System
Linux Installation Chapter II. Linux Distributions Pre-packaged, installable Linux Anyone can compile a distribution, have to inculde GPL Available for.
11 INSTALLING WINDOWS XP Chapter 2. Chapter 2: Installing Windows XP2 INSTALLING WINDOWS XP  Prepare a computer for the installation of Microsoft Windows.
S.Ha.R.K. Workshop28/02/05 S.Ha.R.K. Installation HowTo Tullio Facchinetti University of Pavia - Italy.
1 Web Server Administration Chapter 3 Installing the Server.
MCITP: Microsoft Windows Vista Desktop Support - Enterprise Section 1: Prepare to Deploy.
Bootloader / multi-boot
Hands-On Microsoft Windows Server 2003 Chapter 2 Installing Windows Server 2003, Standard Edition.
Developed by Klaus Knopper Linux Consultant. What is Knoppix?  Unix-like operating system  Run directly from CD or DVD  Bootable from USB flash drive.
Red Hat Installation. Installing Red Hat Linux is the process of copying operating system files from a CD, DVD, or USB flash drive to hard disk(s) on.
Windows XP, Vista (?), 8.1 The lucky ones have an install disk. Bootable floppy from earlier Windows have limited usefulness.
George Vordenbaum Systems Content Developer Global Support Automation Microsoft Corporation Exploring Windows XP Boot Options and Recovery Console George.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Computer Concepts 2013 Chapter 4 Operating Systems and File Management.
1 Web Server Administration Chapter 3 Installing the Server.
Linux Booting Procedure
Go to & click on Install/Download Menu optionhttp://osddlinux.osdd.net/ Go to & click on Install/Download.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Tutorial 11 Installing, Updating, and Configuring Software
Understanding the Boot Process and Command Line
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Hands-On Virtual Computing
Boot Diskettes, Bootable USB Keys and Live CDs Used when the computer can't start for some reason, as a diagnostic, repair and recovery tool. Boot diskettes.
10/1/2015 Chapter 2 Installing Windows XP Professional.
1 Web Server Administration Chapter 3 Installing the Server.
Installing Windows 2000 BY: Joshua Wilburn, Arnol Vaquero.
Chapter 2 BAI517 Chris Redford.  Different version of Linux are called Distributions or Distros. Each one has its strengths and focus: Red Hat / Fedora.
Please Note: Information contained in this document is considered LENOVO CONFIDENTIAL For Lenovo Internal Use Only Do Not Copy or Distribute!! For Lenovo.
Gorman, Stubbs, & CEP Inc. 1 Introduction to Operating Systems Lesson 4 Microsoft Windows XP.
Chap 1 ~ Introducing LINUX LINUX is a free-stable multi-user operating system that derives from UNIX operating system Benefits: 1) Linux is released under.
Linux in a Virtual Environment Nagarajan Prabakar School of Computing and Information Sciences Florida International University.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Managing Disks and Drives Chapter 13 powered by dj.
Multiboot System under Windows XP – Ubuntu – Windows 7 Qiong LIN - 28 April 2012.
File System Interface. File Concept Access Methods Directory Structure File-System Mounting File Sharing (skip)‏ File Protection.
14 Step-by-Step Instructions for an Upgrade Installation n Prepare for the installation Verify that all devices and applications are Windows 2000 compatible.
Windows Vista Inside Out Chapter 28 - Chapter 28 - Managing Disks and Drives Last modified
OPERAING SYSTEM 1 CA-210 WINDOWS XP. CHAPTER 1 OPERATING SYSTEM FUNDAMENTALS.
CIS Lesson 5 Lesson 5 New Skills Boot time GRUB edits (review) Changing BIOS boot order on a VM (review) Mounting CD ISO and floppy Image files on.
Chapter Thirteen Booting Windows XP. Objectives Understand the Windows XP boot process Understand the Windows XP boot process Troubleshoot system restoration.
Understanding Backup and Recovery Methods Lesson 8.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
VirtualBox: How to create a Linux Virtual Machine.
Chapter 2 BAI517 Chris Redford.  Different version of Linux are called Distributions or Distros. Each one has its strengths and focus: Red Hat / Fedora.
Page 1 of 38 Lenovo Confidential Lenovo Confidential Lenovo Confidential Lenovo Confidential Lenovo Confidential Please Note: Information contained in.
Create a Unix/Linux Live CD/DVD/USB ITSC Create a Fedora USB or Live CD Go to: – Fedora Chapter 3 Making Media site Fedora Chapter 3 Making Media.
Chap 1 ~ Introducing LINUX LINUX is a free-stable multi-user operating system that derives from UNIX operating system Benefits: 1) Linux is released under.
Operated by Los Alamos National Security, LLC for NNSA U N C L A S S I F I E D Slide 1 Institutional Install of Red Hat Enterprise Linux From One CD In.
1 COP 4343 Unix System Administration Unit 1: –Linux OS structure –Distributions –Hardware inventory –Disks and partitions –Installation steps –Boot loader.
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com The GRUB bootloader Michael.
Boot Diskettes, Bootable USB Keys and Live CDs Used when the computer can't start for some reason, as a diagnostic, repair and recovery tool. Boot diskettes.
NT1110 Computer Structure and Logic Unit 8 (Module 5A) COMPUTER OPERATION AND SECURITY.
The GRUB bootloader Michael Opdenacker Thomas Petazzoni Free Electrons
Create Rescue Disk? Windows XP, (Vista) Windows 7, 8 Windows 8.1
Red hat Installation 2 Live CD.
Guide to Linux Installation and Administration, 2e
CONFIGURING HARDWARE DEVICE & START UP PROCESS
File Managements.
Lab #1 Install Linux & How to Build Live CD
Chapter Overview Operating System Basics
Different types of Linux installation
Instructor Materials Chapter 5: Windows Installation
Presentation transcript:

Live CDs By: Lawrence Wellman

What is a Live CD A Live CD is a computer operating system that is executed upon boot, without installation to a hard disk drive. The concept of a Live CD can be applied across many mediums: Floppy, CD, DVD, USB, all which can be used to boot from, without installing on your hard drive.

Reasons to use a Live CD Testing a new version or flavor of Linux Determine compatibility of a particular hardware configuration. System repair and restoration (Rescue Windows) Network security testing A fall back when a hard drive fails Password Recovery

Creating a Linux Live multiboot DVD Pointers: –You will need aprox 10 GB free –Use a virtual machine to test DVDs (makes mistakes much cheaper)

First Obtain Your Desired Live CDs *Backtrack *nUbuntu Slax Knoppix *Helix Fedora F.I.R.E *Insert Operator *Ophcrack Kanotix PCLinuxOS Damn Small Linux Puppy Linux Gentoo Kaella Morphix Sabayon Clusterix

Create the folder structure dvdroot –isolinux –A folder for each distro (BT, ubuntu)

Mount the iso’s mount –o loop /home/mouse/Desktop/bt2final.iso /home/mouse/Desktop/backtrack/ Note: It is generally best to work through the whole process with one distro and then add distros as you get the previous version working. Caution: If you are doing more than 8 iso’s at one time you will need to increase your number of loopbacks.

Add a folder in dvdroot for each distro. We will then copy all the main file system images for each live distro. Note: It will make life easier if you can keep the same name as on the iso although generally not possible.

Now we need to setup our DVD In the isolinux folder we need the following files. (Which will be pulled from one of the live CDs and modified to meet our needs) We will take these files unaltered: –isolinux.bin - boot loader for no-emulation boot –isolinux.boot - required for isolinux We will edit these files –boot.msg - contains a message displayed on boot –isolinux.cfg - configuration file –vmlinuz (from each distro) - is the name of the Linux kernel executable –.gz file (from each distro) - contains info of where to find linux files

vmlinuz file from each distro Vmlinuz is a compressed bootable Linux kernel We need the vmlinuz from each distro we will rename each to have an extentions(no more than 3 characters) ex. vmlinuz.bt – for Backtrack vmlinuz.nu – for nUbuntu

.gz file from each distro If you renamed the folder in dvdroot that contains the file system image we will need to open and modify the linuxrc file. If not you can copy the initrd.gz file over and rename it to keep name different and make it easer to recognize make sure not to exceed 8 characters.

Editing the initrd.gz file Commands needed to open and modify linuxrc –gunzip initrd.gz –mkdir /testmount –mount -o loop initrd /testmount/ Now go to the /testmount folder there should be a file probably linuxrc that will declare the dir to be the name of the folder that we changed, which will need to be changed to the new name. (ex. KNOPPIX_DIR = ‘KNOPIX’ change to KNOPPIX_DIR = ‘helix’) Then recreate gz file –umount /testmount –gzip initrd

isolinux.cfg Basic Commands: # - Comment DEFAULT – Specifies what will be boot after boot timeout or if user just hist ENTER TIMEOUT {x} – sets timeout in 1/10 sec DISPLAY {filename} – Displays text contained with in file (boot.msg) LABEL {label name} – Explains boot options for {label name} (aka if the user types {label name} it will boot with options declared after declaration) –KERNEL – kernel to use when {label name} is typed –APPEND – declares additional parameters to the kernel declaration Note: Things work best if you copy the label out of the isolinux.cfg file each distro.

Example isolinux.cfg

boot.msg Contains an introduction message displayed on boot.

Now to create the iso sudo mkisofs -r -ldots -J -V “Multiboot DVD” -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot - boot -load-size 4 -boot-info-table -x lost+found -o /multiboot.iso.

A little explanation of mkisofs sudo Allows us to excute the command as root mkisofs create a hybrid ISO9660/JOLIET/HFS filesystem -r uses naming conventions for compatibility and makes all files publicly readable -ldots *Allow ISO9960 filenames to begin with a period. -J uses Joliet naming records, for Windows compatibility -V “Multiboot DVD” provides a volume ID, this is the disk name that shows up in Window’s Explorer -b isolinux/isolinux.bin Specifies the path and filename of the boot image to be used when making a bootable cd. -c isolinux/boot.cat Specifies the path and filename of the boot catalog to be used when making a bootable cd. -no-emul-boot Specifies that it is not a image of a floppy -boot-load-size 4 Specifies the number of “virtual” sectors to load in no-emulation mode. -boot-info-table Specifies that a 56- byte table with info of the CD-ROM layout will be patched in at offset 8 in the boot file -x lost+found exclude path from being written to CDROM -o /multiboot.iso names the new.iso image file. Specifies the path to the source for the image

Finished or So We Hope Now we have the iso boot it in a virtual machine to make sure all works as expected. –If not trouble shoot. Burn iso to DVD using favorite burning program.

Some Problems you may run into Some distros (Mandriva) codes the name of the cd into initrd which you will need to change with a hex editor. Others like Fedora declare the cdlabel in the isolinux.cfg Every distro and live CD is setup a little differently, so if your having trouble finding the boot files, boot the live CD in a virtual machine and watch as it boots to see what files it requires, or consult google.

References & Further Reading Wiki linux.about.com members.chello.at/bobby100/ILpart1.htm pcquest.ciol.com/content/enterprise/2005/ asp Linux.com