From owner-freebsd-questions@FreeBSD.ORG Sun Jan 4 09:00:56 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 590CA16A4CE for ; Sun, 4 Jan 2004 09:00:56 -0800 (PST) Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AF7B43D4C for ; Sun, 4 Jan 2004 09:00:54 -0800 (PST) (envelope-from scott@tuatara.fishballoon.org) Received: from llama.fishballoon.org ([81.104.195.124]) by mta02-svc.ntlworld.comESMTP <20040104170042.IBTZ29762.mta02-svc.ntlworld.com@llama.fishballoon.org>; Sun, 4 Jan 2004 17:00:42 +0000 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.24; FreeBSD) id 1AdBba-000G0p-8p; Sun, 04 Jan 2004 16:59:58 +0000 Received: (from scott@localhost) by tuatara.fishballoon.org (8.12.10/8.12.10/Submit) id i04GxvBu002998; Sun, 4 Jan 2004 16:59:57 GMT (envelope-from scott) Date: Sun, 4 Jan 2004 16:59:57 +0000 From: Scott Mitchell To: "W. Sierke" Message-ID: <20040104165957.GB2884@fishballoon.org> References: <02f501c3d2de$c5064140$8464a8c0@ovirt.dyndns.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <02f501c3d2de$c5064140$8464a8c0@ovirt.dyndns.ws> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.9-STABLE i386 cc: freebsd-questions@FreeBSD.org Subject: Re: How to create .iso file image of cdrom (atapi)? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2004 17:00:56 -0000 On Mon, Jan 05, 2004 at 02:51:12AM +1030, W. Sierke wrote: > "Scott Mitchell" wrote: > > You want to use /dev/acd0c - the 'c' partition covers the whole disk. > > Something like: > > > > dd if=/dev/acd0c of=foo.iso bs=64k > > Ah! Thanks for that. The bs argument is crucial, I hadn't thought to try > anything further when without it I got: > > dd: /dev/acd0c: Invalid argument The block size of a data CD is 2048 bytes, so I guess you'd need to specify some multiple of 2048 for dd. Bigger reads should improve performance somewhat, hence my use of 64k. On the other hand, for audio CDs the block size is 2352, as discussed in the handbook: http://www.uk.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html > I let myself be led astray into thinking that there must be something amiss > with using that device. So if the 'c' partition is the whole disk, what's > the 'a' partition, out of curiosity? On an ISO9660 data CD, the 'a' partition appears to cover the whole disk, just like 'c'. That might change if you had, say, a UFS filesystem on there, or no filesystem at all, just raw data of some kind. A data CD won't in general have a BSD disklabel on it, so I assume disklabel is faking up an 'a' partition to cover the whole disk when I do: (504) tuatara:~ $ disklabel acd0 # /dev/acd0c: type: unknown disk: acd0 label: unknown flags: removeable bytes/sector: 2048 sectors/track: 100 tracks/cylinder: 1 sectors/cylinder: 100 cylinders: 3231 sectors/unit: 323014 rpm: 300 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 1 partitions: # size offset fstype [fsize bsize bps/cpg] a: 323014 0 4.2BSD 0 0 0 # (Cyl. 0 - 3230*) boot block size 0 super block size 0 Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon