Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2002 13:37:38 -0600
From:      Krzysztof Parzyszek <kparz@iastate.edu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: DD image of a CDROM
Message-ID:  <20020118133738.A3503@warsaw.scl.ameslab.gov>
In-Reply-To: <20020118133842.A34184@tharmas.rintrah.org>; from devin-freebsdquestions@rintrah.org on Fri, Jan 18, 2002 at 01:38:42PM -0500
References:  <20020118090529.A57267@sunder.touchtunes.com> <20020118133842.A34184@tharmas.rintrah.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <Krzysztof Parzyszek>  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020118133738.A3503>