LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-04-2009, 03:18 PM   #1
nekkro-kvlt
LQ Newbie
 
Registered: May 2009
Posts: 18

Rep: Reputation: 0
[resolved]CPIO Problem, copy to the root 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

edit:
There's the right syntax:
cpio -id --no-absolute-filenames < archive

Last edited by nekkro-kvlt; 06-04-2009 at 04:14 PM.
 
Old 06-04-2009, 08:05 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 98
Thanks for posting the solution to the problem! It's so rare that people bother to post solutions that they find on their own.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Root Dir Change and New Dir Added issue in CentOS 5 Ginnyz Linux - Server 2 06-01-2009 09:29 PM
Copy Dir Paris Heng Linux - General 1 03-20-2009 10:25 PM
Unable to copy a 6 GB file with cpio SvenJ Linux - General 4 03-17-2006 07:28 AM
how to copy-in cpio archive to temp directory jxi Slackware 2 03-08-2006 05:32 PM
VSFTPD - Access/Root dir problem lil_drummaboy Linux - Networking 1 05-05-2003 01:32 AM


All times are GMT -5. The time now is 01:27 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration