dd if=/dev/cdrom of=~/cdrom_image.iso.
You must have permission to access the drive directly using dd. Mount permissions are not necessarily the same as dd permissions!
When creating an ISO file, the device must not be mounted. To unmount the cdrom device, use the umount command as follows:
umount /dev/cdrom
cat /dev/scd0 > cdrom_image.iso