From owner-freebsd-questions@FreeBSD.ORG Sun Dec 19 13:42:00 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 F25C1106564A for ; Sun, 19 Dec 2010 13:42:00 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 828458FC08 for ; Sun, 19 Dec 2010 13:42:00 +0000 (UTC) Received: by wwf26 with SMTP id 26so1984018wwf.31 for ; Sun, 19 Dec 2010 05:41:59 -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=4CEKbRsddxKVl/i10BDFYSUBTaz6blM1K4dMWxp0tRE=; b=v/8qCQF3akX6TFJLALNTXFLwMyHltcn+XB3eUa8dDbYiAXsLAEBrLalvBCDMXtHDSL 7njryjgi6Vbqh4YRGyqnXivGvEc3ZVRRQt3nCwYwBSh65hfnFa4ccs8eNTOcnmCRq4r9 LVdnSm9cBFE9QoPp3zOfkCQ1vDyAWt4hLlx8U= 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=SUNF1LGvlKjncFajN59amwiK6QBC+KjonXbM3r/AH3bj/rcTg+NhZHTHdXJ/bf98hN EDRkhn1NzAilWsVkWpRZNQyvSME+dMV+I4GWpe5VNk2cOs6P/2kvRdmt1YoUOdPoeEx8 ncNOdSJ+bP/z4kwVkwtF+D8BXKVddbQ+TdzyI= Received: by 10.227.155.75 with SMTP id r11mr1977766wbw.3.1292766119107; Sun, 19 Dec 2010 05:41:59 -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 11sm1879506wbi.6.2010.12.19.05.41.56 (version=SSLv3 cipher=RC4-MD5); Sun, 19 Dec 2010 05:41:57 -0800 (PST) Message-ID: <4D0E0B9E.5000505@gmail.com> Date: Sun, 19 Dec 2010 14:41:50 +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> In-Reply-To: <20101213232917.70fc36f6.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 13:42:01 -0000 On 13/12/2010 23:29, Polytropon wrote: > On Mon, 13 Dec 2010 18:54:40 +0100, David Demelier wrote: >> Hi, >> >> Reading this http://www.freebsd.org/doc/handbook/creating-cds.html I >> would try to extract my files from my optical drive. (I don't have >> atapicam but if I understand well it's only needed for cdda2wav) >> >> markand@Abricot ~ $ sudo dd if=/dev/acd0t01 of=track1.cdr >> dd: /dev/acd0t01: Invalid argument >> 0+0 records in >> 0+0 records out >> 0 bytes transferred in 0.026221 secs (0 bytes/sec) >> >> do I really need atapicam even if I directly read from the device? > > You need to specify the correct block size: > > dd if=/dev/acd0t01 of=track01.cdr bs=2352 > > This should give you a cdr (raw) file conforming to > the CD audio specifications. > > 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. Cheers,