Professional Web Applications Themes

cannot read tar archive from tape: directory checksum error - Linux / Unix Administration

Hi I have a tar archive spanning over two tapes. The tapes are DDS-1 tapes and an old Irix indigo with a tape drive has been used in the past to read/write from and to these tapes. I recently wanted to recover some data from these two tapes, but when I issued the command irix>tar xpf /dev/tape /tmp I get the following error: tar: directory checksum error the same with the command to simply read the data back to stdin: irix> tar tvf /dev/tape I know that /dev/tape is pointing to the right tape device. I also tried to out ...

  1. #1

    Default cannot read tar archive from tape: directory checksum error

    Hi

    I have a tar archive spanning over two tapes. The tapes are DDS-1 tapes and
    an old Irix indigo with a tape drive has been used in the past to read/write
    from and to these tapes.

    I recently wanted to recover some data from these two tapes, but when I
    issued the command

    irix>tar xpf /dev/tape /tmp

    I get the following error:

    tar: directory checksum error

    the same with the command to simply read the data back to stdin:

    irix> tar tvf /dev/tape

    I know that /dev/tape is pointing to the right tape device. I also tried to
    out the other tape first i.e. if the tar archive spans over two tapes, I may
    have to put the first tape in rather than the second and maybe a mistake was
    made labeling the tapes.

    I also tried different block sizes i.e

    irix>tar xbf 512 /dev/tape /tmp

    or

    irix>tar xbf 1024 /dev/tape /tmp

    In the case directly above I get a read error and I am quite sure it reads
    as 512 blocks which is correct.

    Under newer versions of tar there is the i option to ignore the checksum but
    the older version of tar does not support this.

    Is there any way of getting these data off the tape when you get this
    directory checksum error? It is quite important we get the data off.

    Any suggestions or advice would be most welcome.

    Thanks

    Hugo

    NB: I have tested the tape and the tape device with mt commands such as
    "mt -f /dev/tape status" and everything is fine, so I suspect it is a
    problem with the data on the tape - but I would still like to try a recovery
    if it is at all possible.




    news.amnet.net.au Guest

  2. #2

    Default Re: cannot read tar archive from tape: directory checksum error

    news.amnet.net.au wrote:
    >
    > I have a tar archive spanning over two tapes. The tapes are DDS-1 tapes and
    > an old Irix indigo with a tape drive has been used in the past to read/write
    > from and to these tapes.
    >
    > I recently wanted to recover some data from these two tapes, but when I
    > issued the command
    > irix>tar xpf /dev/tape /tmp
    > I get the following error:
    > tar: directory checksum error
    Most likely density. Does "dd if=/dev/tape of=/dev/null" say
    zero blocks? If so try a brute force search for a low enough
    density to read it. Something like:

    for i in /dev/rmt/* ; do
    echo ${i}
    mt -f ${i} rewind
    sleep 1
    dd if=${i} of=/dev/null
    done

    Watch it run and see if any options report a tape with data.
    Try a similar loop with tar tvf if you like.
    Doug Freyburger Guest

Similar Threads

  1. #40044 [NEW]: Checksum error on install-pear-nozlib.phar
    By oleg at palm-uae dot com in forum PHP Bugs
    Replies: 3
    Last Post: January 6th, 10:45 PM
  2. Shockwave DMG Checksum Error
    By Naomi2 in forum Macromedia Shockwave
    Replies: 0
    Last Post: December 29th, 04:30 PM
  3. Replies: 4
    Last Post: January 12th, 08:59 PM
  4. Archive::Tar a directory?
    By Chad Kellerman in forum PERL Beginners
    Replies: 0
    Last Post: November 5th, 05:57 PM
  5. Error in archive directory
    By Carol D. in forum Windows Setup, Administration & Security
    Replies: 1
    Last Post: July 9th, 09:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139