Operating System - HP-UX
1753634 Members
6174 Online
108798 Solutions
New Discussion юеВ

tar tvf gives a checksum error

 
Bala Ganeshan
New Member

tar tvf gives a checksum error

Hi Folks,
tar tvf gives the following error:
Tar: blocksize = 2
directory checksum error


Any idea what this means and how to resolve this? Thanks for your time and patience.
Regards,
BG.
7 REPLIES 7
G. Vrijhoeven
Honored Contributor

Re: tar tvf gives a checksum error

Hi Bala,

I am afraid you have a bad tape...
however the blocksize = 2 is strange to me tar usally uses a blocksize of 512k....
The -b flag allows you to specify alternate blocksizes.

Regards,

Gideon
HGN
Honored Contributor

Re: tar tvf gives a checksum error

Hi

This looks like a bad media issue, maybe you wnat to try taking a backup on another media and restore.

Rgds

HGN
Bill Hassell
Honored Contributor

Re: tar tvf gives a checksum error

Since you didn't get an I/O error message like errno 5, this is more likely a recording mistake, probably a different program like cpio or dump or fbackup was used to create the tape. Or worse, the tape was left in the drive after the backup and someone accidently cat'ed or dd'ed a file to the tape. If you have the option, take the tape back to the original system and see if the backup utility used can read the tape.


Bill Hassell, sysadmin
Devesh Pant_1
Esteemed Contributor

Re: tar tvf gives a checksum error

I would suggest using another tape for a test restore and also check how the backup was done ( blocking factor used ? ) and then trying the -b option

Re: tar tvf gives a checksum error

Hi,

Even I got a same error like this.

Tar: blocksize = 10
directory checksum error

The solutions to this issue is to use cpio command instead of tar.

cpio -cvBuild < /dev/rmt/4m
cpio -idmv < /dev/rmt/4m

This is solved my problem. :)
OldSchool
Honored Contributor

Re: tar tvf gives a checksum error

"
Even I got a same error like this.

Tar: blocksize = 10
directory checksum error

The solutions to this issue is to use cpio command instead of tar.

cpio -cvBuild < /dev/rmt/4m
cpio -idmv < /dev/rmt/4m

This is solved my problem. :) "

1) you realize this thread is way old...
2) the solution you found simply indicates that the tape you had wasn't a tar tape to begin with....
V. Nyga
Honored Contributor

Re: tar tvf gives a checksum error

Hi,

try this:
'dd if=/dev/rmt0 bs=1024k|tar xvf -'
I use this command to read tapes from sgi.
Or copy it with 'dd' and try to read it with winzip.

Volkmar
*** Say 'Thanks' with Kudos ***