Creating an ISO from a cd

In this example, /dev/cdrom is your cd rom drive(!) and /mnt/myiso.iso is the ISO file that will be created from the CD.

dd if=/dev/cdrom of=/mnt/myiso.iso