How to examine the contents of a CD/DVD in the drive.

Matt Graham danceswithcrows at usa.net
Sat Jul 24 15:52:06 MST 2010


> On Sat, Jul 24, 2010 at 12:07 PM, Matt Graham
<danceswithcrows at usa.net>wrote:
>> "cdrecord -toc dev=/dev/NNN" will print out the table of contents on the
>> CD/DVD that's in /dev/NNN .  If it's a blank, the TOC will be empty.  If
>> there's something on the disc, it'll have at least one track, multiple
>> tracks if there are multiple sessions or it's an audio CD.
From: Lisa Kachold <lisakachold at obnosis.com>
> mount /dev/cdrom /mnt/cdrom
> ls -al /mnt/cdrom

This will fail miserably on blanks, audio CDs, VCDs, SVCDs, and anything
that's not a relatively normal data CD.  (Audio CDs *can* be mounted if you
apply the cdfs patch to the kernel, but almost nobody does that.)  What's
more, it'll give you the same mostly-useless error message for all of those
cases.  Looking at the TOC is a better general solution since it'll tell you
something useful if you have something that's got a less-common format.

-- 
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/
There is no Darkness in Eternity/But only Light too dim for us to see




More information about the PLUG-discuss mailing list