I would like to read data files from CD/DVD in raw format.
First, how can I read the full TOC of a CD and how can I determine the start and end points (sectors) of the files?
Second, if I can obtain this info, how can I use it to copy the files from the CD?
Please give me some links where I can find information regarding this, or some hints, eg, what are the keywords I should use for google search.
Thank in advance,
ps: The reason I want to do this:
Some time ago I recorded files onto a DVD-R.
When I wanted to read my files from the DVD all of them seemed to be corrupt. The directory listings are correct but none of the pdfs can be opened and rar/zip-s can be uncompressed.
Then I found that mp3 files can be played, but the beginninig of a given song played comes from the end of another song. So it looks like that the DVD's directory listing is OK, but somehow the starting points of the files on the DVD are shifted and this makes the files corrupt (or vica versa).
If I could find the offset maybe I could recover my files.