Questions tagged [cpio]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
823 views

Updating a single file in a CPIO archive

I have a CPIO archive with the Linux image on it. With binwalk I can see that there are the following chunks: DECIMAL HEXADECIMAL DESCRIPTION ------------------------------------------------...
user avatar
  • 133
2 votes
2 answers
372 views

How to extract rpm preamble

I am working on a non-redhat based machine and I need to extract Version: x.y.z and Release: a.b.c information from some .rpms that pass across the machine. Typically one would do: rpm -qip ./Foo.x....
user avatar
  • 193
3 votes
1 answer
3k views

cpio incorrectly unpacking initrd in Ubuntu Xenial

I am trying to unpack initrd image: # file /boot/initrd.img-4.11.0-14-generic /boot/initrd.img-4.11.0-14-generic: ASCII cpio archive (SVR4 with no CRC) # mkdir /tmp/initrd; cd /tmp/initrd # cpio -i -...
user avatar
1 vote
1 answer
3k views

Mysql 5.7 on Centos 7 - cpio: read failed - No such file or directory

I tried to install mysql 5.7 on centos 7 and I got the below error, I was able to install successfully more than one time on different machines with centos 7, but this is the first time I encountered ...
user avatar
  • 382
0 votes
1 answer
1k views

How do I extract the initrd when the usual cpio -i -m produces gibberish?

I am attempting to follow the instructions here https://superuser.com/questions/1134160/how-to-get-old-linux-versions-to-boot-after-p2v-on-vmware for getting another P2Vd old Linux system to boot, but ...
user avatar
1 vote
1 answer
93 views

Restore data from tapes made on old irix system (on linux)

Hey guys I'm looking for some help. I'm trying to get the data off of some old SDLT tapes probably 11+ years old. I don't know anything about them besides they were made on an irix system and I do not ...
user avatar
0 votes
1 answer
171 views

CPIO ulimit reached error

I have been googling this without much luck. I hope someone can help here. We have a customer running SCO Unixware 7 machine. This machine does a daily backup to tape. These have stopped running. ...
user avatar
  • 11
1 vote
2 answers
285 views

Does CPIO produce platform dependant archives?

I made a CPIO archive with following command on Solaris 11 (SPARC): find . | cpio -ov >/tmp/myarchive.cpio I copied it to Intel based Solaris 11 machine and tried to extract using the following ...
user avatar
  • 329
1 vote
1 answer
108 views

auspex LFS backups

I have some backup tapes which existed on an AUSPEX file server. The backups were written to tape with the SunOs version of the CPIO command. Now that I need to restore them, (of course there are no ...
user avatar
10 votes
4 answers
11k views

How to move Linux to another partition?

I need to make a copy of a working linux system, which (being contained in /, and the new place is prepared in /mnt/sdb5) seems to contain considerable amount of hard-, soft-links and special files in ...
user avatar
  • 1,901
0 votes
1 answer
103 views

Making archive with the current date as folder name

I am looking to make an archive of my root directory, but only certain folders/files. So far, this is what I have, can you please tell me what I'm doing wrong? For the purposes of figuring out the ...
user avatar
  • 23
0 votes
2 answers
467 views

HP-UX -> Linux incremental remote backup

I've the need to setup a differential backup process from a range of remote HP-UXes to a central RHEL5 server. I'd happily go with rsync, problem is, stock HP-UX 11.11 has no built-in rsync and I don'...
user avatar
3 votes
2 answers
193 views

Backup file format that enables easy access of specific files?

I need to upgrade a Server and there have to make a compressed backup of a lot of directories. The question is: Which format should I use? tar.gz, cpio? Both compression and decompression processes ...
user avatar
  • 203
6 votes
5 answers
5k views

cpio VS tar and cp

I just learned that cpio has three modes: copy-out, copy-in and pass-through. I was wondering what are the advantages and disadvantages of cpio under copy-out and copy-in modes over tar. When is it ...
user avatar
  • 1,447
0 votes
2 answers
195 views

Fedora Core yum update cpio error

Any idea why I'm getting these errors when running: yum update http://pastie.org/private/7x4pez9duzxvmb6lgeyrgq I've never had a problem with that command in the past.
user avatar
  • 141
1 vote
2 answers
421 views

Automating a multi-tape cpio backup

Currently, I have a simple backup process in which a script is run daily via cron. If there's a tape in the drive, it will use cpio to backup critical files, with a full system backup done once a ...
user avatar
  • 1,086
30 votes
8 answers
16k views

Is there a smarter tar or cpio out there for efficiently retrieving a file stored in the archive?

I am using tar to archive a group of very large (multi-GB) bz2 files. If I use tar -tf file.tar to list the files within the archive, this takes a very long time to complete (~10-15 minutes). ...
user avatar