LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2015, 10:48 AM   #1
brian_a
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Rep: Reputation: Disabled
cpio sco v linux


backup file created on sco unix v 5.07 try to extract in red Linux 6.5
gives an error "cpio: premature end of file"

is there a switch for cpio I can use ?

when I type " file cpiofilename " it returns ASCII cpio archive (pre-SVR4 or odc)

any help ?
 
Old 10-30-2015, 06:56 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,691

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by brian_a View Post
backup file created on sco unix v 5.07 try to extract in red Linux 6.5
gives an error "cpio: premature end of file"

is there a switch for cpio I can use ?
Yes: http://linux.die.net/man/1/cpio
Quote:
when I type " file cpiofilename " it returns ASCII cpio archive (pre-SVR4 or odc)

any help ?
The help is in the output of the file command.
 
1 members found this post helpful.
Old 10-30-2015, 08:48 AM   #3
brian_a
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
thanks used Hodc on cpio and this worked
 
Old 12-04-2015, 12:39 AM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,188

Rep: Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184Reputation: 1184
I see this is resolved but I think it is worth mentioning a potential issue, in case you encounter problems in the future (an associate of mine encountered a similar issue a few years back).

Be aware that SCO made some extensions to CPIO to support very large files (up to 9EB), that it will invoke if individual members are greater than the limits of odc. GNU cpio and BSD cpio do not understand these extensions. However, the The Heirloom Toolchest cpio and pax utilities do.

If you have a suitable build environment, you can compile up a copy of Heirloom CPIO as follows:

Code:
wget http://downloads.sourceforge.net/project/heirloom/heirloom/070715/heirloom-070715.tar.bz2
tar xf heirloom-070715.tar.bz2
cd heirloom-070715
sed -i 's/^SUBDIRS/X/;2 a SUBDIRS = build libcommon libuxre cpio' makefile
make makefiles && make -C libcommon && make -C libuxre && make -C cpio
strip --strip-unneeded cpio/cpio
You can then copy "cpio/cpio" (the executable) to a suitable location. Perhaps '/usr/local/bin/heirloom-cpio' ?

You should also read the man page for Heirloom cpio. It contains a lot of information about the various cpio and tar formats (their differences and their capabilities) as well as explaining how this version of cpio works. There is also a local copy in the package (cpio/cpio.1) if you prefer, which you could copy to '/usr/local/man/man1/heirloom-cpio.1'.

Note: To explicitly specify the SCO extended format, you can use "-H sco".

Last edited by ruario; 12-04-2015 at 03:31 AM. Reason: improved build steps
 
  


Reply


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
[SOLVED] Extracting an SGI IRIX cpio archive on Linux (also Cray and SCO) ruario Other *NIX 1 01-08-2013 12:47 AM
LXer: SCO vs. Linux: Darl McBride set to buy SCO's mobile arm LXer Syndicated Linux News 0 03-01-2010 10:01 PM
LXer: SCO vs. Linux: SCO majority owner wants to finance SCO LXer Syndicated Linux News 0 02-21-2010 01:20 PM
LXer: SCO vs. Linux: SCO funds for SCO investor LXer Syndicated Linux News 0 07-22-2009 10:40 AM
LXer: SCO v Linux: renewed actions to cease and desist against SCO in Germany LXer Syndicated Linux News 0 11-10-2007 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:06 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration