I haven't found one link that points to what I believe is a correct answer. Most just say DD the cd/dvd. But there is an extra padding at the end of the media that may cause errors.
I should also point out this will work with most, but I ran into issues with Sony CSS/CPPM Protection, which I used another program to achieve the desired results.
Any, i've found the following to work great for me.. :
- get the info of the CD/DVD you're copying. I haven't tried this with an audio CD because I just rip them to flac's , but the following is a test on a DVD..
[root@sisyphus ~]# isoinfo -d -i /dev/sr1 | grep -i -E 'block size|volume size'
Logical block size is: 2048
Volume size is: 2264834
We use the Logical block size for the BS= variable and Volume size for the COUNT=
- use DD to copy the DVD to an iso:
[root@sisyphus ~]# dd if=/dev/sr1 of=/mnt/incoming/test.iso bs=2048 count=2264834
2264834+0 records in
2264834+0 records out
4638380032 bytes (4.6 GB, 4.3 GiB) copied, 373.405 s, 12.4 MB/s
- Test the image against the actual DVD..
[root@sisyphus ~]# md5sum /mnt/incoming/test.iso
[root@sisyphus ~]# md5sum /dev/sr1
Hope this helps someone looking for a complete answer.