INTRODUCTION
==========
{EDIT: for burning an iso image on DVD see post #4 this thread}
this is a short description on how to burn an iso image on CD using cdrecord. i have found two good resources on the web but neither worked for me as they suggested. so i had to alter them a bit and this is what i did. let's assume you have an iso image located somewhere on your hd. i'll use the variable $MYISO to denote this file. here is a generic command template:
Code:
# cdrecord -v -eject speed=48 dev=0,0,0 $MYISO
-v turns on verbose mode
-eject ejects cd after burning
speed= gives the speed with wich to burn
dev= gives the device to use (i'm not sure if you can use /dev/xxx as notation. i think this should be no problem. however, if you have /dev/hdx won't work. see below)
now, most likely this will fail

. if you have an IDE/ATAPI cd-drive then you will get an error message saying something like "couldn't open scsi driver", even if you did this as root. it will suggest to
Code:
# cdrecord -scanbus
which will also return an error if scsi emulation is not enabled for the cd drive with which you are trying to burn. so first we have to...
ENABLE SCSI EMULATION
================
{EDIT: check your kernel version first. if you have a 2.4 kernel you can follow the steps as provided. if you have a 2.6 kernel you don't need to enable scsi emulation just use the prefix ATAPI in the cdrecord command:
Code:
cdrecord -v -eject speed=48 dev=ATAPI:0,0,0 $MYISO
}
this is quite easy. do:
Code:
$ dmesg | grep ATAPI
you'll get a list of your IDE/ATAPI devices. your cd drive should be one of those. example output (from [2]):
Code:
hdc: PHILIPS CDRW1610A, ATAPI CDROM drive
hdc: ATAPI 40X CD-ROM CD-R/RW drive, 8192kB Cache
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
N.B.: you need to have scsi emulation compiled into your kernel or as module. if you don't you need to compile one

. but this is beyond the scope of this howto.
[1] claims that you need to configure /etc/modules.conf and /etc/lilo.conf to make scsi emulation available. yet, when i altered /etc/modules.conf i got a bunch of error messages and in the end not even my mouse worked. so i left it out and followed mainly [2]. if you have grub instead of lilo you still might want to take a look in [1]. what you basically need to do is to claim the cd drive for the scsi emulation. put the line:
Code:
append="hdx=ide-scsi"
at the end of your lilo.conf. where hdx denotes you cd drive. that's why we did "dmesg | grep ATAPI". when i tried this step according to [1], lilo complained about two append lines (?!). if you are trying to claim two drives for the scsi emulation, you should try it like this:
Code:
append="hdx=ide-scsi hdy=ide-scsi"
after you did this, do:
Code:
# lilo
# shutdown -r now
after rebooting do:
Code:
$ dmesg | grep scsi
you should have an output like this:
Code:
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
N.B.: after scsi emulation claimed your cd drive the associated /dev file has changed. you can't mount a cd using the old /dev/hdx. instead, the output of the above command tells you that the /dev file associated with your cd drive is sr0. so a mount command should look like this: "mount -t iso9660 /dev/sr0 /mnt".
another important thind is the dev name is displayed in "scsi notation" meaning as integer triplet of channel,id,lun. in the example 0,0,0. you should use this when specifying the dev with cdrecord. you can also do:
Code:
# cdrecord -scanbus
this should work now and give you something like this:
Code:
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'TEAC ' 'CD-W552D ' '1.00' 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) *
you see the scsi bus is 0,0,0.
the last step is to burn with the above mentioned command. be sure to know which speed your burner is capable of:
Code:
# cdrecord -v -eject speed=48 dev=0,0,0 $MYISO
and ready. EOP
good luck, vadkutya
RESOURCES
========
[1]
http://www.ibm.com/developerworks/li.../l-cdburn.html
[2]
http://newbiedoc.sourceforge.net/tut...p-scsi.html.en