simg: sparse ext4 image
$> PATH=$PATH:/data/tool/android/android-10.0.0_r2/out/host/linux-x86/bin/
$> simg2img system.img system.img.raw
$> mkdir /mnt/system -p
$> sudo mount system.img.raw /mnt/system -o ro
$> sudo mount -o remount,rw /mnt/system/
$> cd /mnt/system/
mount: /mnt/system: wrong fs type, bad option, bad superblock on /dev/loop7, missing codepage or helper program, or other error.
mount 里添加-o ro 选项,也就是以只读方式挂载,然后重新挂载读写就会出现下面的问题
mount: /mnt/system: cannot remount /dev/loop7 read-write, is write-protected
被写保护了
声明:转载请注明出处,原文地址:shlu's note