Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* gunzipping piped in dd for cloning
@ 1999-09-01  4:00 adrian.ogden
  1999-09-02  4:00 ` Stefan Schwarzer
  0 siblings, 1 reply; 2+ messages in thread
From: adrian.ogden @ 1999-09-01  4:00 UTC (permalink / raw)


I'm using gzip to compress a dd'd 2GB disk image
into a file which is then gunzipped back onto
another disk. The cksums don't match up and the
gzunzip seems to generate more blocks than were
originaly present.

However when the file is gunziped and piped
directly into cksum the correct sum is returned
and size. It only seems to go wrong when
gunzipping directly back onto disk (via dd)

e.g
gunzip -c <filename> | dd of=/dev/rrz8c bs=3960
conv=sync,noerror

any ideas

thanks
Adie


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gunzipping piped in dd for cloning
  1999-09-01  4:00 gunzipping piped in dd for cloning adrian.ogden
@ 1999-09-02  4:00 ` Stefan Schwarzer
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Schwarzer @ 1999-09-02  4:00 UTC (permalink / raw)



we had a similar symptom when using gzip/gunzip in a pipe on files >
2Gb.  I recall that we stared at the sources for some time and then
changed just one place where there should have been a 64bit long int
instead of one of the type defines from the original.  The variable
must be something like a run length counter which overflows.

I am sure that we deleted the sources afterwards because we did not
have any deeper understanding of the code and did not want to inflict
damage on anyone but ourselves.

If you are interested, you can drop me an e-mail and I can send you
the executables to try (at your own risk). 

Stefan.

adrian.ogden@baedsl.co.uk wrote:
> I'm using gzip to compress a dd'd 2GB disk image
> into a file which is then gunzipped back onto
> another disk. The cksums don't match up and the
> gzunzip seems to generate more blocks than were
> originaly present.

> However when the file is gunziped and piped
> directly into cksum the correct sum is returned
> and size. It only seems to go wrong when
> gunzipping directly back onto disk (via dd)

> e.g
> gunzip -c <filename> | dd of=/dev/rrz8c bs=3960
> conv=sync,noerror

> any ideas

> thanks
> Adie


> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

-- 
Stefan Schwarzer                office:  +49-(0)711-685-7606   fax: x-3658 
Uni Stuttgart, ICA 1            e-mail:          sts@ica1.uni-stuttgart.de
Pfaffenwaldring 27              pgp public key available on request/finger 
70569 Stuttgart, Germany             http://www.ica1.uni-stuttgart.de/~sts



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-09-02  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-01  4:00 gunzipping piped in dd for cloning adrian.ogden
1999-09-02  4:00 ` Stefan Schwarzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox