1833090 Members
2813 Online
110050 Solutions
New Discussion

Re: cpio error

 
Anthony khan
Frequent Advisor

cpio error

Hi,

I am trying to run cpio cammand but getting the following error,

cpio -icvt < /dev/rmt/0m
Out of phase--get help
Perhaps the "-c" option shouldn't be used

Can someone have an idea how to resolve this issue

Thanks
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: cpio error

Check the man page for cpio under DIAGNOSTICS:

Out of phase--get help
Perhaps the "c" option should[n't] be used

cpio -i could not read the header of an archived file. The
header is corrupt or it was written in a different format.
Without the R option, cpio returns an exit code of 2.



Pete

Pete
Helen French
Honored Contributor

Re: cpio error

what about using "R" option with cpio?

# man cpio (and check R option)
Life is a promise, fulfill it!
Adam J Markiewicz
Trusted Contributor

Re: cpio error

Yep.

Did your test.
Try it yourself:

echo /dev/null | cpio -o | cpio -icvt
1 blocks
Out of phase--get help
Perhaps the "-c" option shouldn't be used

So, do as it wish:

echo /dev/null | cpio -o | cpio -ivt
1 blocks
1 blocks

Check description of '-c' option in 'man cpio'.

Good luck

Adam
I do everything perfectly, except from my mistakes
Anthony khan
Frequent Advisor

Re: cpio error

The backup was done on FTX unix box using cpio -ocBV and i am trying to restore on hpux 10.20 or 11, I have run cpio -icvtR < /dev/rmt/0m but it doesn't work any suggestion
John Poff
Honored Contributor

Re: cpio error

Hi,

On the few flavors of Unix I've fooled with, the -B option for cpio specifies a 5120 byte block size. That option is valid for the cpio in HP-UX also. Have you tried something like this:?

cpio -icvtB < /dev/rmt/0m

JP