开发者

solaris tar for files > 8G

开发者 https://www.devze.com 2023-02-02 17:02 出处:网络
I made an archive of 19G size in Solaris10 w开发者_JAVA技巧ith tar E option. But now neithertar tvf nor tar xvf on the tarball works!! How can I extract the files?Have you tried GNU tar (gtar)? There

I made an archive of 19G size in Solaris10 w开发者_JAVA技巧ith tar E option. But now neither tar tvf nor tar xvf on the tarball works!! How can I extract the files?


Have you tried GNU tar (gtar)? There is a solaris SFW package for this SUNWgtar or try SunFreeware.

From the tar(1) man page:

 See largefile(5) for the description of the behavior of  tar
 when  encountering  files greater than or equal to 2 Gbyte (
 2^31 bytes).

On my Solaris 10 system largefile(5) says that tar is largefile-aware.

Perhaps truss can help:

truss -a -f -o /tmp/truss.out tar xf foo.tar

(please post truss.out if it's not too long, or perhaps just the tail of it otherwise).

EDIT: I just stumbled across patches 138621-02/138622-02, "SunOS 5.10: tar patch" from June 2010. In particular, fixes bug "6578528 /usr/bin/tar dumps core when extracting large files". (This is not a Recommended or Security patch so could have been missed).

0

精彩评论

暂无评论...
验证码 换一张
取 消