Mount guestfs filesystem images readonly
Some filesystem images can't be mounted unless they are mounted readonly. I was working with recent android system.img
files and their filesystem now has the EXT4_FEATURE_RO_COMPAT_SHARED_BLOCKS
flag set, which I understand precludes mounting rw
. Running diffoscope on this file would fail with:
RuntimeError: mount: mount exited with status 32: mount: /sysroot: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error.
Edited by Chris Lamb