cpio: I/O error - chance to circumvent ?

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

  1. #1

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

    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.steven@nexgo.de>
    \__ \ _/ -_) V / -_) ' \ Shell Script Programmers: visit
    |___/\__\___|\_/\___|_||_| [url]http://www.shelldorado.com/[/url]

    Heiner Steven Guest

  2. Similar Questions and Discussions

    1. cpio
      If system is running, could I sue cpio command to archive file? And, I have an archive xxx.cpio which are archive from /etc directory. How to open...
    2. CPIO Restore
      universe question We have a customer that got some kind of damage to a Universe system which is backed up by the following command.... cd...
    3. #17790 [Com]: symlinks circumvent open_basedir restrictions
      ID: 17790 Comment by: devdas_kantee at hotmail dot com Reported By: tozz at kijkt dot tv Status: Closed Bug...
    4. [Tip/Bug report] Tricks to circumvent count-update bugs in a relation hierarchy
      Dear Listeners: I built a small 4-file freeware open source solution meant for housekeeping of an unlimited number of physical keys for an...
    5. Can't cpio IDS.CPI
      Try to do # cpio -icvdumB <IDS.CPI ------------------------------------------ Alexey Sonkin Senior Database Administrator sending to...
  3. #2

    Default Re: cpio: I/O error - chance to circumvent ? 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.steven@nexgo.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

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