Wednesday, May 14, 2008

Clone a CD in Linux with wodim

Here's the content of my ~/bin/copycd:


function getkey()
{
read yourentry
}
DEV=/dev/scd0
TMP_FILE=/tmp/cd_data.raw
echo Please enter the CD/DVD to copy from ....
getkey

readom dev=${DEV} -nocorr f=${TMP_FILE}
echo Please enter a blank CD/DVD and press enter when ready ....
getkey

#readom dev=${DEV} -w -nocorr f=${TMP_FILE}
wodim dev=${DEV} -setdropts driveropts=singlesession
wodim dev=${DEV} -dao -v ${TMP_FILE}


wodim -eject

No comments:

Post a Comment