From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 07:53:05 2008 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 D444C1065680 for ; Thu, 23 Oct 2008 07:53:05 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6849C8FC23 for ; Thu, 23 Oct 2008 07:53:05 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-41-11.dynamic.qsc.de [92.195.41.11]) by mx01.qsc.de (Postfix) with ESMTP id DBF7A5172F; Thu, 23 Oct 2008 09:52:59 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id m9N7qwUC009823; Thu, 23 Oct 2008 09:52:58 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 23 Oct 2008 09:52:57 +0200 From: Polytropon To: "John L. Templer" Message-Id: <20081023095257.f05a1d95.freebsd@edvax.de> In-Reply-To: <49001B2D.4090706@comcast.net> References: <991123400810220734i3c981038ocae053bc24d44336@mail.gmail.com> <20081022171708.43023af8.freebsd@edvax.de> <49001B2D.4090706@comcast.net> 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: Extract Songs from DVD 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: Thu, 23 Oct 2008 07:53:05 -0000 On Thu, 23 Oct 2008 02:35:25 -0400, "John L. Templer" wrote: > Polytropon wrote: > > % dd if=/dev/acd0t01 of=track01.cdr bs=2352 > > Very cool! I have a few questions though. I notice this doesn't work > for my Plextor CD writer. What, dd doesn't work from Plextor writer? I had (or, still have) a Plextor CD writer which is SCSI, so I just have to change the command in order to read from the correct device, which is /dev/cd0 for the first SCSI CD drive: % dd if=/dev/cd0t01 of=track01.cdr bs=2352 Of course, you would have to change other commands in order to get this correct, for example: % cdcontrol -f /dev/cd0 info > I assume this is because CD and DVD drives > have different drivers? Maybe, but I think these basic things rely on the same commands internally. > Also, does this use libparanoia or something > similar to extract "recalcitrant" tracks? No, dd reads block-wise. There's dd_rescue which is able to read from defectively manufactured media (we call them "Un-CDs" or "Un-DVDs" in Germany). Another option, by the way, is to use cdrdao. It has the read command in combination with a paranoia level switch which can be adjusted in order to read mentioned media. As far as I remember, you need to have the atapicam facility in your kernel (custom compile kernel or module) in order to access ATAPI devices just like SCSI devices. % camcontrol devlist will then show you which device equals /dev/cd0, e. g. 0,0,0 (1st SCSI controller, 1st device, 1st LUN). If I did misunderstand the question, just post another one. :-) (English is not my native language.) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...