Operating System - HP-UX
1833873 Members
2081 Online
110063 Solutions
New Discussion

Re: error extracting a tar file

 
marvik
Regular Advisor

error extracting a tar file

Hi All,

I am getting below error on trying to extrcat the tar file, any suggestions pls how to overcome this.

server:/var > file scripts.tar
scripts.tar: tar file


server:/var > tar -tvf scripts.tar
drwx------ unixadm/unixadm 0 2007-06-26 19:51:29 home/unixadm/
-rw-rw-r-- unixadm/unixadm 1903 2006-05-24 14:04:14 home/unixadm/UnixNP
tar: Skipping to next header
tar: Error exit delayed from previous errors

Cheers
Marvik
5 REPLIES 5
V. Nyga
Honored Contributor

Re: error extracting a tar file

Hi,

any differencies if you don't use the '-'?
tar tvf scripts.tar ?
If this tar is from SGI, for example, use:
'dd if=scripts.tar bs=1024k|tar xvf -'

Else transfer it to windows and try to read it with zip, if the error is the same, then I believe the file is corrupt.

Volkmar
*** Say 'Thanks' with Kudos ***
marvik
Regular Advisor

Re: error extracting a tar file

Hi Nyaga,
Thanks for the reply.here is the output.I was able to extract only one file the last one.
Also using tar tvf scripts.tar doesn't makes any difference

daimler:/var > dd if=scripts.tar bs=1024k |tar xvf -
home/unixadm/vkarmak/
home/unixadm/vkarmak/UnixNP
tar: Skipping to next header
13+1 records in
13+1 records out
V. Nyga
Honored Contributor

Re: error extracting a tar file

Hi again,

the first part is a directory only, so one file is ok.
Maybe the error is from the creation of the tar file and there's nothing more inside?
How big is the tar file?
Have you tried winzip?

V.
*** Say 'Thanks' with Kudos ***
marvik
Regular Advisor

Re: error extracting a tar file

Hi,

Tar file is 14MB in size. I tried winzip but no files are visible inside there.

Looks to be corrupted
V. Nyga
Honored Contributor

Re: error extracting a tar file

Hi again,

from:
13+1 records in
13+1 records out (with bs=1024k)
14 MB looks ok

home/unixadm/vkarmak/UnixNP
has only 1903 bytes?

I believe also another blocksize wouldn't change anything, but you could try bs=128k

V.
*** Say 'Thanks' with Kudos ***