From owner-freebsd-questions Fri Sep 21 18:42: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 3FEDE37B411 for ; Fri, 21 Sep 2001 18:42:04 -0700 (PDT) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 4D3A56AD72; Sat, 22 Sep 2001 11:12:17 +0930 (CST) Date: Sat, 22 Sep 2001 11:12:17 +0930 From: Greg Lehey To: Dan Langille Cc: freebsd-questions@freebsd.org Subject: Re: copying from CD to CD Message-ID: <20010922111217.A38715@wantadilla.lemis.com> References: <3BAB8A64.26207.EB13D33@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3BAB8A64.26207.EB13D33@localhost>; from dan@langille.org on Fri, Sep 21, 2001 at 06:43:48PM -0400 Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday, 21 September 2001 at 18:43:48 -0400, Dan Langille wrote: > I want to get an ISO from a CD. I was hoping I could create an ISO directly from it. It appears > I'm doing it wrong: > > # mount > /dev/ad0s1a on / (ufs, local) > /dev/da1s1f on /home (ufs, local) > /dev/ad0s1e on /slow (ufs, local) > /dev/da0s1e on /usr (ufs, NFS exported, local) > /dev/da1s1e on /var (ufs, local) > procfs on /proc (procfs, local) > > # grep cdrom /etc/fstab > /dev/cd0a /cdrom cd9660 ro,noauto 0 0 > > [root@xeon:~] # mount /cdrom > [root@xeon:~] # umount /cdrom > > # dd if=/dev/cd0a of=/home/disc.iso > dd: /dev/cd0a: Invalid argument > 0+0 records in > 0+0 records out > 0 bytes transferred in 0.005591 secs (0 bytes/sec) > > I've also tried cd0c...rcd... etc. Data on CDs is written in blocks of 2 kB. By default dd reads 512 bytes at a time, and the CD driver doesn't support this. It would work if you use bs=2k. For the sake of efficiency, however, you should select a larger block size, say 64 kB: dd if=/dev/cd0a of=/home/disc.iso bs=64k If you have two drives, however, you can do it even more elegantly. This is what I use to copy CDs: cdrecord -v dev=1,0,0 -speed=8 /dev/cd8c Before doing this, make sure to do a dummy run: the chance of creating coasters is higher, though I've never made one myself. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message