How to mount encrypted /data partition in recovery mode?

the /e/-recovery then won’t help, it can’t mount the userdata filesystem. With most phones you can just boot into another bootloader temporarily without flashing. You could check if TWRPs kernel is different and can mount userdata → https://dl.twrp.me/FP4/twrp-3.7.0_11-0-FP4.img.html

This thread had users with locked bootloaders that didn’t have that option, thus the dead end when the recoveries kernel wasn’t mounting.