From owner-freebsd-questions@FreeBSD.ORG Sun Dec 19 14:48:10 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C29A21065675 for ; Sun, 19 Dec 2010 14:48:10 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 51F0D8FC17 for ; Sun, 19 Dec 2010 14:48:09 +0000 (UTC) Received: by wyf19 with SMTP id 19so2050875wyf.13 for ; Sun, 19 Dec 2010 06:48:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=QJX9Y6zvwDZtsHQgKTAzy41f86JEKN1IIxFaN1De52k=; b=wS8LVJTQm1hkYOkj9LMCVWBnqt5HXi3c3VrlDqHLpc/GGPoKbZGDvJxKoImdlPMolV dslAHz8vRqw4KJ3qeaojQnKh1K6j79F/vcXm4uy+n3pQkPMfqOsH5MoDQdsWE3zQeIHt f3pdrLdXCx/nFcLcZsQqosEuiAx2YuLCT+BJU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=E8zEfNO4xtRg+x2l9vPaAPDGIilzXz2O1cSRMPlNkiehp9PDR/gqCcU1y07QeuB+Qs XS5JwjbSXE9bk6ZNCfF6+COVA7igUD6uPGyb0OY+NHXyW+mZ/POKnkdz+IQStizd916I UutGlsO21n74OhJfMsnT5ZpFMNfzHY5f0KdSQ= Received: by 10.227.152.71 with SMTP id f7mr1947661wbw.144.1292770088788; Sun, 19 Dec 2010 06:48:08 -0800 (PST) Received: from Melon.malikania.fr (65.21.102-84.rev.gaoland.net [84.102.21.65]) by mx.google.com with ESMTPS id m10sm1912363wbc.22.2010.12.19.06.48.06 (version=SSLv3 cipher=RC4-MD5); Sun, 19 Dec 2010 06:48:07 -0800 (PST) Message-ID: <4D0E1B22.8080301@gmail.com> Date: Sun, 19 Dec 2010 15:48:02 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20101212 Thunderbird/3.1.7 MIME-Version: 1.0 To: Polytropon References: <4D065DE0.2020509@gmail.com> <20101213232917.70fc36f6.freebsd@edvax.de> <4D0E0B9E.5000505@gmail.com> <20101219154121.99640f62.freebsd@edvax.de> In-Reply-To: <20101219154121.99640f62.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Unable to extract audio cd tracks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2010 14:48:10 -0000 On 19/12/2010 15:41, Polytropon wrote: > On Sun, 19 Dec 2010 14:41:50 +0100, David Demelier wrote: >> Thanks, >> >> The handbook says we must `taste' the media, it works but it prints a >> warning >> >> markand@Melon ~ $ dd if=/dev/acd0 of=/dev/null count=1 >> dd: /dev/acd0: Invalid argument >> 0+0 records in >> 0+0 records out >> 0 bytes transferred in 0.000132 secs (0 bytes/sec) >> >> I just realized that using the block size for the same thing works : >> >> markand@Melon ~ $ dd if=/dev/acd0 of=/dev/null count=1 bs=2352 >> 1+0 records in >> 1+0 records out >> 2352 bytes transferred in 2.893379 secs (813 bytes/sec) >> >> I propose modifying the following : >> >> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html >> >> Make sure the appropriate files exist in /dev. If the entries are >> missing, force the system to retaste the media: >> >> # dd if=/dev/acd0 of=/dev/null count=1 *bs=2352 >> >> Then people who try that won't be surprised by the Invalid argument error. > > A good idea - again one step into the right direction > of providing high-quality documentation. > > In fact, I have never needed to "taste" the media in my > extraction scripts, but I now do realize WHY: Before using > dd bs=2352 to get the data, I did > > cdcontrol -f /dev/acd0 info > > which prints out the TOC of the audio CD and, I assume, > makes sure the corresponding /dev/acd0tNN track files > get created; cdcontrol is part of the base system so it > should be possible to rely on its presence, at least on > FreeBSD. > I didn't know this one! I think it's even better to use that, it prints information on every tracks. Cheers,