Date: Sat, 22 Sep 2001 11:12:17 +0930 From: Greg Lehey <grog@FreeBSD.org> To: Dan Langille <dan@langille.org> Cc: freebsd-questions@freebsd.org Subject: Re: copying from CD to CD Message-ID: <20010922111217.A38715@wantadilla.lemis.com> In-Reply-To: <3BAB8A64.26207.EB13D33@localhost>; from dan@langille.org on Fri, Sep 21, 2001 at 06:43:48PM -0400 References: <3BAB8A64.26207.EB13D33@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010922111217.A38715>