Can't mount /data, /cache, and /sdcard I have a Xiaomi Redmi 2, (device ID is 2014813) and there is a serious problem going on with it. 

This morning I saw a message from the phone, saying that the full encryption was unsuccessful, and all my data is inaccessible now, so I have to do a factory reset. I booted up into recovery, tried to do a factory reset, but it said that it couldn't mount /data, /cache, and even /sdcard. 

I tried flashing in fastboot with MiFlash, without any luck, it fails at setting up the partition table. ADB sideload works, but I can't do much with it, because even if I install a ROM with it, I can't boot that ROM up. 

I NEVER wanted to do an encryption on this device, I don't know why did it do that.
There are a couple ways to do this:


Using adb

create a folder named external_sd in /sdcard/  with your file manager

Use  this code in commamd prompt (adb) (to make this folder to mount sd card in /sdcard/):


su

    mount -o bind /mnt/emmc /sdcard/external_sd



Alternatively via terminal (need busybox installed and root):

busybox mount --bind /mnt/emmc /mnt/sdcard/external_sd (as su)


Credits

https://forum.xda-developers.com/showthread.php?t=1724278