Re: ISO file format vs. SCSI CD model



I want to write a program (or driver, or module, I haven't decided) to
emulate a CD drive (RW), but using a file as the device, and I'm
thinking about what kind of file formats are used. I don't know too
much about this -- I'm still educating myself. I've read through the
MMC and SAM docs, and some other stuff.

The two options I'm thinking of are: how to emulate a CD drive if I
start with an empty file, and how to do it if I start with an ISO
image. I want to be able to read and write. Currently, I'm not
considering the possibility of burning the file back onto a CD. Though
if I keep the ISO file format, I suppose writing back to a physcial CD
would be easy.

(This idea is kind of like the loopback mount you can do in Linux, but
I don't want to look at that code :) )

Grant Edwards wrote:
The ISO file only contains the "payload".

I suspect that generating the ISO file unencodes the 8-to-14 encoding
and error-correction (that happens at the device level?) Does it also
de-interleave the frames, and remove the sync bytes?

But still, how do you resolve LBA addresses, or track numbers?

Does an ISO file contain the iso filesystem (with a table of contents
at the beginning and so forth)?

Don't the standards you've looked at specify how a 2K block of
"user" data is encoded on the disk surface?

Yes, there is some metadata that is present in the user data area of a
disc, and it's unclear to me what happens to it when an ISO is made.

Why does it matter unless you're actually designing drive electronics?

(See above - I'm wanting to write an emulator)

So then when you rip an ISO image (to, say, play a game without having
the physical CDs) the ripping software does a lot of stuff behind the
scenes? I've seen people say that you can get an iso image by using dd
-- does that mean that dd doesn't just copy bytes from the device? Or
perhaps, the device driver only returns user data to dd's request for
bytes?

And then when you burn an iso image to a CD, all that metadata is added
back in?

I have a lot of questions, I know... :-)
I know just enough to be confused. Thanks for your help.

-Corinna

.



Relevant Pages

  • Re: ISO file format vs. SCSI CD model
    ... thinking about what kind of file formats are used. ... I guess I don't understand what you're trying to emulate. ... You can't write to an ISO image. ...
    (comp.os.linux.misc)
  • Re: ISO image size -regarding
    ... I am trying to create a custom ISO image of FreeBSD 6.4. ... I did not create the new driver. ...
    (freebsd-questions)
  • ISO image size -regarding
    ... I am trying to create a custom ISO image of FreeBSD 6.4. ... I did not create the new driver. ...
    (freebsd-questions)
  • Re: Re Media Kit for fedora
    ... > fedora. ... but any of them that can burn ISO ... >> Are you telling it to burn a data dvd, a CD, an iso image, or burn the ...
    (Fedora)
  • Re: Is it possible to use an ISO 9660 filesystem on a Compact Flash card?
    ... with CD-ROM's formatted to standard ISO ... S> 9660 format. ... S> legacy device is concerned, it should not notice the difference as ... It depends how how the device's 'device driver' logic works. ...
    (comp.os.linux.misc)