I am trying to use the existing Linux driver system to effectively dump the data of CDROMs.
As an example, if I pop in a "normal" CDROM disc of software and run the command
then the output is a bunch of raw data from the disc - which is great.
However, some other types of CDs result in IO errors after just a little data.
Some research has led me to understand that data is being read by default in "Mode 1". (Info on format/structure can be found here: https://en.wikipedia.org/wiki/CD-ROM#CD-ROM_format)
For discs with data in Mode 2, what would it take to be able to read them? Are there any driver or kernel settings to change the mode?
Note: There are other programs to accomplish this such as cdrdao, but my question is for how to do it natively.
Update 1: Some potential leads: