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
Solaris 8 - Asks for current root password when trying to change root password. tferrazz SUN Solaris 8 04-07-2009 02:28 PM
Ho to copy root profile? fraydey AIX 1 06-27-2008 10:48 AM
How to run a new shell with copy of current shell declarations? alex_5161 Shell Programming and Scripting 9 06-02-2008 01:48 AM
script to rename files with current date and copy it. logic0 UNIX for Dummies Questions & Answers 6 05-01-2007 05:13 AM
cpio problem livortiz UNIX for Dummies Questions & Answers 3 06-16-2003 04:25 PM

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

Join Date: May 2009
Posts: 5
[resolved]CPIO Problem, copy to the root dir / instead of current dir

HI all, I got a CPIO archive that contains a unix filesystem that I try to extract, but it extract to the root dir / unstead of current dir, and happily it detects my file are newer otherwise it would have overwrited my system's file!

I tried all these commands

cpio -i --make-directories < archive
cpio -i --make-directories < ./archive
sudo cpio -i --make-directories < archive
sudo cpio -i --make-directories < ./archive

I'm in my home dir, on ubuntu and an ext4 partition

Any ideas ?

I done exactly the same thing with the cygwin cpio and it works fine :s

Last edited by nekkro-kvlt; 06-04-2009 at 04:19 PM..
  #2 (permalink)  
Old 06-04-2009
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,206
Given that it's Ubuntu you have gnu cpio:
Code:
cd <newdir>
cpio -id --no-absolute-filenames < archive.cpio
  #3 (permalink)  
Old 06-04-2009
nekkro-kvlt nekkro-kvlt is offline
Registered User
  
 

Join Date: May 2009
Posts: 5
Thanks, it worked
Sponsored Links
Reply

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:28 PM.


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