LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-11-2012, 01:54 AM   #1
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Rep: Reputation: Disabled
How to extract a ASCII cpio archive(SVR4 with no CRC)


Hello friends,

There is a ASCII cpio archive(SVR4 with on CRC), would you please tell me how many methods or utitlities can be used for extracting such kind of archive? the more, the better.

Code:
root@benjamin-virtual-machine:/GPL/tmp/ramdisk# file out64c 
out64c: ASCII cpio archive (SVR4 with no CRC)
root@benjamin-virtual-machine:/GPL/tmp/ramdisk#
Any reply will be appreciated. Thank you all.
 
Old 11-11-2012, 03:47 PM   #2
kakaka
Member
 
Registered: Sep 2003
Posts: 382

Rep: Reputation: 87
Have you tried the -c option of cpio?
 
Old 11-12-2012, 12:50 AM   #3
chinabenjamin66
Member
 
Registered: Mar 2012
Location: Shenzhen Chian
Posts: 73

Original Poster
Rep: Reputation: Disabled
Hello kakaka,

Thank you for your advice, I have tried those options. And then it works.
Code:
root@gpl-vm:/GPL/test/ufsd/pearl/PX-8690/7800HB-german-20111011/ramdisk# cpio -i -F out64c 
541 blocks
root@gpl-vm:/GPL/test/ufsd/pearl/PX-8690/7800HB-german-20111011/ramdisk# ll
total 608
drwxr-xr-x 8 root root   4096 Nov 12 07:19 ./
drwxr-xr-x 7 root root   4096 Nov 12 06:10 ../
drwxrwx--x 2 root root   4096 Nov 12 07:19 data/
-rw-r--r-- 1 root root    118 Nov 12 07:19 default.prop
drwxr-xr-x 2 root root   4096 Nov 12 07:19 dev/
-rwxr-x--- 1 root root 107736 Nov 12 07:19 init*
-rwxr-x--- 1 root root   1677 Nov 12 07:19 init.goldfish.rc*
-rwxr-x--- 1 root root  17429 Nov 12 07:19 init.rc*
-rw-r--r-- 1 root root 276736 Nov 12 06:19 out64c
drwxr-xr-x 2 root root   4096 Nov 12 07:19 proc/
-rw-r--r-- 1 root root 169052 Oct 11  2011 ramdisk.img
drwxr-x--- 2 root root   4096 Nov 12 07:19 sbin/
drwxr-xr-x 2 root root   4096 Nov 12 07:19 sys/
drwxr-xr-x 2 root root   4096 Nov 12 07:19 system/
root@gpl-vm:/GPL/test/ufsd/pearl/PX-8690/7800HB-german-20111011/ramdisk#
Thank you kakaka.
 
  


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
Appending to an existing CPIO archive metallica1973 Linux - Server 1 11-01-2011 03:14 PM
cpio archive does not restore directories. pobman AIX 1 11-24-2008 09:31 PM
CPIO hangs - doesn't extract archive zivota Red Hat 1 04-21-2006 02:58 AM
how to copy-in cpio archive to temp directory jxi Slackware 2 03-08-2006 05:32 PM
How to use cpio to extract a cpio archive? linx win Debian 4 06-17-2005 02:53 PM


All times are GMT -5. The time now is 01:17 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