This page contains scripts, links to other sites and "howto" docs that the staff at Open Technologies Inc. commonly use. You are free to use this material as you wish, but we take NO responsibility for your proper or improper use of this material. See Limitation of Liability below. Description: A quick howto on Burning CD/DVD's in Solaris from the command Line ---------------------- Revision Table Created: 01/26/05 KH Revised: ---------------------- This document steps through process of making a cdrom image and burning with cdrtools. For solaris, you will need to download, compile and install cdrtools using gcc on solaris. Solaris does come with mkisofs which is required to make a cdrom image of data files. The following example shows how to compile a cdrom image myca.iso from files contained in a directory myca. # mkisofs -J -r -o myca.iso myca Using INDEX000.OLD;1 for myca/demoCA/index.txt.old (index.txt.attr.old) Total translation table size: 0 Total rockridge attributes bytes: 12145 Total directory bytes: 53248 Path table size(bytes): 342 Max brk space used 22000 645 extents written (1 MB) Once the cdrom image is compiled, we need to check that the system recognizes a CDROM writer. We will use cdrecord -scanbus to scan SCSI devices. On our Solaris 10 system, the CDROM device is the AOPEN at 0,0,0. # cdrecord -scanbus Cdrecord-Clone 2.01 (i386-pc-solaris2.10) Copyright (C) 1995-2004 Jörg Schilling Warning: Using USCSI interface. Warning: Volume management is running, medialess managed drives are invisible. Using libscg version 'schily-0.8'. scsibus0: 0,0,0 0) 'AOPEN ' 'COM5232/AAH ' '1.06' Removable CD-ROM 0,1,0 1) * 0,2,0 2) * 0,3,0 3) * 0,4,0 4) * 0,5,0 5) * 0,6,0 6) * 0,7,0 7) * scsibus1: 1,0,0 100) 'SEAGATE ' 'ST373307LW ' '0007' Disk 1,1,0 101) 'SEAGATE ' 'ST373307LW ' '0007' Disk 1,2,0 102) * 1,3,0 103) * 1,4,0 104) * 1,5,0 105) * 1,6,0 106) * 1,7,0 107) * System recognizes the CDROM, so we can proceed with the burn. Place a blank cdrom into the writer and run the cdr.sh script included below. The script takes as an argument the file name of the iso image without the .iso extension. # # cdr.sh # # burn cds # TMP=/tmp/tmp.$$ set -x CDR=cdrecord if [ -n "$1" ] then DEV=`$CDR -scanbus | awk '/CD-ROM/{print $1}'` echo $DEV if [ -n "$DEV" ] then $CDR -prcap dev=$DEV >$TMP if grep "Does support Buffer-Underrun-Free" $TMP >/dev/null 2>&1 then BF="-driveropts=burnfree" else BF="" fi $CDR -v "$BF" dev=$DEV $1.iso else echo "CD Writer not found!!!" fi fi