Burning CD/DVD without a GUI

You do not need a GUI to burn a CD / DVD

Problems with burning mostly happen with the frontend (k3b), not so much with the backends (growisofs, wodim or cdrdao).

What devices to use

For ATAPI devices we can find out with:

wodim:

 $ wodim -dev=ATAPI -scanbus
 		scsibus0:
 		0,0,0 0) 'AOPEN ' 'CD-RW CRW2440 ' '2.02' Removable CD-ROM
 		0,1,0 1) '_NEC ' 'DVD_RW ND-3540A ' '1.01' Removable CD-ROM
 		0,2,0 2) *
 

This means: wodim uses ATAPI:0,0,0 or ATAPI:0,1,0 as device in the following examples we use ATAPI:0,0,0 for CD-ROM and/or the second device for DVD.

The same check with cdrdao:

$ cdrdao scanbus
Cdrdao version 1.2.1 - (C)  Andreas Mueller
ATA:1,0,0 AOPEN , CD-RW CRW2440 , 2.02
ATA:1,1,0 _NEC , DVD_RW ND-3540A , 1.01

For cdrdao you can use the output from wodim as well:

ATAPI:0,0,0 zB or ATA:1,0,0

We use the output from wodim in the following examples:

With SCSI-devices:

$ wodim -scanbus
scsibus0:
0,0,0 0) 'RICOH ' 'CD-R/RW MP7060S ' '1.80' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *

In this case we use 0,0,0 for the scsi device

Here are some useful examples:

Info about a blank CD/DVD:
$ wodim -dev ATAPI:0,0,0 -atip

or

$ cdrdao disk-info --device ATAPI:0,0,0$

or, as stated above:

cdrdao disk-info --device ATA:1,0,0 )
Delete a rewritable disk:
$ wodim -v -dev ATAPI:0,0,0 blank=fast -force

or

$ cdrdao blank --device ATAPI:0,0,0 --blank-mode minimal
Clone a cd:
$ cdrdao copy --fast-toc --device ATAPI:0,0,0 --buffers 256 -v2
Clone a cd on the fly:
$ cdrdao copy --fast-toc --source-device ATAPI:0,1,0 --device ATAPI:0,0,0 \
		--on-the-fly --buffers 256 --eject -v2
Create an audio cd from wav files with 12x speed:
$ wodim -v -eject -pad -dao speed=12 dev=ATAPI:0,0,0 defpregap=0 -audio *.wav
Burn a cd from bin/cue files:
$ cdrdao write --speed 24 --device ATAPI:0,0,0 --eject filename.cue
Burn an ISO image:
$ wodim -v -eject speed=12 dev=ATAPI:0.0.0 driveropts=burnfree -overburn \-ignsize data "iso_File_name"
Create an ISO image with all files (and subdirs) of a directory.

This can be burned with the command above (burn ISO image):

$ genisoimage -o myImage.iso -r -J -l directory

If you have a DVD burner, you can also use growisofs for burning to DVD, like burning an ISO image to DVD:

$ growisofs -dvd-compat -Z /dev/dvd=image.iso
Burn multiple files to DVD:
$ growisofs -Z /dev/dvd -R -J datei1 datei2 datei3 ...
If there is space left on the DVD, you can append more files:
$ growisofs -M /dev/dvd -R -J anotherfile andanotherfile...
To finalize the session, you use:
$ growisofs -M /dev/dvd=/dev/zero
Page last revised 16/01/2007 1300 UTC