Jephe Wu(linuxtechres.blogspot.com)
It's easy to clone a standard CD under Linux command line, the following are the steps:
1. find out the volume size (assuming your cdrom is /dev/hdc)
# isoinfo -d -i /dev/hdc
record down volume size (e.g. 53488)
2. generate md5sum from CD
# dd if=/dev/hdc bs=2048 count=53488 | md5sum
3. generating iso file from the existing CD
# dd if=/dev/hdc of=/linuxtechres.iso bs=2048 count=53488 conv=notrunc
4. generate md5sum from iso file
# md5sum /linuxtechres.iso
make sure the output is the same as the step 2
5. burn the iso file
# cdrecord dev=/dev/hdc speed=10 padsize=63s -pad -dao -v -eject /linuxtechres.iso
note:
a. always use padsize=63s -pad -dao to generate a CDR which can be used anywhere.
b. do not use the maximum speed your cd writer can support, use a bit lower speed to write.
6. verify the CD
a. put in CDR, run command 'isoinfo -d -i /dev/hdc' to find out volume size value, let's say it's 53488
b. dd if=/dev/hdc bs=2048 count=53488 | md5sum
make sure the output is the same as step 2 and 4.
That's it.