Does CPIO produce platform dependant archives?

Posted by TiCL on Server Fault See other posts from Server Fault or by TiCL
Published on 2012-12-17T08:44:51Z Indexed on 2012/12/17 11:04 UTC
Read the original article Hit count: 280

Filed under:
|

I made a CPIO archive with following command on Solaris 11 (SPARC):

 find .  | cpio -ov >/tmp/myarchive.cpio

I copied it to Intel based Solaris 11 machine and tried to extract using the following command

cpio -icvdu < myarchive.cpio

It gives me following error:

cpio: Not a cpio file, bad header.
1 errors

The MD5SUM hash matches and I can extract it on another SPARC machine.

My question, does CPIO produce platform dependant output? Is there any way to convert it?

I cannot use TAR at this moment, because the directory I am archiving has long symbolic links that are skipped by TAR command

© Server Fault or respective owner

Related posts about solaris

Related posts about cpio