[Xiaomi Mi 4i] stiw47:
Hi guys,

+1 from me :)

I've totally screwed up ferrari.

Scenario: I was on Resurrection Remix 5.8.5 For some reason, I've started storage encryption. Probably it wasn't successful, and on next reboot, I've got error "Decryption unsuccessful, your password is ok, but data partition is corrupted, blah, blah, blah. I've successful rescued my storage files:

boot into TWRP:
adb pull /dev/block/mmcblk0p36
then, mounted mmcblk0p36 partition file under Linux on my PC (example):
sudo mkdir /mnt/data
sudo mount /home/stiw47/mmcblk0p36 /mnt/data
Whoala, few files was corrupted, but all from android internal storage (my personal files) was rescued.

Ok. After this, I've performed factory reset on phone, but device going to fastboot, not in Android OS. TWRP says that /data cannot be mounted.

I flashed latest MIUI from fastbot

Reboot

device going to fastboot, not in Android OS. TWRP says that /data, /system and /cache cannot be mounted.

Variable :) : In following text, "same" is equal to "device going to fastboot, not in Android OS. TWRP says that /data, /system and /cache cannot be mounted."

I've tried to flash fastboot ROM zilion times - same

Tried to flash from MI PC Suite - same (MI Suite giving "success" info)

XiaoMI Flash Tool - same (tool giving success info)

Was want to flash with QFIL (Qualcomm Flash Image Loader), after several Qualcomm Xiaomi driver installation, founded here and there over the internet, on two different PCs - No COM port detected, both in QFIL and in Device Manager

[*]Wipe from TWRP not working:​

[*]Failed to mount '/system' (Invalid argument)

[*]Failed to mount '/cache' (Invalid argument)

[*]Failed to mount '/data' (Invalid argument)​

[*]Format Data from TWRP not working:​

[*]Failed to mount '/system' (Invalid argument)

[*]Failed to mount '/cache' (Invalid argument)

[*]Failed to mount '/data' (Invalid argument)​

[*]Repair or change file system from TWRP not working:​

[*]Failed to mount '/system' (Invalid argument)

[*]Failed to mount '/cache' (Invalid argument)

[*]Failed to mount '/data' (Invalid argument)​

[*]Mount system cache data from TWRP not working:​

[*]Failed to mount '/system' (Invalid argument)

[*]Failed to mount '/cache' (Invalid argument)

[*]Failed to mount '/data' (Invalid argument)​

[*]TWRP => Advanced => Terminal:​

Example:
mount -o remount,rw /dev/block/mmcblk0p36 /data

giving error:
mount: '/data' not in /proc/mounts
(same for adb)

/proc/mounts is pretty empty (wtf)

adb shell
cat /proc/mounts

rootfs / rootfs rw,seclabel 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=949708k,nr_inodes=237427,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime,gid=3009,hidepid=2 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,seclabel,relatime,size=949708k,nr_inodes=237427 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0

And here is the question :)

Can someone, please, upload /proc/mounts file here, I would like to do:

adb push mounts /proc/mounts

After that, I will try to reformat partitions with parted.

Of course, if someone has some more elegant solution, I'm listening, thanks in advance.

Notice: Sorry cause kilometer post, I was want to full explain that I've really tried every usual method to alive a phone. I suppose that first ~6 answers and propose would be - "Flash fastboot ROM", but this not helping in this stage.