#! /bin/sh PROG=`basename $0` usage() { echo Usage: $PROG iso-image-file-name exit 0 } if [ $# -ne 1 ] then usage fi if [ ! -f $1 ] then echo the iso image $1 does not exist here. usage fi echo '' echo about to burn $1 onto the cd burner: echo '' sleep 2 cdrecord -eject -v speed=16 dev=0,3,0 $1 # $ sudo cdrecord -scanbus # Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling # Linux sg driver version: 3.1.19 # Using libscg version 'schily-0.5' # scsibus0: # 0,0,0 0) * # 0,1,0 1) * # 0,2,0 2) * # 0,3,0 3) 'YAMAHA ' 'CRW2100S ' '1.0H' Removable CD-ROM # 0,4,0 4) * # 0,5,0 5) * # 0,6,0 6) * # 0,7,0 7) * # From http://cdimage.debian.org/faq.html: # -?- How do I burn a CD from Linux/UNIX? # -!- Use the cdrecord program, with a command line like this (as root): # nice --18 cdrecord -eject -v speed=2 dev=0,6,0 -data -pad binary-i386-1.iso