Operating System - HP-UX
1834674 Members
2329 Online
110069 Solutions
New Discussion

cpio for files over 2GB - patch available?

 
Houston Kemper
Occasional Advisor

cpio for files over 2GB - patch available?

Hello forum,

Is anyone aware of a patch for cpio so it can copy files over 2GB in size?

Running on HPUX 11.0

Thanks,

Houston
8 REPLIES 8
Michael Tully
Honored Contributor

Re: cpio for files over 2GB - patch available?

No there isn't. Here is a quote I found.

"Because of industry standards and interoperability goals, cpio does not support the archival of files larger than 2GB or files that have user/group IDs greater than 60K. Files with user/group IDs greater than 60K are archived and restored under the user/group ID of the current process."

Suggest you look at GNU tar for portability or utilise other tools like fbackup/dump
Anyone for a Mutiny ?
Brian M Rawlings
Honored Contributor

Re: cpio for files over 2GB - patch available?

Depending on the type of file (compressible or not), and how much bigger than 2GB, I have had good luck with a command line that compresses the file before piping it to cpio. That is only a stop-gap measure, not a real fix, of course. Michael has it right, if you need to do this on a regular basis, you need to switch to a modern utility without the 2GB restriction.
We must indeed all hang together, or, most assuredly, we shall all hang separately. (Benjamin Franklin)
H.Merijn Brand (procura
Honored Contributor

Re: cpio for files over 2GB - patch available?

GNU tar and GNU cpio. Both available on my ITRC pages:

https://www.beepz.com/personal/merijn/ or <>http://www.cmve.net/~merijn/

[ADMIN: The above links are no longer valid]


Enjoy, have FUN! H.Merijn

Enjoy, Have FUN! H.Merijn
T G Manikandan
Honored Contributor

Re: cpio for files over 2GB - patch available?

The old inbuilt backup utilities like the tar,cpio does not support copying files over 2GB.

You have to use the GNU version of those.
you can also pick them from here

http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.25
Keith Lapidus
Occasional Advisor

Re: cpio for files over 2GB - patch available?

I have to say, I ran into this problem and downloaded the GNU cpio package from the HP-UX porting and archive center. What found is that this version of cpio does not work on files greater than 2GB. Just thought I would let people know.
erics_1
Honored Contributor

Re: cpio for files over 2GB - patch available?

Houston,

There is a tar patch released for 11.x to allow for files up to 8gb.

PHCO_29229 (11.0)
PHCO_28992 (11.11)

Enhancement Request:tar has been enhanced to support
backup of files upto 8GB from the earlier 2GB


Regards,
Eric
Michael Steele_2
Honored Contributor

Re: cpio for files over 2GB - patch available?

Try GNU cpio.

* cpio, tar and pax now support >2 GB file access. Please do not use
the GNU command gtar on > 2 GB files since they still have the
32-Bit limit:

http://hpux.cict.fr/hppd/hpux/Gnu/cpio-2.5/

[ADMIN: The above link is no longer valid]

Support Fatherhood - Stop Family Law
Massimo Bianchi
Honored Contributor

Re: cpio for files over 2GB - patch available?

Hi,
if you need a very fast tool, you can think of using "dd", which supports over 2G files

Massimo