<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cpio portability in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957588#M814288</link>
    <description>I cannot check it now, but use to follow this ways:&lt;BR /&gt;&lt;BR /&gt;1- Copy the whole file to disk&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rmt/xxx bs=51200 of=/tmp/cpio_file&lt;BR /&gt;&lt;BR /&gt;now you cat try  cat /tmp/cpio_file | cpio -itvc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2- dd if=/dev/rmt/xxx bs=51200 | cpio -itcv&lt;BR /&gt;&lt;BR /&gt;3- man pax. pax is a portable tar and cpio compatible archiver. If i recall well there is a flag to change to buffer size.&lt;BR /&gt;</description>
    <pubDate>Wed, 23 Apr 2003 17:27:08 GMT</pubDate>
    <dc:creator>Carlos Fernandez Riera</dc:creator>
    <dc:date>2003-04-23T17:27:08Z</dc:date>
    <item>
      <title>cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957582#M814282</link>
      <description>Hello,  &lt;BR /&gt;From HP-UX 11.i cannot read tapes generated in a system UNIX Svr4 of NCR, the command to create the tapes was the following one:  &lt;BR /&gt;find * -print | cpio -ocv -C 51200&amp;gt; /dev/rmt/cptape3.  &lt;BR /&gt;  &lt;BR /&gt;Does somebody have some idea?  &lt;BR /&gt;  &lt;BR /&gt;Thank you.</description>
      <pubDate>Wed, 23 Apr 2003 14:09:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957582#M814282</guid>
      <dc:creator>Jorge Prado_1</dc:creator>
      <dc:date>2003-04-23T14:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957583#M814283</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm guessing that you are running into a problem with the block size.  If the -C option in your NCR cpio specifies the block size in bytes, your records will be 51200 bytes and the HP cpio probably can't deal with that.&lt;BR /&gt;&lt;BR /&gt;You can try the '-B' option on the HP side.  It specifies a record size of 5120 bytes, which is one-tenth the size of the record you specified on the SVR4 side.  If that doesn't work, you might have to try making the tape on the NCR again and specify a block size of 5120.&lt;BR /&gt;&lt;BR /&gt;What error message are you getting from the HP cpio command?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Apr 2003 14:18:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957583#M814283</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-04-23T14:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957584#M814284</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Are you receving any message when try to restore the files?&lt;BR /&gt;Have you tried to use -R option durig restore?&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Wed, 23 Apr 2003 14:18:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957584#M814284</guid>
      <dc:creator>LucianoCarvalho</dc:creator>
      <dc:date>2003-04-23T14:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957585#M814285</link>
      <description>Common problem. cpio has (too) many options and some implementations do not conform to the standard(s).&lt;BR /&gt;&lt;BR /&gt;If possible, try to switch to tar(1).&lt;BR /&gt;&lt;BR /&gt;If that is not possible, then try to switch to pax(1), at least on the reading side.&lt;BR /&gt;&lt;BR /&gt;If that is not possible, do the following and post the results:&lt;BR /&gt;&lt;BR /&gt;mt -t /dev/rmt/...nb&lt;BR /&gt;dd if=/dev/rmt/...n of=/tmp/record1 bs=1024k count=1&lt;BR /&gt;dd if=/dev/rmt/...n of=/tmp/record2 bs=1024k count=1&lt;BR /&gt;ll /tmp/record1 /tmp/record2&lt;BR /&gt;file /tmp/record1&lt;BR /&gt;file /tmp/record2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Apr 2003 14:22:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957585#M814285</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-04-23T14:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957586#M814286</link>
      <description>When I do a man on cpio HPUX 10.20 I don't see the -v option although the rest look ok. I did notice some caveats and would suggest that you man cpio to see if any exist. For example, it can't handle files bigger than 2 gb and userids greater than 60k.</description>
      <pubDate>Wed, 23 Apr 2003 14:24:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957586#M814286</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2003-04-23T14:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957587#M814287</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;And if all that doesn't work, or if you can't get the tapes cut on the NCR box again, you might try downloading the GNU cpio.  The GNU cpio should let you specify the block size as a multiple of 5120 byte blocks, so it might have a better chance of working.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Apr 2003 14:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957587#M814287</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-04-23T14:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957588#M814288</link>
      <description>I cannot check it now, but use to follow this ways:&lt;BR /&gt;&lt;BR /&gt;1- Copy the whole file to disk&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rmt/xxx bs=51200 of=/tmp/cpio_file&lt;BR /&gt;&lt;BR /&gt;now you cat try  cat /tmp/cpio_file | cpio -itvc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2- dd if=/dev/rmt/xxx bs=51200 | cpio -itcv&lt;BR /&gt;&lt;BR /&gt;3- man pax. pax is a portable tar and cpio compatible archiver. If i recall well there is a flag to change to buffer size.&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Apr 2003 17:27:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957588#M814288</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2003-04-23T17:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957589#M814289</link>
      <description>hello again,  &lt;BR /&gt;when I try of  reads the tape with the command: &lt;BR /&gt;# cpio -it and&lt;BR /&gt;# cpio -it B  the system gives the following message:  &lt;BR /&gt;# Out of phase--get help&lt;BR /&gt;&lt;BR /&gt;thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Apr 2003 17:48:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957589#M814289</guid>
      <dc:creator>Jorge Prado_1</dc:creator>
      <dc:date>2003-04-23T17:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957590#M814290</link>
      <description>You need to change to block size, and hpux cpio only works with 512 bytes or 5K ( -B).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note bs parameter is wrong, corret is ibs=51200&lt;BR /&gt;2- dd if=/dev/rmt/xxx ibs=51200 | cpio -itcv &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Apr 2003 17:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957590#M814290</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2003-04-23T17:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957591#M814291</link>
      <description>Please follow my earlier advice (and that of the others) and report back with the results.&lt;BR /&gt;&lt;BR /&gt;As to the "Out of phase--get help" errors: What you did *cannot* work. You did not use the "c" (lower case "c")option on the read, while you did use it on the write. You should use it symmetrically, i.e. if (not) used on the write, then you should (not)use it on the read.&lt;BR /&gt;&lt;BR /&gt;However adding "c" will not really help, because your main problem is probably the record/block size, which *probably* is 51200 bytes, while standard (i.e. also HP-UX) cpio uses 512 bytes (no "B" option) or 5120 (*not* 51200) bytes ("B" option).&lt;BR /&gt;&lt;BR /&gt;What you can try (to list the tape) is:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rmt/0m ibs=51200 obs=5120 | cpio -icBvt</description>
      <pubDate>Thu, 24 Apr 2003 05:38:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957591#M814291</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2003-04-24T05:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: cpio portability</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957592#M814292</link>
      <description>Thanks to all for their attendance.  &lt;BR /&gt;I didn't respond before, because as you they know the tests with tapes they are overdue.  &lt;BR /&gt;  &lt;BR /&gt;The solution found it when lowering a cpio of GNU. (you that it is not the most elegant, but it was the easiest).&lt;BR /&gt;&lt;BR /&gt;regard..&lt;BR /&gt;Jorge Prado T</description>
      <pubDate>Tue, 29 Apr 2003 13:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-portability/m-p/2957592#M814292</guid>
      <dc:creator>Jorge Prado_1</dc:creator>
      <dc:date>2003-04-29T13:56:24Z</dc:date>
    </item>
  </channel>
</rss>

