Extract .img content to folder and rewrite (Linux)

提取。img内容文件夹和重写(Linux)

问题 (Question)

Is there any Linux command or utility (in terminal) that can extract the contents of a .img file to a folder so that I can make some changes to the contents and then rewrite to another .img file? I tried gunzip and mount but no success.

Can anyone help me?

有没有Linux命令或工具(终端),可以提取的内容.img文件到一个文件夹,这样我可以做一些修改内容,然后重写到另一个地方.img文件吗?我试着gunzipmount但是没有成功。

谁能帮我吗?

最佳答案 (Best Answer)

depending on what was used to create the .img file, you may just need to mount the file see this link.

How to mount an ".img" file (extracted from modem firmware) on Linux?

这取决于是用于创建。img文件,您可能只需要挂载文件查看此链接。

如何挂载一个”。img”文件(提取调制解调器固件)在Linux上?

本文翻译自StackoverFlow,英语好的童鞋可直接参考原文:http://stackoverflow.com/questions/23449159