Unable to mount /data - Can't flash using MiFlash - Looking for help. :(

Sephema

New member
Jul 4, 2016
2
0
0
Every time I open TWRP(V2.8.6.0) this message shows on the log.

E: Could not mount /data and unable to find crypto folder.
E: Unable to mount '/data'
E: Unable to recreate /data/media folder
Updating partition details...
E: Unable to mount '/data'
..done
E: Unable to mount storage.
E: Unable to mount /data/media during GUI startup.
Full SELinux support is present.
E: Unable to mount /data/media/TWRP/.twrps when trying to read settings file.
E: Unable to mount '/data'
MTP Enabled
E: Unable to mount '/data'
I am trying to restore from Stock Partition but it seems the update doesn't fix the partition because of this error.
I think my userdata.img is broken but I don't know how to fix it. I even tried to flash using MiFlash but I wasn't able to flash because of my current partition. I can access fastboot, recovery, adb, and OTG. Can someone please help me with this problem. I've been trying to search for a fix for this problem for a looooong time. :(
 

ashish289

Senior Member
Feb 25, 2014
151
18
38
jaipur
Every time I open TWRP(V2.8.6.0) this message shows on the log.



I am trying to restore from Stock Partition but it seems the update doesn't fix the partition because of this error.
I think my userdata.img is broken but I don't know how to fix it. I even tried to flash using MiFlash but I wasn't able to flash because of my current partition. I can access fastboot, recovery, adb, and OTG. Can someone please help me with this problem. I've been trying to search for a fix for this problem for a looooong time. :(
try this
reboot in fastboot mode and type these cmds in adb/fastboot
fastboot erase system
fastboot erase userdata
fastboot erase cache

and then flash fastboot miui rom using miflash
 
Last edited:

Sephema

New member
Jul 4, 2016
2
0
0
try this
reboot in fastboot mode and type these cmds in adb/fastboot
fastboot erase system
fastboot erase userdata
fastboot erase cache

and then flash fastboot miui rom using miflash
I've tried it but it fails.

Here are the results.

E:\platform-tools>fastboot erase system
******** Did you mean to fastboot format this partition?
erasing 'system'...
FAILED (remote: failed to erase partition
)
finished. total time: 0.011s

E:\platform-tools>fastboot erase cache
******** Did you mean to fastboot format this partition?
erasing 'cache'...
OKAY [ 0.006s]
finished. total time: 0.007s

E:\platform-tools>fastboot erase userdata
******** Did you mean to fastboot format this partition?
erasing 'userdata'...
FAILED (remote: failed to erase partition
)
finished. total time: 0.011s

E:\platform-tools>
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone