Monday, March 2, 2009

Create an image of Audio CD

The 'dd if=/dev/cdrom of=cdrom.iso' doesn't work to create an image of Audio CD, because Audio CD's doesn't have file system. So, the command we have to use is:

$ cdrdao -read-cd --datafile audiocd.bin audiocd.toc

In the audicd.bin will be the real Audio CD. The audiocd.toc (TOC = Table Of Content), describes what data is written to the CD-R. To write the Audio CD image we'll use the command:

$ cdrdao write audiocd.toc

If you want to copy cd the CD, using one command:

$ cdrdao copy --device /dev/cdrom

The image file with name "cddata.bin" will be created in the current working directory, but the image will be removed after it has been written.

No comments: