|
|
|
|
|
|
| Author |
Message |
pankajtakawale *nix forums beginner
Joined: 29 Aug 2005
Posts: 21
|
Posted: Tue Jul 04, 2006 11:40 am Post subject:
openBSD 3.7 tar command - tar: Invalid header, starting valid header search
|
|
|
I have 17 MB tar file created on suse9,
When I tvf or xvf that file on openBSD 3.7, at the end of listing or
extracting, tar displays following warning messages
tar: Invalid header, starting valid header search.
tar: End of archive volume 1 reached
But listing & extracting works just fine.
I ran md5sum command on all files - extracted using openBSD 3.7 tar AND
extracted using suse9 tar. Checksum is same for both extracted files.
But when i tvf or xvf the same tar file on other OSs like suse9 ,
solaris, it doesnt throw these warnings.
What causes openbsd throw this messages? |
|
| Back to top |
|
 |
void * clvrmnky() *nix forums Guru Wannabe
Joined: 01 Mar 2006
Posts: 152
|
Posted: Tue Jul 04, 2006 5:28 pm Post subject:
Re: openBSD 3.7 tar command - tar: Invalid header, starting valid header search
|
|
|
pankajtakawale wrote:
| Quote: | I have 17 MB tar file created on suse9,
When I tvf or xvf that file on openBSD 3.7, at the end of listing or
extracting, tar displays following warning messages
tar: Invalid header, starting valid header search.
tar: End of archive volume 1 reached
But listing & extracting works just fine.
I ran md5sum command on all files - extracted using openBSD 3.7 tar AND
extracted using suse9 tar. Checksum is same for both extracted files.
But when i tvf or xvf the same tar file on other OSs like suse9 ,
solaris, it doesnt throw these warnings.
What causes openbsd throw this messages?
What are the UID/GIDs on the files in the archive. Isn't there a known |
issue if they are larger than 2^30?
Check the Neohapsis archives and friends -- I'm sure I've seen similar
reports before. |
|
| Back to top |
|
 |
jKILLSPAM.schipper@math.u *nix forums Guru Wannabe
Joined: 13 Nov 2005
Posts: 202
|
Posted: Tue Jul 04, 2006 6:35 pm Post subject:
Re: openBSD 3.7 tar command - tar: Invalid header, starting valid header search
|
|
|
Clever Monkey <clvrmnky.invalid@hotmail.com.invalid> wrote:
| Quote: | pankajtakawale wrote:
I have 17 MB tar file created on suse9,
When I tvf or xvf that file on openBSD 3.7, at the end of listing or
extracting, tar displays following warning messages
tar: Invalid header, starting valid header search.
tar: End of archive volume 1 reached
But listing & extracting works just fine.
I ran md5sum command on all files - extracted using openBSD 3.7 tar AND
extracted using suse9 tar. Checksum is same for both extracted files.
But when i tvf or xvf the same tar file on other OSs like suse9 ,
solaris, it doesnt throw these warnings.
What causes openbsd throw this messages?
What are the UID/GIDs on the files in the archive. Isn't there a known
issue if they are larger than 2^30?
Check the Neohapsis archives and friends -- I'm sure I've seen similar
reports before.
|
Some broken tar implementations write them, and GNU tar is a bit more
liberal. However, I forgot the exact reason...
Generally, they work fine - IIRC, a tar archive is by convention ended
by two null somethings, and those archives only have one, but since EOF
also works in this case, everything's fine.
Joachim |
|
| Back to top |
|
 |
pankajtakawale *nix forums beginner
Joined: 29 Aug 2005
Posts: 21
|
Posted: Thu Jul 06, 2006 6:48 am Post subject:
Re: openBSD 3.7 tar command - tar: Invalid header, starting valid header search
|
|
|
uid/gid is 0/0 for all the files in the tar archive. However I found
the note on web saying these warning messages are harmless. But still
curious about what is the cause.
Is there incompatibility between GNU tar & openBSD tar headers? |
|
| Back to top |
|
 |
Chris Odorjan *nix forums beginner
Joined: 12 Feb 2006
Posts: 8
|
Posted: Thu Jul 06, 2006 11:03 pm Post subject:
Re: openBSD 3.7 tar command - tar: Invalid header, starting valid header search
|
|
|
On 07/06/06 2:48 AM, pankajtakawale wrote:
| Quote: | Is there incompatibility between GNU tar & openBSD tar headers?
|
Yes. From what I understand, GNU tar was based upon pdtar (a
public-domain tar from late 1986), which wrote POSIX archives, but the
GNU extensions added later were incompatible.
So now OpenBSD's tar can have problems reading the nonstandard headers
written by GNU tar, and GNU tar sometimes has issues with the extended
POSIX headers used by other tar programs (which usually aren't needed so
it's not much of a problem).
Newer versions of GNU tar might have some of this fixed, and I
considered upgrading on my Linux system for about two seconds until I
discovered that bsdtar (http://people.freebsd.org/~kientzle/libarchive/)
would write POSIX archives and could read GNU archives just fine.
On the other hand, the reverse is possible too (GNU tar is in
ports/packages as gtar), so that's one way to get rid of the warning
message...
--
Chris Odorjan - codorjan@gmail.com - http://www.execulink.com/~bobnet/ |
|
| Back to top |
|
 |
pankajtakawale *nix forums beginner
Joined: 29 Aug 2005
Posts: 21
|
Posted: Sat Jul 08, 2006 6:16 am Post subject:
Re: openBSD 3.7 tar command - tar: Invalid header, starting valid header search
|
|
|
Thanks to all....
Chris Odorjan wrote:
| Quote: | On 07/06/06 2:48 AM, pankajtakawale wrote:
Is there incompatibility between GNU tar & openBSD tar headers?
Yes. From what I understand, GNU tar was based upon pdtar (a
public-domain tar from late 1986), which wrote POSIX archives, but the
GNU extensions added later were incompatible.
So now OpenBSD's tar can have problems reading the nonstandard headers
written by GNU tar, and GNU tar sometimes has issues with the extended
POSIX headers used by other tar programs (which usually aren't needed so
it's not much of a problem).
Newer versions of GNU tar might have some of this fixed, and I
considered upgrading on my Linux system for about two seconds until I
discovered that bsdtar (http://people.freebsd.org/~kientzle/libarchive/)
would write POSIX archives and could read GNU archives just fine.
On the other hand, the reverse is possible too (GNU tar is in
ports/packages as gtar), so that's one way to get rid of the warning
message...
--
Chris Odorjan - codorjan@gmail.com - http://www.execulink.com/~bobnet/ |
|
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sun Nov 23, 2008 11:13 am | All times are GMT
|
|
Unsecured Loans | Venta chalets Denia | MPAA | Mortgage Calculator | Flights to Bangkok
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|