Questions tagged [cpio]

17 questions
31
votes
8 answers

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). Likewise, cpio -t < file.cpio takes just as long to…
Alex Reynolds
  • 453
  • 2
  • 9
  • 20
10
votes
4 answers

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 /dev; would cpio handle this job without…
kagali-san
  • 1,921
  • 5
  • 17
  • 20
6
votes
5 answers

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 better to use cpio and when to use tar? Similar…
Tim
  • 1,467
  • 3
  • 25
  • 38
3
votes
1 answer

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 -d -H newc --no-absolute-filenames -F…
Selivanov Pavel
  • 2,126
  • 3
  • 23
  • 47
3
votes
2 answers

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 should be fast. In case I have some corruption on…
Philip
  • 203
  • 1
  • 4
2
votes
1 answer

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 -------------------------------------------------------------------------------- 0 …
jdevelop
  • 143
  • 5
2
votes
2 answers

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.y.z.rpm | grep Version | awk ... But this isn't a…
nolandda
  • 193
  • 1
  • 9
1
vote
1 answer

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 this issue. Any idea why it's happening and how…
Berlin
  • 382
  • 1
  • 4
  • 14
1
vote
1 answer

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 know which version. The backups were definitly…
A.Martinez
  • 43
  • 3
1
vote
2 answers

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 command cpio -icvdu < myarchive.cpio It gives me…
TiCL
  • 329
  • 4
  • 11
1
vote
1 answer

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 more auspex servers in existance), the backups…
user1250465
  • 101
  • 4
1
vote
2 answers

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 week. For the most part, this works fine. However,…
goldPseudo
  • 1,106
  • 1
  • 9
  • 15
0
votes
1 answer

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 this time the distro in question is RedHat 7.3. …
Pyromancer
  • 129
  • 3
  • 11
0
votes
1 answer

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. It goes through and gets into the /home directory…
Deldran
  • 11
  • 3
0
votes
1 answer

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 issue, I've got 3 test files (test1, etc) in the…
koo
  • 23
  • 3
1
2