SLAC CPE Software Engineering Group
Stanford Linear Accelerator Center
System Admin

Create Linux CDRom


SLAC Detailed
SLAC Computing
Software Home
Software Detailed


This web page describes how to create/burn a cdrom for a particular OS.


- Create an Installation Disk

Find a Linux desktop that is taylored, has a CD-RW driver and has cdrecord installed.

esdslx08 is one example.

Login esdslx08
1) To make a bootable CDROM for installing RHEL4

sudo cdrecord -scanbus
2,0,0 200) 'SONY ' 'CD-RW CRX217E ' '1DS2' Removable CD-ROM

Above shows that CD-RW is in 2,0,0

for 64-bit:
cd /afs/slac/package/RedHat/RHEL4/x86_64/images
cdrecord -v -speed=2 dev=ATA:2,0,0 -eject -data boot.iso
for 32-bit:
cd /afs/slac/package/RedHat/RHEL4/i386/images
cdrecord -v -speed=2 dev=ATA:2,0,0 -eject -data boot.iso


cdrecord -v -speed=2 dev=2,0,0 -eject -data boot.iso

2) To make a rescue disk

for 64-bit:
cd /afs/slac/package/RedHat/RHEL4/4u3/ISO
cdrecord -v -speed=2 dev=ATA:2,0,0 -eject -data RHEL4-U3-x86_64-WS-disc1.iso
for 32-bit:
cd /afs/slac/package/RedHat/RHEL4/4u3/ISO

cdrecord -v -speed=2 dev=ATA:2,0,0 -eject -data RHEL4-U3-i386-WS-disc1.iso



-Create ISO image from CD

Use the dd command:

dd if=/dev/dvd of=dvd.iso # for dvd
dd if=/dev/cdrom of=cd.iso # for cdrom
dd if=/dev/scd0 of=cd.iso # if cdrom is scsi

*To make an ISO from files on your hard drive, create a directory which holds the files you want. Then use the mkisofs command.

mkisofs -o /tmp/cd.iso /tmp/directory/

This results in a file called cd.iso in folder /tmp which contains all the files and directories in /tmp/directory/.

Author: Ken Brobeck   13-Nov-2009

Modified: 20-Oct-2010