bin/130857: /bin/dd if=/dev/acd0 returned error "invalid parameter"

Giorgos Keramidas keramida at freebsd.org
Wed Jan 21 23:00:16 PST 2009


The following reply was made to PR bin/130857; it has been noted by GNATS.

From: Giorgos Keramidas <keramida at freebsd.org>
To: Tri Brotoharsono <tbh at ittelkom.ac.id>
Cc: bug-followup at 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 at 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?
 


More information about the freebsd-bugs mailing list