解压未完成的 gzip...可能吗?
所以我只花了一周时间运行模拟,但必须关闭计算机才能移动它(我知道这很糟糕)。由于数据的大小,正在生成的数据通过管道传输到 gzip 中进行压缩,但由于模拟尚未完成,我无法解压缩 .gz 文件。我们已经开始了模拟,但我想知道是否有可能恢复一些数据,因为了解我们迄今为止所生成的数据会非常有帮助。在我看来,由于数据可以通过 gzip 传入和传出,所以压缩是动态的,而不是基于整个数据,所以理论上应该可以获取一些数据,但是快速谷歌搜索什么也没产生,所以我想看看是否有人有任何建议。
So I just spent a week running a simulation, but the computer had to be turned off to move it (terrible, I know). The data that was being produced was being zipped due to it's size by piping it into gzip, but since the simulation wasn't finished, I can't unzip the .gz file. We have since started the simulation over, but I was wondering if it would be possible to recover some of the data since a view of what we have produced so far would be really helpful. It seems to me that since data can be piped in and out of gzip, the zipping is on the fly and not based on the data as a whole so theoretically it should be possible to get some of the data out, but a quick google search produced nothing so I thought I would see if anyone had any suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果文件末尾“丢失”,那么恢复 gzip 压缩的内容应该很容易,
或者
It's should be easy to recover what's been gzipped providing it's the end of the file that's 'missing'
Or
GZip 是块级压缩 - 如果您不介意编写一些代码来使解压缩器忽略 CRC 失败,我怀疑您可以取出一些数据
GZip is a block-level compression - if you don't mind writing some code to make the decompressor ignore CRC failures, I suspect you can get some of the data out