Put the CD in your cdrom, do not mount the cdrom.
Option 1:$ dd bs=2048 if=/dev/$cdrom of=$file.iso
Option 2:$ cat /dev/$cdrom > foo.iso
Put the CD in your cdrom, do not mount the cdrom.
Option 1:$ dd bs=2048 if=/dev/$cdrom of=$file.iso
Option 2:$ cat /dev/$cdrom > foo.iso