I havent found one link that points to what i believe is a correct answer.. most just say DD the cd/dvd.. but there is 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, ive found the following to work great for me.. :
- get the info of the cd/dvd you're copying. I havent tried this with a 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
[root@sisyphus ~]#
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
[root@sisyphus ~]#
- Test the image against the actual DVD..
[root@sisyphus ~]# md5sum /mnt/incoming/test.iso
d3a2cdd58b8c9ade05786526a4a8eae2 /mnt/incoming/test.iso
[root@sisyphus ~]# md5sum /dev/sr1
d3a2cdd58b8c9ade05786526a4a8eae2 /dev/sr1
[root@sisyphus ~]#
Hope this helps someone looking for a complete answer.