The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
.
google unix.com



UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CPIO Problem, copy to the root dir / instead of current dir nekkro-kvlt UNIX and Linux Applications 2 06-04-2009 05:20 PM
Please help with cpio on HP-UX soestx HP-UX 3 01-13-2006 06:07 PM
cpio kok UNIX for Dummies Questions & Answers 2 08-12-2004 09:57 AM
cpio problem livortiz UNIX for Dummies Questions & Answers 3 06-16-2003 05:25 PM
Help with cpio rooh UNIX for Dummies Questions & Answers 2 04-08-2003 07:41 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-08-2009
nekkro-kvlt nekkro-kvlt is offline
Registered User
  
 

Join Date: May 2009
Posts: 5
CPIO Problem

Hi all, I have a trouble with CPIO:
I have a file called asa802. I extract it with the following command:

Quote:
bastien@bastien-laptop:~/asaemu/asa802-k8_1$ cd uncompressed/
bastien@bastien-laptop:~/asaemu/asa802-k8_1/uncompressed$ rm -rf *
bastien@bastien-laptop:~/asaemu/asa802-k8_1/uncompressed$ cpio -id --no-absolute-filenames < ../asa802
Then I tried to rebuild archive:
Quote:
bastien@bastien-laptop:~/asaemu/asa802-k8_1/uncompressed$ find . | cpio -o > asa802_cpio
61020 blocks
bastien@bastien-laptop:~/asaemu/asa802-k8_1$ ls -la
total 157924
drwx------ 3 bastien bastien 4096 2009-06-08 14:36 .
drwxr-xr-x 5 bastien bastien 4096 2009-06-08 14:16 ..
-rw-r--r-- 1 bastien bastien 31251968 2009-06-08 14:18 asa802
-rw-r--r-- 1 bastien bastien 31242240 2009-06-08 14:36 asa802_cpio
drwxr-xr-x 12 bastien bastien 4096 2009-06-08 14:34 uncompressed
Filesizes are not identical !


As I saw these messages:
Quote:
pio: dev/ram0: Cannot mknod: Opération non permise
cpio: dev/mem: Cannot mknod: Opération non permise
cpio: dev/kmem: Cannot mknod: Opération non permise
cpio: dev/null: Cannot mknod: Opération non permise
cpio: dev/port: Cannot mknod: Opération non permise
cpio: dev/hda: Cannot mknod: Opération non permise
...
I tried:
Quote:
bastien@bastien-laptop:~/asaemu/asa802-k8_1$ cd uncompressed/
bastien@bastien-laptop:~/asaemu/asa802-k8_1/uncompressed$ rm -rf *
bastien@bastien-laptop:~/asaemu/asa802-k8_1/uncompressed$ sudo cpio -id --no-absolute-filenames < ../asa802
And messages disappears, but filesizes are still not identical

Tried also without the -h newc parameter, but same problem.
Do you know why ? The problem is not that the archive has a different size, but when I boot with the original archive (it's a unix FS, i boot it with QEmu), it works, and the second case got an error. I think it's maybe I extract with --no-absolutes-filenames, and when I zip it again, the filenames are wrong, but how should I fix it, as I can't extract it in my FS, it would overwrite some of my system files :s

Thanks for your help

Last edited by nekkro-kvlt; 06-08-2009 at 09:57 AM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0