Herong's Tutorial Notes on CD/DVD
Dr. Herong Yang, Version 2.14

"readcd -fulltoc" - Reading TOC with "cdrtools"

This section provides a tutorial on how to read TOC (Table Of Contents) with 'readcd -fulltoc'.

The "cdrtools" package has a nice tool called "readcd" that can be used to read the TOC (Table Of Contents) from any kind of CD. See other section of this book to install "cdrtools".

If you run the "readcd" command with the "-fulltoc" option, you will get the content of TOC from the CD. Try this command with no CD in the CD drive first:

C:\>\local\cdrtools\readcd -fulltoc dev=0,0,0
readcd: Input/Output error. set cd speed: scsi sendcmd: no error
CDB:  BB 00 FF FF FF FF 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 10 00 00 BB 00 3A 00 00 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.003s timeout 40s
Read  speed:  4234 kB/s (CD  24x, DVD  3x).
Write speed:  2823 kB/s (CD  16x, DVD  2x).
readcd: Input/Output error. test unit ready: scsi sendcmd: no error
CDB:  00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 02 00 00 00 00 10 00 00 BB 00 3A 00 00 00 00 00
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.003s timeout 40s
readcd: Device not ready.

The output tells you that there is no CD in the CD drive.

Sections in This Chapter

Where Is TOC Located on a CD

"readcd -fulltoc" - Reading TOC with "cdrtools"

"readcd -fulltoc" - CD-DA (Audio CD) Sample

"readcd -fulltoc" - Data CD Sample

"readcd -fulltoc" - Multi-Session Data CD Sample

"readcd -fulltoc" - VCD (Video CD) Sample

"readcd -fulltoc" - DVD Sample

Dr. Herong Yang, updated in 2007
"readcd -fulltoc" - Reading TOC with "cdrtools"