From owner-freebsd-questions Fri Jan 18 11:35:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from warsaw.scl.ameslab.gov (warsaw.scl.ameslab.gov [147.155.137.63]) by hub.freebsd.org (Postfix) with ESMTP id F262D37B400 for ; Fri, 18 Jan 2002 11:35:24 -0800 (PST) Received: (from kparz@localhost) by warsaw.scl.ameslab.gov (8.11.6/8.11.6) id g0IJbcd03566 for freebsd-questions@FreeBSD.ORG; Fri, 18 Jan 2002 13:37:38 -0600 (CST) (envelope-from kparz) Date: Fri, 18 Jan 2002 13:37:38 -0600 From: Krzysztof Parzyszek To: freebsd-questions@FreeBSD.ORG Subject: Re: DD image of a CDROM Message-ID: <20020118133738.A3503@warsaw.scl.ameslab.gov> References: <20020118090529.A57267@sunder.touchtunes.com> <20020118133842.A34184@tharmas.rintrah.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020118133842.A34184@tharmas.rintrah.org>; from devin-freebsdquestions@rintrah.org on Fri, Jan 18, 2002 at 01:38:42PM -0500 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 Fri, Jan 18, 2002 at 01:38:42PM -0500, devin wrote: > > specify a blocksize of 2048, i.e. dd if=/dev/acd0c of=cdimage.iso bs=2048 Doesn't work for me: # dd if=/dev/acd0c of=file.cd bs=2048 dd: /dev/acd0c: Invalid argument 0+0 records in 0+0 records out 0 bytes transferred in 0.000251 secs (0 bytes/sec) Seems like read fails on /dev/acd0c: # truss dd if=/dev/acd0c of=file.cd bs=2048 [...] open("/dev/acd0c",0,00) = 3 (0x3) fstat(3,0xbfbff6b8) = 0 (0x0) ioctl(3,FIODTYPE,0xbfbff6b4) = 0 (0x0) ioctl(3,DIOCWLABEL,0xbfbff6b0) ERR#9 'Bad file descriptor' open("file.cd",1538,0666) = 4 (0x4) fstat(4,0xbfbff6b8) = 0 (0x0) lseek(4,0x0,1) = 0 (0x0) break(0x8060000) = 0 (0x0) gettimeofday(0xbfbff74c,0x0) = 0 (0x0) sigaction(SIGINFO,0xbfbff730,0xbfbff718) = 0 (0x0) sigaction(SIGINT,0xbfbff720,0xbfbff708) = 0 (0x0) read(0x3,0x805f000,0x800) ERR#22 'Invalid argument' [...] -- <>> hektor@iname.com Visit http://google.com <<> (E)-N-[(4-Hydroxy-3-methoxyphenyl)methyl]-8-methyl-6-nonenamide To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message