解压未完成的 gzip...可能吗?

发布于 2024-08-14 17:46:01 字数 244 浏览 7 评论 0原文

所以我只花了一周时间运行模拟,但必须关闭计算机才能移动它(我知道这很糟糕)。由于数据的大小,正在生成的数据通过管道传输到 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

琴流音 2024-08-21 17:46:01

如果文件末尾“丢失”,那么恢复 gzip 压缩的内容应该很容易,

zcat yourfile.gz > yourfile

或者

cat yourfile.gz |gunzip >yourfile

It's should be easy to recover what's been gzipped providing it's the end of the file that's 'missing'

zcat yourfile.gz > yourfile

Or

cat yourfile.gz |gunzip >yourfile
許願樹丅啲祈禱 2024-08-21 17:46:01

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文