Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default tar archive problem

    Hello,

    I have 2 systems one motorola m68020 based proprietory unix and the
    other pentium based linux. Both have qic 150 drive. I took backup on
    tapes on motorola based system using tar. Now when I try to restore
    the same on pentium based linux I get "this doesnt look tar archive",
    "skipping to next header" etc errors. Could please someone guide me if
    I am missinhg somehting here?

    Any help will be greatly appreciated.

    TIA
    Ravi
    Ravi Katti Guest

  2. Similar Questions and Discussions

    1. Archive::Zip problem
      Maybe I've misunderstood something. But when calling $zip->contents() I keep getting characters added and/or replaced within the returned string. ...
    2. Archive::Tar
      Sample Code: $a = new Archive::Tar ; $a->add_files( 'images/kids.gif' ) ; @files = $a->list_files() ; ## $files is 'kids.gif' chdir '/tmp' ;...
    3. using Archive::Zip
      Hello, I have over 200 zip files in about 100 sub-directories of say c:\docs. Each zip file contains one MS Word doc file. The name of the doc...
    4. [PHP-DEV] PHP archive
      Not so long ago, it was proposed that we should have an PHP archive model like Java does. I think it might me useful for application deployment....
    5. Archive
      On Fri, 25 Jul 2003 12:31:03 GMT, "nospam" <bruceradtke@REMOVEspamREMOVE.earthlink.net> wrote: I think you misread that - comp.unix.sco is no...
  3. #2

    Default Re: tar archive problem

    On 16 Jul 2004 08:58:48 -0700, Ravi Katti <ravi@greyvector.com> wrote:
    > Hello,
    >
    > I have 2 systems one motorola m68020 based proprietory unix and the
    > other pentium based linux. Both have qic 150 drive. I took backup on
    > tapes on motorola based system using tar. Now when I try to restore
    > the same on pentium based linux I get "this doesnt look tar archive",
    > "skipping to next header" etc errors. Could please someone guide me if
    > I am missinhg somehting here?
    From the dim recesses of my memory, something about byte order comes to
    mind. Does the tar on the new system have an option listed in
    the man page for reversing byte order? Can anyone else suggest what
    I'm thinking of here? I remember needing to do this going from
    SunOS 4.x to, say, SGI with a tarfile tape.

    Dave Hinz
    Dave Hinz Guest

  4. #3

    Default Re: tar archive problem

    Dave Hinz <DaveHinz@spamcop.net> said:
    >On 16 Jul 2004 08:58:48 -0700, Ravi Katti <ravi@greyvector.com> wrote:
    >> Hello,
    >>
    >> I have 2 systems one motorola m68020 based proprietory unix and the
    >> other pentium based linux. Both have qic 150 drive. I took backup on
    >> tapes on motorola based system using tar. Now when I try to restore
    >> the same on pentium based linux I get "this doesnt look tar archive",
    >> "skipping to next header" etc errors. Could please someone guide me if
    >> I am missinhg somehting here?
    >
    >From the dim recesses of my memory, something about byte order comes to
    >mind. Does the tar on the new system have an option listed in
    >the man page for reversing byte order? Can anyone else suggest what
    >I'm thinking of here? I remember needing to do this going from
    >SunOS 4.x to, say, SGI with a tarfile tape.
    There might also be issues with tape block sizes.
    --
    Wolf a.k.a. Juha Laiho Espoo, Finland
    (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
    PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
    "...cancel my subscription to the resurrection!" (Jim Morrison)
    Juha Laiho Guest

  5. #4

    Default Re: tar archive problem

    Juha Laiho <Juha.Laiho@iki.fi> wrote in message news:<cd95s4$6a2$3@ichaos.ichaos-int>...
    > Dave Hinz <DaveHinz@spamcop.net> said:
    > >On 16 Jul 2004 08:58:48 -0700, Ravi Katti <ravi@greyvector.com> wrote:
    > >> Hello,
    > >>
    > >> I have 2 systems one motorola m68020 based proprietory unix and the
    > >> other pentium based linux. Both have qic 150 drive. I took backup on
    > >> tapes on motorola based system using tar. Now when I try to restore
    > >> the same on pentium based linux I get "this doesnt look tar archive",
    > >> "skipping to next header" etc errors. Could please someone guide me if
    > >> I am missinhg somehting here?
    > >
    > >From the dim recesses of my memory, something about byte order comes to
    > >mind. Does the tar on the new system have an option listed in
    > >the man page for reversing byte order? Can anyone else suggest what
    > >I'm thinking of here? I remember needing to do this going from
    > >SunOS 4.x to, say, SGI with a tarfile tape.
    >
    > There might also be issues with tape block sizes.
    Well the tape block size is okay. Looks like it has got something to
    do with byte order as said earlier. I also used "star" utility which
    is supposed to automatically detect archive type, byte order etc but
    it doesnt do anything. the default tar utility does read the tape and
    extract files but with errors. I am really stuck cos the motorola
    system doesnt have nic so the only option is to somehow read those
    tapes in order to transfer data.
    The other option I can think of is to setup the qic drive on sun
    system. Extract the archive from the tape. Then dump these files over
    the network onto linux system.

    TIA
    Ravi Katti Guest

  6. #5

    Default Re: tar archive problem

    Ravi Katti <ravi@greyvector.com> wrote:
    > Juha Laiho <Juha.Laiho@iki.fi> wrote in message news:<cd95s4$6a2$3@ichaos.ichaos-int>...
    >> Dave Hinz <DaveHinz@spamcop.net> said:
    >> >On 16 Jul 2004 08:58:48 -0700, Ravi Katti <ravi@greyvector.com> wrote:
    >> >> Hello,
    >> >>
    >> >> I have 2 systems one motorola m68020 based proprietory unix and the
    >> >> other pentium based linux. Both have qic 150 drive. I took backup on
    >> >> tapes on motorola based system using tar. Now when I try to restore
    >> >> the same on pentium based linux I get "this doesnt look tar archive",
    >> >> "skipping to next header" etc errors. Could please someone guide me if
    >> >> I am missinhg somehting here?
    >> >
    >> >From the dim recesses of my memory, something about byte order comes to
    >> >mind. Does the tar on the new system have an option listed in
    >> >the man page for reversing byte order? Can anyone else suggest what
    >> >I'm thinking of here? I remember needing to do this going from
    >> >SunOS 4.x to, say, SGI with a tarfile tape.
    >>
    >> There might also be issues with tape block sizes.
    > Well the tape block size is okay. Looks like it has got something to
    > do with byte order as said earlier. I also used "star" utility which
    > is supposed to automatically detect archive type, byte order etc but
    > it doesnt do anything. the default tar utility does read the tape and
    > extract files but with errors. I am really stuck cos the motorola
    > system doesnt have nic so the only option is to somehow read those
    > tapes in order to transfer data.
    > The other option I can think of is to setup the qic drive on sun
    > system. Extract the archive from the tape. Then dump these files over
    > the network onto linux system.
    > TIA

    Do you have a compiler ( and this possibility to build pax or
    maybe gnu tar ) Both of these has a good portability record.

    Mounting the disc on a sun might be hazardous, not all filesystems
    are alike.

    Last resourt could be kermit or an uucp link, with some
    scripting it would be possible to transfer all files.

    --
    Peter Håkanson
    IPSec Sverige ( At Gothenburg Riverside )
    Sorry about my e-mail address, but i'm trying to keep spam out,
    remove "icke-reklam" if you feel for mailing me. Thanx.
    phn@icke-reklam.ipsec.nu Guest

  7. #6

    Default Re: tar archive problem

    [email]ravi@greyvector.com[/email] (Ravi Katti) writes:

    [SNIP]
    > Well the tape block size is okay. Looks like it has got something to
    > do with byte order as said earlier. I also used "star" utility which
    > is supposed to automatically detect archive type, byte order etc but
    > it doesnt do anything. the default tar utility does read the tape and
    > extract files but with errors. I am really stuck cos the motorola
    > system doesnt have nic so the only option is to somehow read those
    > tapes in order to transfer data.
    > The other option I can think of is to setup the qic drive on sun
    > system. Extract the archive from the tape. Then dump these files over
    > the network onto linux system.
    >
    > TIA
    If it's byte order, then try this on your linux side (assuming
    /dev/st0 is the device of your tape drive) :

    dd if=/dev/st0 conv=swab | tar tvf -

    or

    cpio -i -t -b -H tar < /dev/st0

    If that lists your tar file correctly, then you can extract it.

    -jc
    --
    (apply 'concat (reverse (list "com"
    (char-to-string 46) "yahoo"
    (char-to-string 64) "joechung")))
    Joe Chung Guest

Posting Permissions

  • You may not post new threads
  • You may 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