[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 03:14 PM.
|