1752733 Members
5630 Online
108789 Solutions
New Discussion юеВ

Re: tar ?

 
SOLVED
Go to solution
fizan
Super Advisor

tar ?

# tar -tvf /dev/rmt/0m
Tar: blocksize = 2
directory checksum error

thanks.
9 REPLIES 9
Pete Randall
Outstanding Contributor
Solution

Re: tar ?

Try rewinding first:

mt -f /dev/rmt/0m rew


Pete

Pete
OldSchool
Honored Contributor

Re: tar ?

Some possibilities:

it may not be positioned at the beginning of the tar file on tape.

Are you sure it is a tar file?

If it was created on some other system, its possible that it was written w/ GNU version and the "compress/zip" option was set. If that's the case, recreate the tape w/o that flag (althought it may be possible to use dd and gzip to read the tape get that sent to tar...I've not tried that though)
Kranti Mahmud
Honored Contributor

Re: tar ?

Hi fizan,

Check the following thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1260091792986+28353475&threadId=833785

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
Torsten.
Acclaimed Contributor

Re: tar ?

Is this an IGNITE tape? Made on HP9000 or Integrity?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: tar ?

Hi:

If you are trying to restore a file from an Ignite recovery tape, then you need to skip the boot image at the tape's beginning:

For recovery tapes made on PA-RISC servers:

# mt -f /dev/rmt/0mn rew
# mt -f /dev/rmt/0mn fsf 1
# tar -xvf /dev/rmt/0mn ...

For recovery tapes made on Itanium servers:

# mt -f /dev/rmt/0mn rew
# mt -f /dev/rmt/0mn fsf 22
# tar -xvf /dev/rmt/0mn ...

Regards!

...JRF...
kunjuttan
Super Advisor

Re: tar ?

"# mt -f /dev/rmt/0mn rew
# mt -f /dev/rmt/0mn fsf 1" - What is this for?
rariasn
Honored Contributor

Re: tar ?

Hi,

fsf Forward space count files.

kunjuttan
Super Advisor

Re: tar ?

what it means and why they are using?
Pete Randall
Outstanding Contributor

Re: tar ?

They are two magnetic tape (mt) commands used to position an Ignite tape in order to be able to restore from it.

The first command (mt rew) rewinds the tape so you know you are at the beginning. The second command (mt fsf) Forward Spaces File(s) in order to skip over the boot header information on an Ignite tape so that you can restore individual files from it.


Pete

Pete