Questions tagged [cpio]

cpio is a general file archiver utility and its associated file format.

28 questions
0
votes
0 answers

ARM car Head Unit - extract rootfs from cpio

Got an ARM powered head unit and im trying to get the rootfs (ramdisk) out of the kernel image. I found uImage header and was able to extract the zImage. Using binwalk i found gzip data in the zImage, which I also extracted. I get a file called…
Tertomium
  • 1
  • 1
0
votes
1 answer

Trying to run rpm2cpio with java

I've tried running the command in java but with no luck rpm2cpio | cpio -imdv This is my current Code public static void decompress() { System.out.println("Decompression has started"); Archiver archiver =…
0
votes
0 answers

Calculte checksum of file located in an cpio archive

I have a kernel file located inside a cpio archive and I would like to calculate it's sha256sum. For that I redirected the archive output to the standard output and piped through sha256sum. I get the sum by using awk. KERNEL_CHECKSUM=$(cpio…
Jerome H
  • 36
  • 2
0
votes
1 answer

custom rpm pkg takes very long time to install and causes cpio error at the end

The rpm package which i created takes long time to install. It contains only database file of Berkely db format and size 2.2GB. Below is my RPM spec #AutoReq: no AutoReqProv: no %define PYTHON /usr/bin/python %define RPM_BUILD_DIR…
Darshan
  • 94
  • 1
  • 8
0
votes
1 answer

Extract cpio.gz with two archives inside

I've got cpio.gz created with command: cat a.cpio.gz b.cpio.gz > c.cpio.gz Now i want to extract this c.cpio.gz file to b.cpio.gz and a.cpio.gz. How can i achive that?
bercik
  • 816
  • 1
  • 9
  • 18
0
votes
0 answers

Copying files using cpio - why do I get an "Invalid cross-device link" error?

For copying large files, I would like to try replacing in my shell scripts cp by cpio, because I hope to be able to fine-tune the performance by specifying explicit buffer sizes. The current development environment is Zsh on Cygwin on Windows 7, but…
user1934428
  • 19,864
  • 7
  • 42
  • 87
0
votes
0 answers

Extract RPM into a single fat/uber JAR?

I created an RPM using the Maven RPM Plugin. When I try to extract the RPM USING rpm2cpio foo.rpm | cpio -idmv, I get multiple jars - one for the actual application and one jar for each dependency. Is there a way for me to extract the RPM into a…
Ben
  • 127
  • 1
  • 10
0
votes
0 answers

Using CPIO without a pipeline or with powershell redirection?

Apologies for an ultra-stupid question. I'm trying to use cpio with powershell, and the redirections are... painful. I've read through several stackoverflow…
mbourgon
  • 1,286
  • 2
  • 17
  • 35
0
votes
2 answers

Python subprocess call hungs when running rpm2cpio

I'm running the below command using python subprocess to extract files from rpm. But the command failes when the rpm size is more than 25 - 30 MB. Tried the command using Popen, call, with stdout as PIPE and os.system as well. This command is…
Amal Ts
  • 857
  • 1
  • 6
  • 28
0
votes
1 answer

Change ownership in cpio archive without root

I need to add files to an initramfs file(I own the file as this is for some other device), however I do not have root permissions on my development machine. The usual way would be to unpack the initramfs, add files, change owner to root and pack…
Leonidaz0r
  • 180
  • 10
0
votes
1 answer

Too many copies of folders and files

I think everyone is familiar with this script: find /dir1/dir2/dir3/dir4/* -mtime +5 -exec cp -rf {} /dirA/dirB/dirC/ \; My problem is that I want the contents of dir4 that are older than 5 days, which will be more subdirectories and their…
0
votes
2 answers

Find and copy all images preserving the folder structure

I am trying to find and copy all the images from one location to another preserving the folder structure. I have tried using the following command: sudo find . -type f -exec file {} \; | awk -F: '{ if ($2 ~/[Ii]mage|EPS/) print $1}' | cpio…
karruma
  • 768
  • 1
  • 12
  • 32
0
votes
1 answer

Need a little help, I need correct syntax for grep and copy

I currently have 3TB of data on a disk with small to medium files in hundreds of folders. I need to find certain text files witch contain certain words ( more than one word ). I've already tried grep-ping for them. This works as it prints the path…
DeWarrior
  • 1
  • 1
1
2