Professional Web Applications Themes

cpio: I/O error - chance to cirvent ? - Linux / Unix Administration

Dr. Zimmermann wrote: > Our data is backup'd using cpio (GNU cpio version 2.4.2) to a DAT tape > (3 volumes). Trying to restore leads to an 'cpio error: I/O error` > during > restore of the second volume. SUN cpio has an option to skip over > corrupt > data but cannot read the tape written by GNU cpio. Do I have a chance to > retrieve data from behind the I/O error ? Did you use the "-I" option to specify the input device to cpio? If you redirected the input directly from the tape device, at least ...

  1. #1

    Default Re: cpio: I/O error - chance to cirvent ?

    Dr. Zimmermann wrote:
    > Our data is backup'd using cpio (GNU cpio version 2.4.2) to a DAT tape
    > (3 volumes). Trying to restore leads to an 'cpio error: I/O error`
    > during
    > restore of the second volume. SUN cpio has an option to skip over
    > corrupt
    > data but cannot read the tape written by GNU cpio. Do I have a chance to
    > retrieve data from behind the I/O error ?
    Did you use the "-I" option to specify the input device to cpio?
    If you redirected the input directly from the tape device,
    at least Solaris "cpio" will print that error message for
    multiple volumes. In other words: did you use "cpio -i -I /dev/rmt/0"
    instead of "cpio -i < /dev/rmt/0"?

    Heiner
    --
    ___ _
    / __| |_ _____ _____ _ _ Heiner STEVEN <heiner.stevennexgo.de>
    \__ \ _/ -_) V / -_) ' \ Shell Script Programmers: visit
    |___/\__\___|\_/\___|_||_| [url]http://www.shelldorado.com/[/url]

    Heiner Steven Guest

  2. #2

    Default Re: cpio: I/O error - chance to cirvent ? Partly SOLVED

    Heiner Steven wrote:
    > Dr. Zimmermann wrote:
    >
    > > Our data is backup'd using cpio (GNU cpio version 2.4.2) to a DAT tape
    > > (3 volumes). Trying to restore leads to an 'cpio error: I/O error`
    > > during
    > > restore of the second volume. SUN cpio has an option to skip over
    > > corrupt
    > > data but cannot read the tape written by GNU cpio. Do I have a chance to
    > > retrieve data from behind the I/O error ?
    >
    > Did you use the "-I" option to specify the input device to cpio?
    > If you redirected the input directly from the tape device,
    > at least Solaris "cpio" will print that error message for
    > multiple volumes. In other words: did you use "cpio -i -I /dev/rmt/0"
    > instead of "cpio -i < /dev/rmt/0"?
    >
    > Heiner
    > --
    > ___ _
    > / __| |_ _____ _____ _ _ Heiner STEVEN <heiner.stevennexgo.de>
    > \__ \ _/ -_) V / -_) ' \ Shell Script Programmers: visit
    > |___/\__\___|\_/\___|_||_| [url]http://www.shelldorado.com/[/url]
    Hello Heiner,

    I didn't used the '-I ' option to specify the tape device - Thnx for that
    suggestion.
    Unluckily using this option does not make any difference.

    BUT: in a kind of 'accident' I came to the following 'insight' - Sun cpio
    requires the setting
    of the LANG variable must be the same during retrieve as during store ...
    Otherwise You'll get a message about 'invalid headertype' and Sun cpio stops
    with an error.

    I regard this is an error instead of a feature ... at least the message is
    misleading.
    In the manpage there is nothing to be found about this behaviour.

    Now I'm trying Sun cpio with the -k option to get behind the read error ...
    press Your thumbs :-)

    Roger

    --
    Dr. Roger Zimmermann *** Institute of Physiology, Hamburg
    Martinistra/3e 52 D-20246 Hamburg Tel.: /40 42803 5351
    -------------------------------- Fax.: /40 42803 4920
    R.Zimmermann=at=Uke.Uni-Hamburg.de // roz=at=snafu.de
    PGP-ID: Roger Zimmermann
    KeyPrint=83 16 D1 82 06 71 16 60 6F 61 95 65 BB CA 02 E0



    Dr. Zimmermann Guest

Similar Threads

  1. cpio
    By cljlk in forum Linux / Unix Administration
    Replies: 0
    Last Post: April 12th, 05:26 PM
  2. CPIO Restore
    By Concerned3 Netizen in forum Linux / Unix Administration
    Replies: 2
    Last Post: January 4th, 08:32 AM
  3. #17790 [Com]: symlinks cirvent open_basedir restrictions
    By devdas_kantee at hotmail dot com in forum PHP Development
    Replies: 1
    Last Post: September 19th, 09:24 AM
  4. Replies: 0
    Last Post: September 8th, 02:55 PM
  5. Can't cpio IDS.CPI
    By Alexey Sonkin in forum Informix
    Replies: 3
    Last Post: August 1st, 06:36 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