From owner-freebsd-stable@FreeBSD.ORG Wed Jun 6 07:45:15 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0907D16A46D for ; Wed, 6 Jun 2007 07:45:15 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 7F77B13C483 for ; Wed, 6 Jun 2007 07:45:14 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp158-41.lns11.adl6.internode.on.net [121.45.158.41]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id l567jBXX057173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 6 Jun 2007 17:15:12 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Robin Gruyters Date: Wed, 6 Jun 2007 17:15:05 +0930 User-Agent: KMail/1.9.5 References: <20070601114047.z6qgi686os4ogw4o@server.yirdis.nl> <46658EEB.5000008@freebsd.org> <20070606084406.8v6nkbtv9csgs880@server.yirdis.nl> In-Reply-To: <20070606084406.8v6nkbtv9csgs880@server.yirdis.nl> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3846374.yCMSWuj31v"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200706061715.06603.doconnor@gsoft.com.au> X-Spam-Score: -2.312 () BAYES_00 X-Scanned-By: MIMEDefang 2.58 on 203.31.81.10 Cc: Tim Kientzle , freebsd-stable@freebsd.org Subject: Re: Unrecognized archive format with RELENG_6_2 and RELENG_6 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2007 07:45:15 -0000 --nextPart3846374.yCMSWuj31v Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 06 June 2007 16:14, Robin Gruyters wrote: > Then a tar the file (with or without blocksize set) to tape: > $ sudo tar -cf /dev/sa0 archive.dmp > $ > > After that I try to read/list the tar from tape with tar -t: > $ sudo mt -f /dev/sa0 rewind > $ sudo tar -tf /dev/sa0 > archive.dmp > tar: Unrecognized archive format: Inappropriate file type or format > $ > > I get strait away the "Unrecognized archive" message. > > But when I extract the archive from tape, it works perfectly: > $ sudo tar -xvf /dev/sa0 > x archive.dmp > $ > > I have tested this with libarchive and tar from RELENG_6 and > RELENG_6_2. No problems with libarchive and tar from RELENG_6_1. I did.. tar -zcvf /dev/sa0 /boot tar -ztvf /dev/sa0 tar -b 1 -zcvf /dev/sa0 /boot tar -b 1 -ztvf /dev/sa0 tar -b 20 -zcvf /dev/sa0 /boot tar -b 20 -ztvf /dev/sa0 tar -b 128 -zcvf /dev/sa0 /boot tar -b 128 -ztvf /dev/sa0 And they work. The example you gave failed however, so do.. tar -b 1 -cvf /dev/sa0 /boot tar -b 1 -tvf /dev/sa0 tar -b 20 -cvf /dev/sa0 /boot tar -b 20 -tvf /dev/sa0 tar -b 128 -cvf /dev/sa0 /boot tar -b 128 -tvf /dev/sa0 Using dd to feed tar does work though. (I think this agrees with Robin's=20 findings although the fact that it works with -z is curious) [cain 17:05] ~ >mt status Mode Density Blocksize bpi Compression Current: 0x40 variable 0 disabled =2D--------available modes--------- 0: 0x40 variable 0 0x1 1: 0x40 variable 0 0x1 2: 0x40 variable 0 0x1 3: 0x40 variable 0 0x1 =2D-------------------------------- Current Driver State: at rest. =2D-------------------------------- =46ile Number: 0 Record Number: 0 Residual Count 0 This is a Tandberg TS400 (LTO2 drive, LTO1 tape) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart3846374.yCMSWuj31v Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBGZmYC5ZPcIHs/zowRAhuLAJ95SVOc5BGHBbQrdnxmNa9n3V8bRwCgh+0i z9DPNKt3pbQhP93QtzD+AlI= =uTvR -----END PGP SIGNATURE----- --nextPart3846374.yCMSWuj31v--