Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jun 2002 16:08:39 -0400
From:      Brian Reichert <reichert@numachi.com>
To:        hackers@FreeBSD.ORG, reichert@numachi.com
Subject:   Re: accessing data track of multimedia CD?
Message-ID:  <20020607160839.A232@numachi.com>
In-Reply-To: <20020607073443.GA11391@pc5.abc>; from list@rachinsky.de on Fri, Jun 07, 2002 at 09:34:43AM %2B0200
References:  <20020606180401.A3240@numachi.com> <20020607073443.GA11391@pc5.abc>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 07, 2002 at 09:34:43AM +0200, Nicolas Rachinsky wrote:
> * Brian Reichert <reichert@numachi.com> [2002-06-06 18:04 -0400]:
> > I've been beating my head for hours against a wall trying to research
> > this:
> > 
> > Under FreeBSD (4.5-RELEASE), with an ATAPI device (/dev/acd0c), how
> > can I mount, or otherwise access the data in a 'data track' of a
> > 'multimedia CD'?
> > 
> > cdda2wav shows me:
> 
> Look at the output of
> cdcontrol -f /dev/<your cdrom> Info
> instead.
> 
> If there is a track with type data, you can try to mount this track
> with mount_cd9660 with parameter -s followed by the startsector of the
> data track (shown by cdcontrol).

mount_cd9660 is supposed to, out-of-hand, mount the last data track
on a CD, Worked for me as such on older, other boxes.

Well, I had tried that earlier on my box, but let me perform that
in front of an audience:

  # dmesg | grep acd0
  acd0: DVD-ROM <SAMSUNG DVD-ROM SD-608> at ata1-master using WDMA2

  # sysctl -a | grep hw.ata
  hw.ata.ata_dma: 1
  hw.ata.wc: 1
  hw.ata.tags: 0
  hw.ata.atapi_dma: 1
  hw.atamodes: dma,dma,dma,---,

  # cdcontrol -f /dev/acd0c Info | grep data
     11  54:12.68   7:08.38  243818   31988   data

  # mount_cd9660 -s 243818  /dev/acd0c /mnt
  mount_cd9660: /dev/acd0c: Invalid argument

I've tried this with both DMA and PIO on my drive, which I'll point
out is a DVD-ROM drive, not a CD-ROM drive.

With your pointers, though, I was able to correctly use 'mount'
using both of my test CDs on another box running 4.1-RELEASE with
a classic CD-ROM drive:

  acd0: CDROM <FX4010M> at ata0-slave using UDMA33

So, this issue at hand is some combination of my kernel (4.5-RELEASE)
and my hardware (DVD-ROM).  Any further suggestions?

> HTH
> Nicolas

-- 
Brian 'you Bastard' Reichert		<reichert@numachi.com>
37 Crystal Ave. #303			Daytime number: (603) 434-6842
Derry NH 03038-1713 USA			Intel architecture: the left-hand path

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020607160839.A232>