Visit Jeremy's Blog.
Go Back > Forums > Other *NIX Forums > Other *NIX
User Name
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.


  Search this Thread
Old 12-29-2012, 04:57 PM   #1
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,188

Rep: Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184
Extracting an SGI IRIX cpio archive on Linux (also Cray and SCO)

This is not a question just a heads up to others. I was recently in contact with someone who needed helping retrieving some old files from a cpio archive created on IRIX. I decided to post a solution here because while there are similar threads on various forums on the Internet they don't ever seem to have solutions (and I am not a member on those forums). My hope is that this thread will get picked up by the search engines and the next person who encounters such a problem will find his/her solution.

The summary of the issue is that cpio on IRIX supports extensions to the old binary cpio format that allows it to handle larger files and more device bits, when using the '-K' switch during archive creation. However these extensions are not supported by most other cpio implementations (e.g. GNU cpio and bsdcpio/libarchive). Attempting to extract files from a SGI/IRIX cpio archive that includes such extensions will result in errors (e.g. "premature end of file" with GNU cpio).

However the cpio and pax utilities provided by The Heirloom Toolchest understand these extensions and will therefore be able to retrieve files from such archives.

As a side note the Heirloom cpio and pax utilities can also open cpio archives that use similar (but not identical) types of extensions used on Cray and SCO systems.

P.S. If anyone involved with libarchive and or GNU cpio ever happens to stumble across this it would be nice if you would consider adding support for these extensions as well (I am making the assumption that they are not overly complex) as it would no doubt help others since The Heirloom Toolchest (whilst very cool) is not widely known.

Last edited by ruario; 12-30-2012 at 08:25 AM. Reason: grammar
Old 01-08-2013, 12:47 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Thanks for sharing! I'm sure it will come in handy. Off the Zero Reply List.

Kind regards,



cray, sco, sgi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting the contents of a folder in a CPIO archive to another folder Refractor Linux - Software 4 07-10-2012 05:12 PM
Wassup with SGI Irix Alexvader Other *NIX 5 02-14-2010 11:09 PM
A question about Irix and SGI Servers veritas General 1 05-08-2004 07:58 PM
mirroring ftp from RedHat 9.0 to SGI IRIX dwater Linux - Software 18 04-08-2004 08:07 PM
SGI workstation running Irix 6.5 njacobsen Linux - General 1 11-30-2001 11:04 AM > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 01:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration