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

Given that it's Ubuntu you have gnu cpio:

cd <newdir>
cpio -id --no-absolute-filenames < archive.cpio

Thanks, it worked :slight_smile: