From owner-freebsd-hackers Thu Aug 10 2:37:24 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 7176A37BA0D for ; Thu, 10 Aug 2000 02:37:20 -0700 (PDT) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id LAA30319; Thu, 10 Aug 2000 11:37:16 +0200 (CEST) (envelope-from sos) From: Soren Schmidt Message-Id: <200008100937.LAA30319@freebsd.dk> Subject: Re: audiofs mixing audio and data tracks In-Reply-To: <004701c002ad$77378960$19e55982@student.utwente.nl> from Theo van Klaveren at "Aug 10, 2000 11:29:21 am" To: t.vanklaveren@student.utwente.nl (Theo van Klaveren) Date: Thu, 10 Aug 2000 11:37:16 +0200 (CEST) Cc: K.J.Koster@kpn.com (Koster K.J.), freebsd-hackers@FreeBSD.ORG (FreeBSD Hackers) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems Theo van Klaveren wrote: > | Ahem, maybe its time I chime in here. > | Luigi and I once had an idea of having each track on a CD represented > | by a device node, ie track0 = /dev/acd0t1 track1 = /dev/acd0t2 etc etc, > | that way you could mount each track with whatever fs it supported. > | This could be used to do what you want, and now where the ata driver > | supports odd sector sizes, there is nothing hindering doing the > | mount of an audio track (given the right mount_bla util that is). > > I stand corrected. I hadn't thought the ATA driver was so close to doing > that already. Then again, I haven't extensively studied the ATA code yet. :) > | The only problem is that we have to abuse the minor# etc to > | get space for the 99 tracks a CD can hold, but that is not too bad... > > Tracks, as in audio tracks? You wouldn't want a device for each audio track, > you want one device for _all_ audio tracks and one device per data track. Or > am I misunderstanding you here? Well, the idea is that you get one device pr CD track, that way you can do what you want with them, ie to rip audio track 4 you do: dd if=/dev/acdNt4 of=track4.raw bs=2352 To mount data track5 with an ISO filesys: mount -t cd9660 /dev/acdNt5 /cdrom If you want to collect all audio tracks together you would just use the normal /dev/acd0c device, read the TOC of the CD so you know where they are, set the right blocksize, and there you go (that works now BTW). -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message