LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools Search this Thread
Old 06-04-2009, 03:18 PM   #1
nekkro-kvlt
LQ Newbie
 
Registered: May 2009
Posts: 18
Thanked: 0
[resolved]CPIO Problem, copy to the root dir /


[Log in to get rid of this advertisement]
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..
nekkro-kvlt is offline     Reply With Quote
Old 06-04-2009, 08:05 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: Atlanta, GA
Distribution: Ubuntu
Posts: 8,356
Thanked: 17
Thanks for posting the solution to the problem! It's so rare that people bother to post solutions that they find on their own.
Matir is offline     Reply With Quote

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
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 05:09 PM.

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.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration