tar打包时报错:Reached end-of-file before expected的解决方法
来源:互联网 发布:计划网络图绘制软件 编辑:程序博客网 时间:2024/04/28 04:21
----------------------------------------------------------------------------
---- 本文为andkylee个人原创,请在尊重作者劳动成果的前提下进行转载;
---- 转载务必注明原始出处: http://blog.csdn.net/andkylee
--- 2010-05-12 11:18:43
---- 关键字: tar aix ulimit jfs2 打包 压缩 解压
----------------------------------------------------------------------------
在ibm-aix5.3下用tar打包一个文件夹时报错:tar: 0511-194 Reached end-of-file before expected.
用的命令是:tar -cvf /tmp/sybase12503.tar /sybase/sybase12x
解决方法:
执行ulimit -f 返回结果为:2097151,说明系统对用户所能用的文件大小限制为:2097151*512=1G
此时查看没有成功打包完成的/tmp/sybase12503.tar文件,发现其大小正好是:1073741312 (bytes).
可通过改 /etc/security/limits文件中的fsize来设置为无限制:
为使 /etc/security/limits 文件的更改生效,用户必须注销当前登录会话并重新登录。
重新登录后,执行ulimit -a 返回结果为:unlimited。此时更改已经生效,对用户所能用的文件大小不加限制。但是,
无论 ulimit 设置如何,AIX 上的标准文件系统都有2GB文件大小限制,如果需要建大于2GB的文件需要启用大文件选项创建文件系统。
然后,再次执行:tar -cvf /tmp/sybase12503.tar /sybase/sybase12x
成功将/sybase/sybase12x打包成/tmp/sybase12503.tar。
补充:在网上搜到用tar打包的文件超过2G的时候,也是报同样的错误。此时就是文件系统的原因了。应该不是jfs2或者big file enable的jfs文件系统。
本机的/tmp文件系统为jfs2,应该可以支持2G以上的文件。
- tar打包时报错:Reached end-of-file before expected的解决方法
- AIX的tar错误:0511-194 Reached end-of-file before expected
- vc++中“fatal error C1075: end of file found before the left brace '{'”错误的解决方法
- Expected </IfModule> before end of configuration apache
- C中“fatal error C1075: end of file found before the left brace '{'”错误的几种可能解决方法
- freemarker.core.ParseException: Unexpected end of file reached
- freemarker.core.ParseException:Unexpected end of file reached
- gzip: stdin: unexpected end of file tar
- IDEA myBatis的mapper.xml 提示<expression> expected,got 'where' 或者 unexpected end of file
- error C1075: end of file found before the left brace '{'的错误
- end of file found before the left brace c1075
- ruby on rails模拟HTTP请求发生错误:end of file reached
- syntax error: unexpected end of file解决方法
- tar解压出错:gzip: stdin: unexpected end of file的解决
- gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpect
- : gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive
- 用department的linux sever安装软件,解压tar.gz时遇到gzip,unexpected end of the file
- vc++6.0 编译时报错Fatal Error C1010 unexpected end of file while looking for precompiled header directive
- 有关VA_LIST的用法
- server 2003 directx被禁用
- java.lang.Exception: Socket bind failed:
- Google招聘游戏人才有意涉足游戏领域
- xmlhttprequest返回数据 url中文传参
- tar打包时报错:Reached end-of-file before expected的解决方法
- ACCESS和MSSQL-如何随机读取数据库记录
- 删除确认 JavaScript
- 怎么使程序与服务器上的oracle11g进行通信呢-安装oracle11g客户端
- 项目综合管理--项目章程和范围说明书
- HeadFirst 设计模式学习笔记2--观察者模式
- Oracle - Schema Objects
- 转PHP程序员的40点陋习 完全版
- 无限级分类查询一个栏目下的所有子栏目