From owner-freebsd-questions@FreeBSD.ORG Sun Dec 19 14:41:24 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 17DBC106564A for ; Sun, 19 Dec 2010 14:41:24 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id CC3D58FC13 for ; Sun, 19 Dec 2010 14:41:23 +0000 (UTC) Received: from r55.edvax.de (port-92-195-37-207.dynamic.qsc.de [92.195.37.207]) by mx02.qsc.de (Postfix) with ESMTP id 262861E7A3; Sun, 19 Dec 2010 15:41:21 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id oBJEfLKc001464; Sun, 19 Dec 2010 15:41:21 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 19 Dec 2010 15:41:21 +0100 From: Polytropon To: David Demelier Message-Id: <20101219154121.99640f62.freebsd@edvax.de> In-Reply-To: <4D0E0B9E.5000505@gmail.com> References: <4D065DE0.2020509@gmail.com> <20101213232917.70fc36f6.freebsd@edvax.de> <4D0E0B9E.5000505@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2010 14:41:24 -0000 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. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...