Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 Jun 2007 09:58:20 +0200
From:      Robin Gruyters <r.gruyters@yirdis.nl>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        Tim Kientzle <kientzle@freebsd.org>, freebsd-stable@freebsd.org
Subject:   Re: Unrecognized archive format with RELENG_6_2 and RELENG_6
Message-ID:  <20070606095820.83tast6s0804osos@server.yirdis.nl>
In-Reply-To: <200706061715.06603.doconnor@gsoft.com.au>
References:  <20070601114047.z6qgi686os4ogw4o@server.yirdis.nl> <46658EEB.5000008@freebsd.org> <20070606084406.8v6nkbtv9csgs880@server.yirdis.nl> <200706061715.06603.doconnor@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format and has been PGP signed.

--=_25gze2ryqxc0
Content-Type: text/plain;
	charset=UTF-8;
	DelSp="Yes";
	format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Quoting Daniel O'Connor <doconnor@gsoft.com.au>:

> 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
> 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
> ---------available modes---------
> 0:        0x40                 variable       0        0x1
> 1:        0x40                 variable       0        0x1
> 2:        0x40                 variable       0        0x1
> 3:        0x40                 variable       0        0x1
> ---------------------------------
> Current Driver State: at rest.
> ---------------------------------
> File Number: 0  Record Number: 0        Residual Count 0
>
> This is a Tandberg TS400 (LTO2 drive, LTO1 tape)
>
idd, same problem here. When using -z option, works perfectly. Without =20
it, it fails.

Here is mine 'mt status' output:

$ sudo mt status
Mode      Density              Blocksize      bpi      Compression
Current:  0x47                 variable       0        DCLZ
---------available modes---------
0:        0x47                 variable       0        DCLZ
1:        0x47                 variable       0        DCLZ
2:        0x47                 variable       0        DCLZ
3:        0x47                 variable       0        DCLZ
---------------------------------
Current Driver State: at rest.
---------------------------------
File Number: 0  Record Number: 0        Residual Count 0

Our tapedrive is a "HP C7438A V312". (DAT)

Kind regards,

Robin Gruyters
Network and Security Engineer
Yirdis B.V.
I: http://yirdis.com
P: +31 (0)36 5300394
F: +31 (0)36 5489119


--=_25gze2ryqxc0
Content-Type: application/pgp-signature
Content-Description: PGP Digital Signature
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.3 (FreeBSD)

iD8DBQBGZmkcLh3hlgHmc7MRAjriAJ4oJ0St1zOdJ3nWPX/lYNedD9UJxwCeIs4T
jGl9kz8j54GWMZ/BgWZJhrE=
=fP8z
-----END PGP SIGNATURE-----

--=_25gze2ryqxc0--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070606095820.83tast6s0804osos>