Problems with extracting files using cpio
Jim Rogers
jimr at hp-lsd.COS.HP.COM
Fri Sep 14 02:40:55 AEST 1990
You should check to see if your version of cpio has the "R" option.
On our system this option automatically resynchronizes cpio when it
goes "Out of phase".
To quote from our manual (HP-UX):
"The diagnostic message 'Out of phase' indicates that cpio could not
successfully read its particular 'magic number' in the header.
Without the R option specified, cpio will fail and return exit code 2.
With the R option, cpio will try resyncing automatically.
(Resyncing means that cpio tries to find the next good header in the
archive and continues processing from there.) If cpio tries to
resynchronize from being 'Out of phase', it will return exit code 1.
If resynchronization fails, try changing header mode (c option)
or byte swapping the header (P or s options)."
Jim Rogers
Hewlett Packard Company
More information about the Comp.unix.questions
mailing list