piping output of dd through bzip2

Gregory Nowak gnowak1 at uic.edu
Mon Jan 14 17:42:43 EST 2002


Ok, I've just tried the following using the format indicated.

"dd if=/dev/hda1 |bzip2 -9 windows.img"

The result was:

bzip2: Can't open input file windows.img: No such file or directory.
9+0 records in
8+0 records out


Greg


On Mon, Jan 14, 2002 at 03:25:30PM -0700, Jason wrote:
> no need to even do that, dd's output only goes to 'of' if the of= parameter 
> is specified, otehrwise it copies to standard output.
> 
> all you would need is:
> dd if=/dev/hda | bzip <whatever>
> replace <whatever> with the command line parameters needed for bzip to output 
> to a file (refer to 'man bzip' for details).
> 
> > The output of dd always goes to the device or file specified for of=
> > Example: dd if=/dev/hda of=something
> > My problem here is I don't know how you can specify that of is to be piped
> > into bzip2.  Some programs use the `-' to represent the standard pipe. in
> > which case, you might be able to say:
> > dd if=/dev/hda of=-; bzipz -
> > Sorry, don't have experience with bzip2's command parms but hopefully this
> > makes sense in concept.
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup




More information about the Speakup mailing list