If you have experienced something like:
Failed to mount ‘/data’ (Invalid argument)
or
Failed to wipe dalvik
or
Unable to mount storage
This might be due to stock rom encryption which does not play well with dm-verity in TWRP and orangefox. If you want to fix this situation,
- Connect the phone to PC
- Boot phone to fastboot
- Open Terminal/CMD with fastboot binary in path.
- Type command
fastboot erase userdata - Enjoy

