手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

linux解包打包三星system.img

时间:2024-10-11 22:24:49

1、首先我们需要下载ext4_utils工具包以及rar解压工具,地址如下图

linux解包打包三星system.img
linux解包打包三星system.img

2、然后我们安装rar解压工具用来解压ext4_utils.rar工具包,首先用tar -zxvf解压rarlinux.tar.gz

linux解包打包三星system.img

3、解压完成后进入解压目录rar,然后使用make编译,编译完成使用make install安装

linux解包打包三星system.img

4、接下来我们通过命令rar e ext4_utils.rar解压,得到ext4_utils.tar和make_ext4fs.tar两个tar包

linux解包打包三星system.img

5、这里我们解压make_ext4fs.tar可以得到三个工具,make_ext4fs、simg2img和mkuserimg.sh,这里我们将三个工具移动到/usr/bin下面

linux解包打包三星system.img
linux解包打包三星system.img

6、接下来我们通过/usr/bin/simg2img /mnt/share_windows/system.img.ext4 /m荏鱿胫协nt/share_windows/newsys.img,然后创建一个mount点,mkdir /rom,然后mount -o loop /tmp/newsys.img /rom,这样我们就可以在/rom下随便修改system.img中的文件了。

linux解包打包三星system.img

7、修改完成后,我们通过/usr/水瑞侮瑜bin/mkuserimg.sh -s /rom /tmp/system.img ext4 tempdir 1024M进行打包,这样就完成了我们的修改了。

linux解包打包三星system.img
© 手抄报圈