The first step in burning CD's in linux is creating an ISO image file containing all the data (files & folders) that you want to write on to the CD. After you create an ISO image, you can write(or burn) it on to the CD. In linux you have got two excellent GPL tools for the same. They are mkisofs (for creating the ISO image) and cdrecord (For burning the image on to the CD).
syntax 1:
$ mkisofs -R -J -iso-level 2 -o <Output Filename > <Input File Name/directory>
{-J = Jouliet} {ISO Level 1 to 3} {-R = Rockwell}
syntax 2:
$ mkisofs -J -o target_file.iso -path-list your_visual_iso_generated_file.txt -graft-points
This syntax of mkisofs is used for creating a ISO image from a file containing a list of all the files that should be included in the CD ISO image.
Syntax 3: Creating an image of an already bootable CD
$ dd if=/dev/cdrom of=/path/to/iso/image.iso bs=8M
Syntax: First find out the value of the dev option using the command -
$ cdrecord --scanbus
Then write the image using the command -$ cdrecord -v speed=4 -data -eject dev=<the value you obtained in above step> -dao -mode1[2] /path/to/file.iso