From owner-freebsd-questions Thu Jun 3 16:26:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id AFCE1159DC for ; Thu, 3 Jun 1999 16:25:51 -0700 (PDT) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt8-216-180-14-109.dialup.HiWAAY.net [216.180.14.109]) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id SAA00778; Thu, 3 Jun 1999 18:25:49 -0500 (CDT) Received: from nospam.hiwaay.net (nospam.hiwaay.net [127.0.0.1]) by nospam.hiwaay.net (8.9.3/8.9.3) with ESMTP id SAA24517; Thu, 3 Jun 1999 18:11:14 -0500 (CDT) (envelope-from dkelly@nospam.hiwaay.net) Message-Id: <199906032311.SAA24517@nospam.hiwaay.net> X-Mailer: exmh version 2.0.2 2/24/98 To: Kiril Mitev Cc: mph@astro.caltech.edu (Matthew Hunt), freebsd-questions@FreeBSD.ORG From: David Kelly Subject: Re: how to make an ISO image of a CD ? In-reply-to: Message from Kiril Mitev of "Thu, 03 Jun 1999 19:08:20 BST." <199906031808.TAA07664@ideaglobal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 03 Jun 1999 18:11:14 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kiril Mitev writes: > > You shouldn't need anything special. I can make an image from my > > SCSI drive with: > > > > $ dd if=/dev/rcd0c of=image.iso bs=2048 > > > > You should substitute /dev/rwcd0c since you have an IDE drive, I > > suppose. Without the "bs=2048" I get errors due to the blocks read > > being shorter than the CD-ROM's sector size. > > Thanks, but will it have all relevant ISO header stuff & such as well ? If the original is a single session CD, then the above will work. But might barf exactly two blocks before the end. In prior employment I spent a lot of time making image dupes of CDs. Most I had mastered myself. Too many to keep the mkisofs image laying around for future use. So I had (now lost) a script which used "cdrecord" in its querry mode to tell me how many sessions and how many blocks were on the CDROM. I subtracted 2 from the reported block count. Then used this count with dd to read the image from the CDROM. Irix and FreeBSD handle raw SCSI errors differently. Am not sure how important it is to skip the last two runout blocks under FreeBSD. Found if I didn't skip them, each generation my CD grew by two blocks as cdrecord adds two more. System was an SGI O2 with Irix 6.3. A built in CDROM. Plus an external CD-R. Irix wouldn't mount the CD-R but cdrecord had no problems writting. So after I read my image from the internal CD. I launched cdrecord writting to the CD-R. At the same time I used "find" to walk the CD filesystem generating md5 sums for every file. When that finished the script kicked out the original. When the CD-R was finished writting, it was ejected too. Then the operator was instructed to place the copy in the internal CD. Then my script started verifying the files using md5. A fancy version of the script would start writting another copy while the prior was being verified. Couldn't find anything in Irix like FreeBSD's vnode, so there was no way to mount the CD image file as we can with FreeBSD. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message