piping output of dd through bzip2

Gregory Nowak gnowak1 at uic.edu
Mon Jan 14 21:44:40 EST 2002


When I tried Tylor's suggestion which worked, I put the '-9' as the last option, and neither program complained.
Greg


On Mon, Jan 14, 2002 at 07:28:38PM -0700, Steve Holmes wrote:
> <hmmm> wonder if that's when one needs to use the -c option? Haven't done
> a lot with gzip nor bzip when it comes to unusual practices like pipes and
> the like.  The man page says that if no arguments are specified that bzip2
> will read from stdin and write to stdout.  Tylor's and my tests indicated
> that success but the -9 might have thrown the thing off.  So if -c is
> added, that might work.
> 
> Well, I did my same test again but added the -9 option and got same
> results as before - no errors.
> 
> On Mon, 14 Jan 2002, Gregory Nowak wrote:
> 
> > Sure did, got an error too. If you want to see it, I'll run the commands and post it. It was an error from dd stating that bzip2 could not be crated, and that '-9' is an invalid dd option.
> > Greg
> >
> >
> > On Mon, Jan 14, 2002 at 06:19:54PM -0700, Jason wrote:
> > > did you try it with output the redirection symbol(">" [greater than sign])?
> > > On Monday January 14, 2002 06:07 pm, you wrote:
> > > > Well, bzip2 doesn't seem to work because it gave me that error.
> > > > Greg
> > > >
> > > > On Mon, Jan 14, 2002 at 05:58:43PM -0700, Jason wrote:
> > > > > ok, ok, gzip, bzip, bzip2, <insert your standard input to standard output
> > > > > compressor here>, whatever, they'll all work
> > > > >
> > > > > On Monday January 14, 2002 05:46 pm, you wrote:
> > > > > > Why should I use bzip if bzip2 gives better compression?
> > > > > > Greg
> > > > > >
> > > > > > On Mon, Jan 14, 2002 at 03:57:06PM -0700, Jason wrote:
> > > > > > > try it with 'bzip > windows.img'
> > > > > > >
> > > > > > > On Monday January 14, 2002 03:42 pm, you wrote:
> > > > > > > > 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
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Speakup mailing list
> > > > > > > Speakup at braille.uwo.ca
> > > > > > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> > > > > >
> > > > > > _______________________________________________
> > > > > > Speakup mailing list
> > > > > > Speakup at braille.uwo.ca
> > > > > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> > > > >
> > > > > _______________________________________________
> > > > > Speakup mailing list
> > > > > Speakup at braille.uwo.ca
> > > > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> > > >
> > > > _______________________________________________
> > > > Speakup mailing list
> > > > Speakup at braille.uwo.ca
> > > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> > >
> > > _______________________________________________
> > > Speakup mailing list
> > > Speakup at braille.uwo.ca
> > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup




More information about the Speakup mailing list