Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-04-2009, 02:18 PM   #1
LQ Newbie
Registered: May 2009
Posts: 20

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

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

Last edited by nekkro-kvlt; 06-04-2009 at 03:14 PM.
Old 06-04-2009, 07:05 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

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


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 08:29 PM
Copy Dir Paris Heng Linux - General 1 03-20-2009 09:25 PM
Unable to copy a 6 GB file with cpio SvenJ Linux - General 4 03-17-2006 06:28 AM
how to copy-in cpio archive to temp directory jxi Slackware 2 03-08-2006 04:32 PM
VSFTPD - Access/Root dir problem lil_drummaboy Linux - Networking 1 05-05-2003 12:32 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration