From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8c33970692447758 X-Google-Attributes: gidfee84,public From: Stefan Schwarzer Subject: Re: gunzipping piped in dd for cloning Date: 1999/09/02 Message-ID: <7qmnbr$9ab$1@infosun2.rus.uni-stuttgart.de>#1/1 X-Deja-AN: 520327013 References: <7qjfbg$lr1$1@nnrp1.deja.com> Organization: ICA 1, Stuttgart University User-Agent: tin/pre-1.4-971224 (UNIX) (SunOS/5.7 (sun4u)) Newsgroups: comp.unix.osf.osf1 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 | 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