反转 mkimage 的效果以恢复原始 gzip 压缩文件
我们为公司的特定嵌入式设备进行开发,其中一部分是制作初始根磁盘,通过网络引导通过以太网加载到设备上。我们遇到了一些问题,因此,包含初始根磁盘内容的原始文件夹及其备份都丢失了,但我们仍然拥有通过 gzip 压缩 ramdisk 内容创建的 initrd 映像它已作为本地循环设备安装,然后在 gzip 压缩文件上运行 mkimage。有没有办法撤销 mkimage 的影响并获取原始 gzip 内容,以便我们可以恢复原始图像?
We develop for a specific embedded device at our company, and part of that is making initial root disks that get loaded onto the devices over ethernet via netboot. We've experienced some problems, and as a result, the original folder with the contents of the initial root disks was lost along with its backups, but we do still have the initrd images, that have been created by gzipping the contents of a ramdisk that's been mounted as a local loop device, and then running mkimage on the gzipped file. Is there any way to undo the effects of mkimage and obtain the original gzipped content so that we can recover the original images ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你说的是u-boot的mkimage吗?如果是这样,您可以通过删除前 64 个字节来恢复原始文件。
Are you talking about u-boot's mkimage? If so, you can recover the original by removing the first 64 bytes.