Reading sectors from a non-CDFS CD-ROM

Possibly this is a little bit off-topic, but perhaps somebody can help
me with that anyway:

I’m looking for a way to read sectors from a non CDFS CD-ROM (such as
CD-ROMs from other operating systems).

Is there any way to do this from a user mode application (perhaps by
using DeviceIoControl, …)?

Thank youu very much in advance.

Best Regards,
Carsten


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

well if the device drivers for non-CDFS file system provide file I/O
functions for user-mode applications to access the CD-ROM then why dont you
use them? the usage of those functions might not be the same as CDFS but in
that case you can consult the documentation provided with those device
drivers.

-----Original Message-----
From: carsten schulz [mailto:xxxxx@cityweb.de]
Sent: Monday, July 02, 2001 3:30 AM
To: File Systems Developers
Subject: [ntfsd] Reading sectors from a non-CDFS CD-ROM

Possibly this is a little bit off-topic, but perhaps somebody can help
me with that anyway:

I’m looking for a way to read sectors from a non CDFS CD-ROM (such as
CD-ROMs from other operating systems).

Is there any way to do this from a user mode application (perhaps by
using DeviceIoControl, …)?

Thank youu very much in advance.

Best Regards,
Carsten


You are currently subscribed to ntfsd as: xxxxx@Attachmate.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

When reading sectors it does not matter whether it is CDFS or other. BUT you
should understand what is the track mode: mode1, mode2formless, mode2form1,
mode2form2, CDDA, etc.
Under Windows NT you can read mode1 and mode2form1 sectors with the ReadFile
WinAPI routine. You can also read mode2form2 and CDDA with DeviceIoControl
(IOCTL_CDROM_RAW_READ). The most powerful reading can be done with SCSI
commands (IOCTL_SCSI_PASS_THROUGH_DIRECT).

Regards,
Max

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of carsten schulz
Sent: Monday, July 02, 2001 2:30 PM
To: File Systems Developers
Subject: [ntfsd] Reading sectors from a non-CDFS CD-ROM

Possibly this is a little bit off-topic, but perhaps somebody can help
me with that anyway:

I’m looking for a way to read sectors from a non CDFS CD-ROM (such as
CD-ROMs from other operating systems).

Is there any way to do this from a user mode application (perhaps by
using DeviceIoControl, …)?

Thank youu very much in advance.

Best Regards,
Carsten


You are currently subscribed to ntfsd as: xxxxx@acronis.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

> I’m looking for a way to read sectors from a non CDFS CD-ROM (such as

CD-ROMs from other operating systems).

Is there any way to do this from a user mode application (perhaps by
using DeviceIoControl, …)?

Open \.\E:, where E is a drive letter for you CD, and go.
It was amazing, but I have some GNU utils built for native Win32 - and “od”
utility is able of dumping the raw CD sectors in hex form - if \.\E: is
specified.

This is to read cooked 2048 byte sectors. To read the raw sectors, you will
need an IOCTL.

Max


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,

Use SCSI pass thru. Change the mode from cooked to raw (see SCSI-2 spec
“MODE SELECT” command) and use SCSI READ commands to access the medium.

Regards,
Anton Kolomyeytsev

CoolDev.Com - Toolkits for Network & Storage Software Developers
“KoolSockets” & “KoolStorage” - TDI Client, Kernel Sockets, SCSI
port/miniport
http://www.CoolDev.Com xxxxx@CoolDev.Com
xxxxx@CoolDev.com

On 07/02/01, ““carsten schulz” ” wrote:
> Possibly this is a little bit off-topic, but perhaps somebody can help
> me with that anyway:
>
> I’m looking for a way to read sectors from a non CDFS CD-ROM (such as
> CD-ROMs from other operating systems).
>
> Is there any way to do this from a user mode application (perhaps by
> using DeviceIoControl, …)?
>
> Thank youu very much in advance.
>
> Best Regards,
> Carsten
>
>
> —
> You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

IOCTL_CDROM_READ_RAW is the IOCTL (IIRC).

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Saturday, July 07, 2001 10:43 AM
To: File Systems Developers
Subject: [ntfsd] Re: Reading sectors from a non-CDFS CD-ROM

Hi,

Use SCSI pass thru. Change the mode from cooked to raw (see
SCSI-2 spec
“MODE SELECT” command) and use SCSI READ commands to access
the medium.

Regards,
Anton Kolomyeytsev

CoolDev.Com - Toolkits for Network & Storage Software
Developers “KoolSockets” & “KoolStorage” - TDI Client, Kernel
Sockets, SCSI
port/miniport
http://www.CoolDev.Com xxxxx@CoolDev.Com
xxxxx@CoolDev.com

On 07/02/01, ““carsten schulz” ” wrote:
> > Possibly this is a little bit off-topic, but perhaps
> somebody can help
> > me with that anyway:
> >
> > I’m looking for a way to read sectors from a non CDFS
> CD-ROM (such as
> > CD-ROMs from other operating systems).
> >
> > Is there any way to do this from a user mode application
> (perhaps by
> > using DeviceIoControl, …)?
> >
> > Thank youu very much in advance.
> >
> > Best Regards,
> > Carsten
> >
> >
> > —
> > You are currently subscribed to ntfsd as:
> xxxxx@storagecraft.com To
> > unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@storagecraft.com To unsubscribe send a blank email to
> leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Jamey,

Are you absolutely sure all CD-ROM drives will support this IOCTL? Get some
ASPI layer filter (I have own ASPI layer so it’s easier for me to trace the
stuff) and check how AudioGrabber for example works. Reverse-engeneer CDBs
sent to CD-ROM drive and you’ll have all the picture in details. Just to
entertain yourself - try to read the CD-ROM with the
IOCTL_CDROM_READ_RAW…

Regards,
Anton Kolomyeytsev

CoolDev.Com - Toolkits for Network & Storage Software Developers
“KoolSockets” & “KoolStorage” - TDI Client, Kernel Sockets, SCSI
port/miniport
http://www.CoolDev.Com xxxxx@CoolDev.Com
xxxxx@CoolDev.Com

On 07/07/01, ““Jamey Kirby” ” wrote:
> IOCTL_CDROM_READ_RAW is the IOCTL (IIRC).
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of
> > xxxxx@hotmail.com
> > Sent: Saturday, July 07, 2001 10:43 AM
> > To: File Systems Developers
> > Subject: [ntfsd] Re: Reading sectors from a non-CDFS CD-ROM
> >
> >
> > Hi,
> >
> > Use SCSI pass thru. Change the mode from cooked to raw (see
> > SCSI-2 spec
> > “MODE SELECT” command) and use SCSI READ commands to access
> > the medium.
> >
> > Regards,
> > Anton Kolomyeytsev
> >
> > CoolDev.Com - Toolkits for Network & Storage Software
> > Developers “KoolSockets” & “KoolStorage” - TDI Client, Kernel
> > Sockets, SCSI
> > port/miniport
> > http://www.CoolDev.Com xxxxx@CoolDev.Com
> > xxxxx@CoolDev.com
> >
> > On 07/02/01, ““carsten schulz” ” wrote:
> > > Possibly this is a little bit off-topic, but perhaps
> > somebody can help
> > > me with that anyway:
> > >
> > > I’m looking for a way to read sectors from a non CDFS
> > CD-ROM (such as
> > > CD-ROMs from other operating systems).
> > >
> > > Is there any way to do this from a user mode application
> > (perhaps by
> > > using DeviceIoControl, …)?
> > >
> > > Thank youu very much in advance.
> > >
> > > Best Regards,
> > > Carsten
> > >
> > >
> > > —
> > > You are currently subscribed to ntfsd as:
> > xxxxx@storagecraft.com To
> > > unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> > —
> > You are currently subscribed to ntfsd as:
> > xxxxx@storagecraft.com To unsubscribe send a blank email to
> > leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
>
> —
> You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Absolutely, all CD-ROM drives support this IOCTL, 'cause in fact this IOCTL
is translated to the SCSI command by cdrom.sys (see the DDK cdrom sample for
details). cdrom.sys supports this IOCTL therefore all CD-ROM drives support
this automatically.

This IOCTL the system uses for playing video CDs (mode2form2 tracks) for
instance.

Regards,
Max

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@hotmail.com
Sent: Saturday, July 07, 2001 12:25 PM
To: File Systems Developers
Subject: [ntfsd] Re: Reading sectors from a non-CDFS CD-ROM

Hi Jamey,

Are you absolutely sure all CD-ROM drives will support this IOCTL? Get some
ASPI layer filter (I have own ASPI layer so it’s easier for me to trace the
stuff) and check how AudioGrabber for example works. Reverse-engeneer CDBs
sent to CD-ROM drive and you’ll have all the picture in details. Just to
entertain yourself - try to read the CD-ROM with the
IOCTL_CDROM_READ_RAW…

Regards,
Anton Kolomyeytsev

CoolDev.Com - Toolkits for Network & Storage Software Developers
“KoolSockets” & “KoolStorage” - TDI Client, Kernel Sockets, SCSI
port/miniport
http://www.CoolDev.Com xxxxx@CoolDev.Com
xxxxx@CoolDev.Com

On 07/07/01, ““Jamey Kirby” ” wrote:
> IOCTL_CDROM_READ_RAW is the IOCTL (IIRC).
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of
> > xxxxx@hotmail.com
> > Sent: Saturday, July 07, 2001 10:43 AM
> > To: File Systems Developers
> > Subject: [ntfsd] Re: Reading sectors from a non-CDFS CD-ROM
> >
> >
> > Hi,
> >
> > Use SCSI pass thru. Change the mode from cooked to raw (see
> > SCSI-2 spec
> > “MODE SELECT” command) and use SCSI READ commands to access
> > the medium.
> >
> > Regards,
> > Anton Kolomyeytsev
> >
> > CoolDev.Com - Toolkits for Network & Storage Software
> > Developers “KoolSockets” & “KoolStorage” - TDI Client, Kernel
> > Sockets, SCSI
> > port/miniport
> > http://www.CoolDev.Com xxxxx@CoolDev.Com
> > xxxxx@CoolDev.com
> >
> > On 07/02/01, ““carsten schulz” ” wrote:
> > > Possibly this is a little bit off-topic, but perhaps
> > somebody can help
> > > me with that anyway:
> > >
> > > I’m looking for a way to read sectors from a non CDFS
> > CD-ROM (such as
> > > CD-ROMs from other operating systems).
> > >
> > > Is there any way to do this from a user mode application
> > (perhaps by
> > > using DeviceIoControl, …)?
> > >
> > > Thank youu very much in advance.
> > >
> > > Best Regards,
> > > Carsten
> > >
> > >
> > > —
> > > You are currently subscribed to ntfsd as:
> > xxxxx@storagecraft.com To
> > > unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> > —
> > You are currently subscribed to ntfsd as:
> > xxxxx@storagecraft.com To unsubscribe send a blank email to
> > leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@acronis.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@acronis.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

So it looks like this is virtually the same. Except the fact the cdrom.sys
trys to do mode select on the devices he knows about. I mean device vendor.
SCSI pass thru mode is more universal but requires more hand coding. Just
as usual…

On 07/09/01, ““Max Lyadvinsky” ” wrote:
> Absolutely, all CD-ROM drives support this IOCTL, 'cause in fact this IOCTL
> is translated to the SCSI command by cdrom.sys (see the DDK cdrom sample for
> details). cdrom.sys supports this IOCTL therefore all CD-ROM drives support
> this automatically.
>
> This IOCTL the system uses for playing video CDs (mode2form2 tracks) for
> instance.
>
> Regards,
> Max
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of
> xxxxx@hotmail.com
> Sent: Saturday, July 07, 2001 12:25 PM
> To: File Systems Developers
> Subject: [ntfsd] Re: Reading sectors from a non-CDFS CD-ROM
>
>
> Hi Jamey,
>
> Are you absolutely sure all CD-ROM drives will support this IOCTL? Get some
> ASPI layer filter (I have own ASPI layer so it’s easier for me to trace the
> stuff) and check how AudioGrabber for example works. Reverse-engeneer CDBs
> sent to CD-ROM drive and you’ll have all the picture in details. Just to
> entertain yourself - try to read the CD-ROM with the
> IOCTL_CDROM_READ_RAW…
>
> Regards,
> Anton Kolomyeytsev
>
> CoolDev.Com - Toolkits for Network & Storage Software Developers
> “KoolSockets” & “KoolStorage” - TDI Client, Kernel Sockets, SCSI
> port/miniport
> http://www.CoolDev.Com xxxxx@CoolDev.Com
> xxxxx@CoolDev.Com
>
> On 07/07/01, ““Jamey Kirby” ” wrote:
> > IOCTL_CDROM_READ_RAW is the IOCTL (IIRC).
> >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of
> > > xxxxx@hotmail.com
> > > Sent: Saturday, July 07, 2001 10:43 AM
> > > To: File Systems Developers
> > > Subject: [ntfsd] Re: Reading sectors from a non-CDFS CD-ROM
> > >
> > >
> > > Hi,
> > >
> > > Use SCSI pass thru. Change the mode from cooked to raw (see
> > > SCSI-2 spec
> > > “MODE SELECT” command) and use SCSI READ commands to access
> > > the medium.
> > >
> > > Regards,
> > > Anton Kolomyeytsev
> > >
> > > CoolDev.Com - Toolkits for Network & Storage Software
> > > Developers “KoolSockets” & “KoolStorage” - TDI Client, Kernel
> > > Sockets, SCSI
> > > port/miniport
> > > http://www.CoolDev.Com xxxxx@CoolDev.Com
> > > xxxxx@CoolDev.com
> > >
> > > On 07/02/01, ““carsten schulz” ” wrote:
> > > > Possibly this is a little bit off-topic, but perhaps
> > > somebody can help
> > > > me with that anyway:
> > > >
> > > > I’m looking for a way to read sectors from a non CDFS
> > > CD-ROM (such as
> > > > CD-ROMs from other operating systems).
> > > >
> > > > Is there any way to do this from a user mode application
> > > (perhaps by
> > > > using DeviceIoControl, …)?
> > > >
> > > > Thank youu very much in advance.
> > > >
> > > > Best Regards,
> > > > Carsten
> > > >
> > > >
> > > > —
> > > > You are currently subscribed to ntfsd as:
> > > xxxxx@storagecraft.com To
> > > > unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> > >
> > > —
> > > You are currently subscribed to ntfsd as:
> > > xxxxx@storagecraft.com To unsubscribe send a blank email to
> > > leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> > >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@acronis.com
> > To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntfsd as: xxxxx@acronis.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com