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!
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
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
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.
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
> 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
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. *
*********************************************************************