LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 12-29-2012, 05:57 PM   #1
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
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 09:25 AM. Reason: grammar
 
Old 01-08-2013, 01:47 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello,

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

Kind regards,

Eric
 
  


Reply

Tags
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 06:12 PM
Wassup with SGI Irix Alexvader Other *NIX 5 02-15-2010 12:09 AM
A question about Irix and SGI Servers veritas General 1 05-08-2004 08:58 PM
mirroring ftp from RedHat 9.0 to SGI IRIX dwater Linux - Software 18 04-08-2004 09:07 PM
SGI workstation running Irix 6.5 njacobsen Linux - General 1 11-30-2001 12:04 PM


All times are GMT -5. The time now is 10:47 PM.

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