Solved
HELP === HELP === HELP!
I need to format (!) my /data partition in TWRP (3.4.0.0-mauronofrio) since I made some mistakes after flasshing a new custom ROM to my Redmi Note 8T (willow) and now try to restore my nandroid (for MSMXtended XQ13, A10).
I successfully flashed the new custom rom (CrDroid 7.3, A11) and succesfully booted the rom. Then I flashed from TWRP magisk-v21.4.zip (without issues) and rebooted. Back in TWRP I realized that I flashed the ROM errounessly without disabling encryption (all folders in /data/media have cryptic names like "8nfut+wi3ZV..." and so far and so on). Thus, my idea was to reflash CrDroid followed by flashing DFE and for doing so to format (!) beforehand /data. But HERE my problems begun: if trying to format /data this failed with several red lines. I flashed the DFE.zip (hoping for a miracle which surely did not happen).
Thus I tried to reflash the CrDroid.zip withouth formatting /data beforehand but ended in a bootloop, thus powered off and booted again to TWRP.
To make my dilemma perfect I did not enable USB debugging (or authorized my PC as accepted device for USB debugging) when I booted into the new ROM (thus a check via "adb devices" does not show my phone).
My hope is to be somehow able to format /data so that I can restore my old nandroid or can again install CrDroid.
For this I also tried to wipe /data (not possible) in TWRP and also to format /data from curently f2fs to a different file system (via TWRP/Wipe/Advanced Wipe/Repair of Change File System) or to choose here "Repair File System". I also opened the Terminal within TWRP (but honestly do not know if I could solve the problem from here).
To make it short: nothing helped me to get /data formatted.
And since not being an expert I fear that I have now a serious problem...
After all these useless attempts the result if trying to format /data is like this:
---
E: Unable to decrypt FBE device
E: PageManager::LoadFileToBuffer failed to open '/data/system/storage.xml' - (Invalid argument)
Updating partition details ...
Error opening: '/data/misc/recovery" (Operation not permitted)
Error opening '/data/misc/bluedroid" (Operation not permitted)
[and so far and so on for several lines, then]
...done
Full SELinux support is present.
MTP Enabled
Wiping data without wiping /data/media...
Error opening: '/data' (Operation not permitted)
Error changing file system.
Updating partition details ...
Error opening: '/data/misc/recovery" (Operation not permitted)
Error opening '/data/misc/bluedroid" (Operation not permitted)
[and so far and so on for several lines, then]
...done
Failed to unmount '/data' (Device or resource busy)
cd "/data" && cd.. && mv "/data" "dataold" process ended with ERROR: 1
rm -rf "/data" process ended with Error: 1
Failed to unmount '/data" (Device or resource busy)
Updating partition details ...
Error opening: '/data/misc/recovery" (Operation not permitted)
Error opening '/data/misc/bluedroid" (Operation not permitted)
[and so far and so on for several lines, then ending with]
Error opening: '/data/ssh/empty' (Opeation not permitted)
...done
IS THERE ANYBODY WHO CAN GIVE ME SOME HELP TO GET MY PHONE WORKING AGAIN? I GUESS IF I CAN FORMAT /data I WILL BE ABLE TO RESTORE MY OLD ROM.
Thanks in advance!!!
Edit: Thanks to the solution proposed by breadpitt I could solve the problem!