====== Ubuntu - CD - Create ISO from CD ======
===== Using dd =====
dd if=/dev/cdrom of=~/cdrom_image.iso.
Examples:
* **DVD dev link**: dd if=/dev/dvd of=isofile.iso
* **SATA/EIDE**: dd if=/dev/hdc of=isofile.iso. View device name: "dmesg|grep DVDR" or "df"
* **SCSI**: dd if=/dev/scd0 of=isofile.iso
This will capture boot information from a bootable CD or DVD. Also good for ripping a video DVD to an ISO image for duplication.
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
----
===== Using cat =====
cat /dev/scd0 > cdrom_image.iso
**NOTE:** This will not pick up the MBR from a bootable installation CD or DVD.
----
===== Using mkisofs =====
Copy an existing CDROM into a new ISO-9660 image:
mkisofs -r -o /fully-qualified-file-name-of-iso-image.iso /dev/cdrom
**NOTE:** The CD must be mounted first.