Operating System - HP-UX
1833874 Members
2257 Online
110063 Solutions
New Discussion

DAT tape data block size problem

 
Glenn Bowley
New Member

DAT tape data block size problem

Hello all-
I'm trying to recover some data that is on a DAT tape, but I'm getting the error "Tar: blocksize=2, directory checksum error"
I seem to remember this being a problem with using a tape created on a SUN workstation. However, I don't think this tape was created on a SUN workstation.
Any suggestions on how to restore some files on this tape?
Thank You
8 REPLIES 8
Carlos Fernandez Riera
Honored Contributor

Re: DAT tape data block size problem


do a dd

dd if=/dev/rm..... of=/tmp/f1 bs=10k

file /tmp/f1

If it shows tar file you can do

tar tvfb /dev/rmt/... 2


Or maybe it is other file format such us cpio.

unsupported
Carlos Fernandez Riera
Honored Contributor

Re: DAT tape data block size problem

Please change :
dd if=/dev/rm..... of=/tmp/f1 bs=10k count=10


unsupported
Glenn Bowley
New Member

Re: DAT tape data block size problem

Thanks for the information.
After trying this, I feel the tape may be blank.
After issuing the command, the system responds very quickly with no tape drive activity. The output file is only 1024 in size, so I don't think this works, or again, the tape is blank.
Thanks for the help though!
Carlos Fernandez Riera
Honored Contributor

Re: DAT tape data block size problem

Have you tryed more reads with norewind device (/dev/rmt/0mn)?

Maybe this is 1024 bytes is only a tape header.
do

cat /tmp/f1
or od -xc /tmp/f1


unsupported
Glenn Bowley
New Member

Re: DAT tape data block size problem

Using the cat command, I get the message "ANSI standard label not yet implemented" ?????
Does this make any sense?
I have been using the /dev/rmt/0m to view the archive list.
Carlos Fernandez Riera
Honored Contributor

Re: DAT tape data block size problem

Every time i have seen this message i rejected tape as non valid tape.

DDS tapes have a internal header, and this mess refers, i think, that header has been not found.

unsupported
Frank Slootweg
Honored Contributor

Re: DAT tape data block size problem

> Using the cat command, I get the
> message "ANSI standard label not yet
> implemented" ?????
> Does this make any sense?

This *probably* indicates that it is a fbackup(1M) tape. Use frecover(1M) or SAM to restore.

This will show the same message:

fbackup -i /etc/passwd -f - 2>/dev/null | head -1
Carlos Fernandez Riera
Honored Contributor

Re: DAT tape data block size problem

Frank:
maybe i am wrong. I remember this message from some new tapes.

Glenn:

might you try to write the tape and tell us what have happen? Please.



unsupported