Questions tagged [cpio]
16 questions
49
votes
6 answers
What is the difference between TAR vs CPIO archive file formats?
I am curious and did a bit of reading but still have questions.
What makes CPIO different than TAR? I was told in another question that tar is for pulling together many files into 1 archive which then is usually gzip'd or bzip'd.
Also I was told TAR…
AtomicPorkchop
- 3,334
21
votes
5 answers
cpio basic extract command, 'tar xzvf' equivalent?
I've received a Unix software distribution as a compressed cpio file. What's the best command to extract the files?
Mark Harrison
- 1,092
9
votes
1 answer
extract a few members from tar archive and pipe through network
edit: I want to extra member01 and member02 and directory blah/
tarball_1.tar.gz contains directory test/ with 20 files. I want to extract only member test/member01 and test/member02 and directory blah/ and copy them to another "remote_host" using…
Felipe Alvarez
- 2,154
7
votes
1 answer
How to extract concatenated cpio archive?
% find a/ | cpio -o | gzip -c > alpha.gz
% find b/ | cpio -o | gzip -c > bravo.gz
% cat alpha.gz beta.gz > charlie.gz
% gunzip charlie.gz
Now I get file charlie, which should be a concatenated cpio archive. But cpio -id < charlie only extract the…
Magicloud
- 185
- 1
- 7
7
votes
3 answers
Copy file in GNU/Linux with progress bar and rate limiting
Is there any good tool in GNU/Linux that copy files like cp, but also shows progress and limits speed (and changes limit without interruption) like pv?
Prototype:
find source_directory | cpio -H newc -o | pv -s `du -bs source_directory/ | awk…
Vi.
- 17,755
4
votes
1 answer
Cygwin cpio doesn't work on Windows
I have just installed cygwin on Windows 7 x64, and I have installed all the packages I need. I have installed cpio, and I am attempting to extract a file with the following command line in the cygwin console:
cpio -i -H newc…
Rex Whitten
- 174
2
votes
1 answer
systemd-boot LUKS2 crypted arch won't boot: Kernel panic cannot open root device, never asked for password on Arch Linux
Goal
I'm trying to install Arch Linux, using systemd-boot, a plain & simple /boot partition, and a LUKS2-crypted / containing btrfs.
Problem
The system encounters a kernel panic during every boot.
I believe some config to be at fault.
Config
Here…
Tanja
- 138
2
votes
2 answers
Initrd file CPIO archive x-cpio Type of File How to Recompile?
How to recompile the file type of CPIO-archive (application/x-cpio)
I am able to unpack its contents with below command.
unmkinitramfs initrd .
But not able to recompile.
How can I Achive this?
PRATAP-PANABAKA
- 127
- 1
- 15
1
vote
1 answer
cpio VS tar - what the best archive solution in order to compress hundred of directories to one file
in my Linux machine under /var/Recording directory.
I have hundreds directories and each directory there are also directories and files include hard links and soft link .
I want to compress all directories under /var/Recording directory to create…
maihabunash
- 489
- 2
- 6
- 16
0
votes
1 answer
Error trying to copy files with find and cpio
I have a bash script that I use to periodically make a backup of proofs (PDFs & JPGs) from a server I work on. I put together the script a couple of years ago and it used to work however the script is now resulting in 0 block error. I've been using…
juliushibert
- 153
0
votes
1 answer
Filenames stating with ./ in cpio files created with mac
I would like to use my mac to create cpio files to be used in linux. The filenames seem to be "./name" when created in mac. When the cpio is created in linux name is just "name". The sw I need to use has some problems with that so my question is: is…
Tero
- 1
0
votes
1 answer
using rsync/cpio to backup 28TB filesystem
I need your help in finding a best tools/command to backup a huge(140k directories= 24TB) filesystem. I used cpio to copy 80% but my system is out of memory i was forced to kill cpio half way. Our system is SUSE LINUX Enterprise Server9…
AlBouazizi
- 559
0
votes
0 answers
Cloning xfs filesystem using cpio?
I need your help in cloning 28TB xfs filesystem I used the following script:
/backuptacs.sh >> /backuptacs.log
And the script is:
#!/bin/ksh
echo "++++++++++++++++ Start Date is `date`+++++++++++++ "
cd /tacs1/conq/hhl_imgs
find . -depth -print |…
AlBouazizi
- 559
0
votes
1 answer
How to transform nested subfolders into a single subfolders
Whats a good way of “collapsing“ subfolders of a specified directory into a single folders whose name is a join the subfolders?
So given this directory…
Ashley Coolman
- 597
0
votes
1 answer
Why does cpio say "WARNING! These file names were not selected" when copying a large number of files?
For over 10 years, I've been using this strategy to copy a large number of files between UNIX filesystems:
cd source_directory
find . -depth -print | cpio -pdm /path/to/destination_directory
It works like a champ. However, I'm now getting this…
royco
- 489