I am trying some research work on Wear OS and I want to mount the system partition with R-W permissions or at least if I can mount the system partition manually in Linux and do the required changes. I have already rooted the WearOS Emulator with Magisk and its working find but due to missing of Unzip and other essential binaries its not fully functional.
File Information:
Disk system.img: 4.01 GiB, 4306501632 bytes, 8411136 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 60373DE2-****************
Device Start End Sectors Size Type
system.img1 2048 4095 2048 1M Linux filesystem
system.img2 4096 8409087 8404992 4G Linux filesystem
Commands tried:
sudo mount -o ro,loop,offset=2097152 system.img /mnt/system
[sudo] password for user:
mount: /mnt/system: wrong fs type, bad option, bad superblock on /dev/loop5, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.
I also tried with losetup but didn't work.
If anyone has a better solution please help.