Date: Thu, 22 Jan 2009 07:00:15 GMT From: Giorgos Keramidas <keramida@freebsd.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/130857: /bin/dd if=/dev/acd0 returned error "invalid parameter" Message-ID: <200901220700.n0M70FK8054931@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/130857; it has been noted by GNATS. From: Giorgos Keramidas <keramida@freebsd.org> To: Tri Brotoharsono <tbh@ittelkom.ac.id> Cc: bug-followup@freebsd.org Subject: Re: bin/130857: /bin/dd if=/dev/acd0 returned error "invalid parameter" Date: Thu, 22 Jan 2009 08:37:52 +0200 On Thu, 22 Jan 2009 06:00:10 GMT, Tri Brotoharsono <tbh@ittelkom.ac.id> wrote: > Invoking command /bin/dd with input file CDROM device file returned invalid parameter > > Example: > # dd if=/dev/acd0 of=dd.iso > dd: /dev/acd0: Invalid argument > 0+0 records in > 0+0 records out > 0 bytes transferred in 0.000080 secs (0 bytes/sec) > # > --- dd.c 2009-01-22 12:27:26.000000000 +0700 > +++ dd.c.orig 2009-01-22 12:27:17.000000000 +0700 > @@ -121,7 +121,7 @@ > in.name = "stdin"; > in.fd = STDIN_FILENO; > } else { > - in.fd = open(in.name, O_RDONLY); > + in.fd = open(in.name, O_RDONLY, 0); > if (in.fd == -1) > err(1, "%s", in.name); > } Are you sure this fixes the problem? I seem to recall audio CD-ROMs needs a different block size in dd. Maybe this is why the original invocation failed?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901220700.n0M70FK8054931>