Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TAR: "directory checksum error"

947 views
Skip to first unread message

Gabriele Rinaldi

unread,
Feb 8, 2002, 11:41:38 AM2/8/02
to
Hi everybody!

I'm a newbie with UNIX and I'm having trouble with TAR (I use HP-UX
11.00). I need to read tapes made under Irix UNIX (and with a
different workstation, of course), but if I wrote, for istance, just

tar t

it gives the following error:

"directory checksum error"

The TAR works fine with tarball created under HP-UX.

Could someone help me?


Thank you very much!

Bye!


Simon Waters

unread,
Feb 8, 2002, 12:13:12 PM2/8/02
to

Gabriele Rinaldi

unread,
Feb 11, 2002, 4:58:06 AM2/11/02
to
>I'm a newbie with UNIX and I'm having trouble with TAR (I use HP-UX
>11.00). I need to read tapes made under Irix UNIX (and with a
>different workstation, of course), but if I wrote, for istance, just
>
>tar t
>
>it gives the following error:
>
>"directory checksum error"
>
>The TAR works fine with tarball created under HP-UX.
I'm sorry to disturb you, but also the command that I found in the FAQ
under "Subject: 8.36 How do I read an SGI-written tar
format DDS tape?" doesn't work:

dd if=/dev/rmt/0m ibs=512k obs=10k | tar -xvf -

gives

"directory checksum error"

I have a lot of SGI-written tar format DDS tapes (SGI Irix 6.2) to
read with HP-UX 11.00 ...

In any case, thank you very much, this NG is very useful!

Regards

Gabriele

Martin Kroeker

unread,
Feb 11, 2002, 6:03:59 AM2/11/02
to
Gabriele Rinaldi <grin...@temasinergie.it> wrote:
> I have a lot of SGI-written tar format DDS tapes (SGI Irix 6.2) to
> read with HP-UX 11.00 ...

You could try installing GNU tar (unless 'gtar' is already on your system).

HTH,
Martin

--
Dr. Martin Kroeker, daveg GmbH Darmstadt CAD/CAM/CAQ m...@daveg.com
Precision Powered by Penguins

Frank Slootweg

unread,
Feb 12, 2002, 10:57:32 AM2/12/02
to
Earlier I wrote:
> Perhaps this can help (If not, please post the results.):
>
> dd if=/dev/rmt/0m bs=1024k count=1 of=/tmp/record
> [will tell the *real* record size (in bytes)]

I meant the dd(1) command *followed by*

ll /tmp/record

i.e. the size of the file /tmp/record is the real record size.

Frank Slootweg

unread,
Feb 12, 2002, 10:54:28 AM2/12/02
to
Gabriele Rinaldi <grin...@temasinergie.it> wrote:
>>I'm a newbie with UNIX and I'm having trouble with TAR (I use HP-UX
>>11.00). I need to read tapes made under Irix UNIX (and with a
>>different workstation, of course), but if I wrote, for istance, just
>>
>>tar t
>>
>>it gives the following error:
>>
>>"directory checksum error"
>>
>>The TAR works fine with tarball created under HP-UX.
> I'm sorry to disturb you, but also the command that I found in the FAQ
> under "Subject: 8.36 How do I read an SGI-written tar
> format DDS tape?" doesn't work:
>
> dd if=/dev/rmt/0m ibs=512k obs=10k | tar -xvf -
>
> gives
>
> "directory checksum error"

See also the comments in the same FAQ item about conv=swab. I.e. you
need the right byte-order *and* the right record size.

Perhaps this can help (If not, please post the results.):

dd if=/dev/rmt/0m bs=1024k count=1 of=/tmp/record
[will tell the *real* record size (in bytes)]

file /tmp/record
[will hopefully say it is a tar archive]

od -b /tmp/record | head
[will hopefully show a readable or byte-swapped path name, i.e.
> 0000000 / e t c / p a s s w d \0 \0 \0 \0 \0
(good)
or
> 0000000 e / c t p / s a w s \0 d \0 \0 \0 \0
(byte-swapped)]

*and*

dd if=/dev/rmt/0m bs=1024k count=1 conv=swab of=/tmp/record
file /tmp/record
od -b /tmp/record | head

Klaus-Dieter Leyhr

unread,
Feb 14, 2002, 6:23:36 AM2/14/02
to
Hello Gabriele,

> tar t
>
> it gives the following error:
>
> "directory checksum error"

I had this error message when I received a compressed tar file from a linux
system.
The file was generated using the -z option which is available for gtar but
not for hp-ux tar.
First doing a gunzip solves the problem for me.

Best regards
Klaus-Dieter Leyhr

Steve Allan

unread,
Feb 14, 2002, 11:03:21 AM2/14/02
to
"Klaus-Dieter Leyhr" <le...@comsoft.de> writes:

I had this problem trying to unpack the latest xerces tarball on
hpux. Doing a gunzip first didn't work in my case. I ended up
building gnu tar on hpux and using tar zxf - that worked for me.

--
-- Steve
*********************************************************************
* WRQ has 21 years of experience providing integration software and *
* services for host-intensive environments. To learn more about our *
* Reflection and Verastream products, visit www.wrq.com/products. *
*********************************************************************

0 new messages