Can't access a music CD (or any other media now)

Conrad J. Sabatier conrads at
Sun Nov 13 10:45:08 UTC 2011

On Sun, 23 Oct 2011 19:25:15 -0500
"Conrad J. Sabatier" <conrads at> wrote:

> On Sun, 23 Oct 2011 15:38:29 -0500
> "Conrad J. Sabatier" <conrads at> wrote:
> > 
> > No, it seems that there's a severe level of "brokenness" that has
> > been introduced into the source tree with regards to CD devices.
> > I've been exploring this issue on my own system the last couple of
> > days, and am no closer to arriving at a solution than when I first
> > started.
> > 
> > None of the CD-related apps I have installed are working.  cdcontrol
> > will read an audio CD OK, it seems, but playback is useless, since,
> > like most newer machines, I have no direct connection between the CD
> > drive and the audio device.
> > 
> > Apps such as kscd, xmcd, etc. report no disc or no device found.
> > grip (using cdparanoia) will detect an audio disc and even fetch the
> > correct cddb info, but ripping fails completely.  xmms reports "no
> > appropriate ioctl for device".
> > 
> > This is progress?
> OK, I've made a little headway here.  At least, I've managed to get
> cdrtools to work once again, after rebuilding/installing the port and
> setting the default device to the SCSI address (1,0,0) of cd0 instead
> of the device name.  Grip is now working with cdda2wav.
> Hallelujah!  :-)
> Still can't seem to get plain old audio CD playback working with
> anything, though.  :-(

Ah-ha!  After plowing through a ton of ports and docs tonight, I
finally had a "Eureka!" moment.

It seems that it's quite possible to fashion a "poor man's" CD player
app (script) out of the following cdda2wav command options (got this
example from the man page):

cdda2wav -q -e -t4 -d0 -N

In this case, "-t4" means to play track 4.  Using "-B" instead, would
play the whole disc.

The command simply sends the data to the soundcard (/dev/dsp) as it's
being ripped.  In combination with a few other cdda2wav options to
obtain the CDDB info for the disc, one could fairly easily whip up a
little CD player script.

I'm a man on a mission now!  :-)  I *will* be "rolling up my sleeves"
and hacking together some shell code in the days to come.  May even
wind up submitting the finished product as a new port for the benefit
of other folks out there still struggling to play their CDs since the
CD infrastructure changed not too long ago.

Light!  I see light at the end of the tunnel!  :-)

Conrad J. Sabatier
conrads at

More information about the freebsd-questions mailing list