From owner-freebsd-questions Thu Jan 9 13:47:43 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A03E037B401 for ; Thu, 9 Jan 2003 13:47:41 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 365A243F43 for ; Thu, 9 Jan 2003 13:47:40 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 4925F5196D; Fri, 10 Jan 2003 08:17:38 +1030 (CST) Date: Fri, 10 Jan 2003 08:17:38 +1030 From: Greg 'groggy' Lehey To: Phillip Smith Cc: freebsd-questions@FreeBSD.ORG Subject: Re: help! Problems with TAR archives? Message-ID: <20030109214738.GN79263@wantadilla.lemis.com> References: <002401c2b7f2$f7ba5e30$aeb423cf@3bagsmedia> <000f01c2b801$bb637250$aeb423cf@3bagsmedia> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000f01c2b801$bb637250$aeb423cf@3bagsmedia> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thursday, 9 January 2003 at 12:08:29 -0500, Phillip Smith wrote: > On January 9, 2003 10:23 AM, Phillip Smith wrote: >>> What does tar t tell you on the FreeBSD side? >> >> tar: Hmm, this doesn't look like a tar archive. >> tar: Skipping to next file header... >> tar: only read 521 bytes from archive etc.rein.tar >> >> Also, I tried re-creating the problem. Exact same scenario. >> Created a new TAR archive, ftp'd from FreeBSD to Window (not >> specifying a setting), then used 'get' to bring them back to >> FreeBSD and the archives are fine. So, I'm thinking that the >> original archives are corrupt... > > I've tried a few other scenarios and this is what I've discovered... > > - I'm using tar -zcpvf filename.tar.gz targetdir to create the > archive > - using any variation of tar -zxpvf gets the messages I've outlined > above > - same if I gunzip the archive first, then try tar -xpvf z compresses the archive. No wonder you're not having any success without z on the extract. > So I tried on some new tar files, only transfering from BSD to BSD > and found that, for some reason, I'm getting the same error > (e.g. tar with zcpvf and ftp/binary from BSD to BSD). Now I'm > confused. > > So, I repeat the same process without the gzip (tar cpvf and > ftp/binary from BSD to BSD), and presto the archives are fine. I > would assume from this, that I'm doing something wrong with the > gzip? Or that gzip is doing something funny. Possibly. I'm having difficulty getting details here, but if you've found a workaround, great. You can use gzip -t to test the integrity of compressed files. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message