I have a squashfs based install on a SD card for a APU4 system, and I messed up the configuration...
I cannot reach the console using SSH.
I have misplaced my null-modem cable
I can take the SD card out, but I do not know where the config files are located...
I see the /dev/sda1 is the boot partition,
/dev/sda2 is the rootfs in a ro-squashfs...
Where is the overlay partition located?
Is it possible to mount the overlayfs with the squash-fs on another x86-64 system like a rpi4, over a SD card reader ?
root@OpenWrt:~# losetup -alv
NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE DIO LOG-SEC
/dev/loop0 0 3014656 0 0 /sda2 0 512
So basically they have a "hidden partition", which starts at an offset of 3014656 from the start of sda2 !!!!
Next I load up my original card on my RPI4 running buster (can be any linux system) and attach the SD card on a USB reader.. it shows up all the partitions...