06 October, 2009

Quick-n-Dirty CD Replication

Assuming you have a CD that isn't copy protected sometimes you want to replicate it without user interface based tools....the command line.

Real quick, but you can replicate the disk contents by generating an ISO image by issuing the command:

dd if=/dev/sr0 of=PingBootDisk.iso

This assumes the CDROM is mounted at /dev/sr0, you can establish the device by issuing the 'mount' command and examining the file systems.

Next, use cdrecord; the trick again is to establish the device. Isolate the device by issuing the following command:

cdrecord -scanbus

Then burn the disk ISO image by issuing the following:

cdrecord -v dev=1,0,0 PingBootDisk.iso