Can't fix TWRP not mounting internal storage - Android Q&A, Help & Troubleshooting

Hello,
I own a Xiaomi Redmi Note 10 Pro (sweet). Its bootloader is unlocked and I use TWRP 3.6.1 as recovery. The problem is that when I install a rom (EvolutionX), everything works until I reboot to TWRP. At that point, my recovery is unable to mount the phone's internal storage and it shows as 0 bytes. I have followed a few help topics already, which stated that the solution was to change the data partition format to Ext2, then back to Ext4. However, this makes my phone unable to restart to system. The problem is that when I format my data, the data partition is by default formated as f2fs. I'm guessing that any other data format makes it unable to boot.
So the problem is:
When data is formatted to Ext4, TWRP is able to mount my phone's internal storage and install roms. However, in that case, my phone won't boot to system.
In the other case, my data is formatted to f2fs, which makes my phone totally functional, but my recovery useless. Which means I can't root my phone or update it.
What could I do?
Thanks in advance.

are you mixing up file system type with encryption? if your android is 12, TWRP is not able to decrypt (yet). then just disable encryption and format userdata f2fs (unencrypted).
otherwise claim it to TWRP maintainer he forgot f2fs support.

Related

When ever data is formated ext4 rom asks for a encryption pin on boot. [Solved]

Back in the day I had my phone encrypted with data as a ext4 partition, I switched to using f2fs for a long time.
Now that I've tried to go back to using data as a ext4 partition while booting android asks for a invalid decryption password
using a really old pin number (I've had it encrypted several times since then using f2fs with different pin numbers) from the first
time I encrypted my partition while it was ext4.
Now when ever I wipe my data partition and try and use it as ext4 while booting android asks for a decryption pin which I can enter
but then complains that the filesystem it is trying to decrypt is corrupt.
I've tried doing a data format in twrp but it automatically formats it f2fs which doesn't solve the problem since
the problem only shows up while data is formated ext4.
I've tried every piece of wisdom I can find on the internet.
factory reset,
formatting all partitions,
dd front and back of userdata and then make_ext4 on userdata,
twrp format data,
recovery --wipe_data --set_encrypted_filesystem=off (from within twrp with the partition formated ext4),
format f2fs then boot up and reset and format ext4,
etc.
How do I give data the ultimate clean slate for being formatted ext4?
Or where is the remnant of the old encryption info stored from the first time I encrypted my phone?
I can format my data partition f2fs but frankly I was a little stunned when I saw the kind of overhead that filesystem has,
its space using overhead is way more then I want to have in a filesystem, or any filesystem I've ever seen.
Also is the problem not what I think it is?
Faced the same behaviour on my xt1524. Would be interesting to know if there is a solution for this
Is there a way to generate a new encryption from within the recovery?
Since it won't boot with data formatted as ext4.
Formatting it ext4 and then putting a new valid encryption on it?
From what I've found it, if the UI to unlock the partition on boot had a cancel button the system would boot as normal.
Unfortunately there is no cancel button on the unlock encrypted partition screen on our device. =/
Tried flashing a different recovery and using it wiping tools on data.
official twrp-3.0.2-0-surnia.img.
mkfs-f2fs -t 0 /dev/block/mmcblk0p44
process ended with ERROR:255
Unable to wipe Data.
Unable to format to remove encryption.
Also data wiping on TWRP is defaulting to trying to format data as F2FS which isn't even the default,
and while the partition has been switched to ext4.
I'd like to fastboot erase userdata and then fastboot format userdata.
But its giving me this error message.
fastboot format userdata
(bootloader) has-slot:userdata: not found
Formatting is not supported for file system with type 'raw'.
I've already done a lot of looking around on this issue, I'm normally not worried about this but
formatting internal system partitions that I don't understand how its different from a standard
desktop computers layout does worry me.
Should I be doing a full wipe and format everything to stock and then back to a custom rom?
God I wish this was a desktop computer right now, wipe the hard drive and reinstall the operating system,
there is something to be said for being simple and straight forward.
WTB cellular modem support in standard operating systems, and handheld devices that
can run standard operating systems.
I'd ditch this overcomplicated vendor locked sht so fast and never look back.
Following this guide to setup a new system encryption with rom in one go from the start with data as ext4 to see if I can bypass it this way.
But I'm getting a cannot find libraries error running cryptfs format command from adb shell or twrp terminal. b(>.<)d
http://android.stackexchange.com/questions/33398/cannot-factory-reset-after-encrypting
All this because someone thought it would be a great idea to take off the cancel button on data decryption
during boot.
This is why god invented beer and soaking you're brain in alcohol.
Damn been at this thing all day and still no luck.
Can I smoke the whole userdata partition with DD without bricking the phone?
In fact what can I effectively zero on a android phone without bricking it?
Am I miss reading this problem? Is the new inbuilt ext4 encryption (ext4 filesystem now has built in encryption support on newer kernels) support assumed to be on?
Never mind not as solved as I thought, But I just found another way to have my partition set to F2FS with letting me know. (^.^)
God this illustrates why formatting utilities that take shortcuts and 'ghetto erase' stuff are bad.
*Edited*
Default filesystem from the factory was F2FS (I have a bad memory : ) looks like it doesn't support putting data on Ext4.
Editing this post because I did a lot of post updates on what I was trouble shooting, but that might have
pissed people off because it does 'bump' the thread.
Sigh I'm throwing in the towel and formatting F2FS and moving on, F2FS is a one way door one which you never get back to ext4 from. > : (
Or ext4 formatting utilities suck balls and don't do their jobs.
Format all partitions to f2fs reboot to recovery again and format system and cache to ext4 now make a factory reset and reboot.

[FIX] How to solve "unable to mount data" error

Hey,
recently many are facing the problem to suddenly receive the above error and aren't able to solve it by formatting data (well, it cannot be mounted).
Here are the steps that I suggest in case you find yourself in that situation (obviously all data including internal storage content will be gone afterwards, so make external backups of important stuff if you can before continuing)
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
This helped a few people already, but please comment if it also does (or doesn't) for you!
Cheers and greetings,
Phil the Thrill
I had this problem, but not always just formatting helps. First time when I install LOS 15.1 I didn't format internal storage then LOS crypt my storage and TWRP couldn't mount it and I can't just format it, I have error when I try to format it in ext4 by default. Then I try to format it to another file system and select ext2. TWRP succesful format data and then I select again to format it to ext4 and install other rom. I don't know why first time TWRP couldn't format data.
I use google translate. Sorry if I have misspellings
aleksandar9999a said:
I had this problem, but not always just formatting helps. First time when I install LOS 15.1 I didn't format internal storage then LOS crypt my storage and TWRP couldn't mount it and I can't just format it, I have error when I try to format it in ext4 by default. Then I try to format it to another file system and select ext2. TWRP succesful format data and then I select again to format it to ext4 and install other rom. I don't know why first time TWRP couldn't format data.
I use google translate. Sorry if I have misspellings
Click to expand...
Click to collapse
I didn't just suggest to format anything...
The important thing is to reflash twrp via fastboot.
The point is that after doing this you might even be able at all again to format data...
If you follow the further steps I think you're good to go and don't need to change any file system.
Phil_Smith said:
Hey,
recently many are facing the problem to suddenly receive the above error and aren't able to solve it by formatting data (well, it cannot be mounted).
Here are the steps that I suggest in case you find yourself in that situation (obviously all data including internal storage content will be gone afterwards, so make external backups of important stuff if you can before continuing)
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
This helped a few people already, but please comment if it also does (or doesn't) for you!
Cheers and greetings,
Phil the Thrill
Click to expand...
Click to collapse
Thats because maybe on a backup you select another storage that nota the internal storage....maybe you select otg storage ir something....put the selection on Internal storage....and it resolves
I've same problem in my redmi note 4 (mido). I tried the same but it not works.
After update of resurrection remix oreo (30-05-2018), I unable to install any zip through twrp.It shows "unable to mount /vendor". I also search for vendor partition in mount menu but I cant found any options for it.
If you found any solution plz tell me......... thanks
Stonner_99 said:
I've same problem in my redmi note 4 (mido). I tried the same but it not works.
After update of resurrection remix oreo (30-05-2018), I unable to install any zip through twrp.It shows "unable to mount /vendor". I also search for vendor partition in mount menu but I cant found any options for it.
If you found any solution plz tell me......... thanks
Click to expand...
Click to collapse
me either, my problem. RRD. pls anyhelp?
Hutabarat said:
me either, my problem. RRD. pls anyhelp?
Click to expand...
Click to collapse
Hi, I had the same problem. (Redmi Note 4, Mido)
But after installing RedWolf (Build 27)
with adb/fastboot and everything works fine - without formating everything.
This maybe can help,
first i enter wipe menu on twrp and advanced wipe, mark data partition then repair or change file system, after that change file system, change to what ever except ext4 (i use ext2 one) then change again to ext 4. Done you get data partition back
*this method will wipe your data on that partition
solution about unable to mount data on s7 edge
Hi,
Make sure to do a backup of your data, all data will be erased
after many attempts to find the solution
i tried to go to recovery latest twrp:
go to wipe
select data
for me i choosed ext3 and make repair
than i select Fat and again ext3
you can choose another file system
Thank you
Thanks this worked for me
This is the best answer to solve the problem:
CHoozen said:
This maybe can help,
first i enter wipe menu on twrp and advanced wipe, mark data partition then repair or change file system, after that change file system, change to what ever except ext4 (i use ext2 one) then change again to ext 4. Done you get data partition back
*this method will wipe your data on that partition
Click to expand...
Click to collapse
This worked for me.
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
I was in Xiaomi.EU 9.3.28 in a "encrypted storage" situation
After messing it up I endend in a situation where I can not mount the data partition.
Follow your steps and now I'm setting up xiaomi.eu 9.5.9 without a problem.
Thank you very much.
Wachuwey said:
This worked for me.
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
I was in Xiaomi.EU 9.3.28 in a "encrypted storage" situation
After messing it up I endend in a situation where I can not mount the data partition.
Follow your steps and now I'm setting up xiaomi.eu 9.5.9 without a problem.
Thank you very much.
Click to expand...
Click to collapse
Thanks to you I was able to recover my wife's Redmi 5. Cheers :good:
could not mount data and unable to find crypto error
Good morning guys im using Xiaomi Redmi note 4x(mido) i installed LineageOS 15.1 then the gapps, but the google photos and other google apps keep crashing and recommended me to uninstall and install again. so i wen to twrp and installed the gapps again, then it keeps crashing again. so what i did is to wipe in twrp then installed linneage and the gapps but when rebooting it asked my password then after than i can't no longer boot it keep sayingf could not mount/data and unable to find crypto. i tried all the steps and fix i found here and in other sites but it does not work when i try changing it to other file system it says mke2fs -t ext3 -b 4096 /dev/block/mmcblk0p49, and error 64. Please help thank you
Still not able to mount storage.
Phil_Smith said:
Hey,
recently many are facing the problem to suddenly receive the above error and aren't able to solve it by formatting data (well, it cannot be mounted).
Here are the steps that I suggest in case you find yourself in that situation (obviously all data including internal storage content will be gone afterwards, so make external backups of important stuff if you can before continuing)
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
This helped a few people already, but please comment if it also does (or doesn't) for you!
Cheers and greetings,
Phil the Thrill
Click to expand...
Click to collapse
I tried everything that is:
-changing file system also gives "unable to mount storage " in every format like fat, ext2, ext3, ext4.
-factory reset also gives same error "unable to mount storage"
-I also tried different recovery.
Please someone help me!!!
Wachuwey said:
This worked for me.
- (re-)flash lastest twrp (currently 3.2.1.1) via fastboot
- boot to recovery
- wipe dalvik, cache, vendor, system, data
- format data (the one where you need to type "yes")
- reboot to recovery before flashing anything
- now flash your stuff
I was in Xiaomi.EU 9.3.28 in a "encrypted storage" situation
After messing it up I endend in a situation where I can not mount the data partition.
Follow your steps and now I'm setting up xiaomi.eu 9.5.9 without a problem.
Thank you very much.
Click to expand...
Click to collapse
Format data solved everything. But before format data, you better backup all your files. Because all of it will be erased like new.
Thank you.
CHoozen said:
This maybe can help,
first i enter wipe menu on twrp and advanced wipe, mark data partition then repair or change file system, after that change file system, change to what ever except ext4 (i use ext2 one) then change again to ext 4. Done you get data partition back
*this method will wipe your data on that partition
Click to expand...
Click to collapse
I LOVE YOU!!! U saved me when nothing worked. Ty so much !!
Hey King,
I do not use a Redmi Note 8, yet I had the same problem with my Moto G5 Plus.
Until I read your post and now my phone works.
Thank you!
Hi, i have TWRP 3.6.0 installed on my mi 11 lite (courbet), and then it shows "unable to mount /data". I know, formatting helps, but what to do if i don't want to format it, only i want to update the rom?

Access SDCard After Internal Data Format

I took out my sdcard and did format data on the internal storage and now i can't mount my sdcard in twrp. Didn't think about the fact that removing the encryption on the internal storage would make it unable to recognize the encryption on the sdcard afterwards. Is there any way to fix this? Or did I just screw myself?
When I reinstalled the rom and tried to boot it still asks me for my password which still works even though I can't boot because it says that the data is corrupted. But the encryption key should still be stored somewhere apparently. There must be a way to use it to decrypt the sdcard.
Moto G 2015
latest TWRP
GZRom Tesla Nougat Rom

twrp can't mount data.

Everytime I format data or change file format to ext4 then it will mount data/internal storage. But, after the first boot, it is back to square one.
Running Pixel Experience latest.
Twrp version 3.2.3.-2.
Any sort of help will be appreciated because I have to format my phone every time.

Question Orangefox can't wipe data: unable to mount storage

Hi, Orangefox can't wipe data, it gives me this error: unable to mount storage. I think the problem is that the data partition is somehow encrypted, but i haven't encrypted it so now I can't decrypt it because I don't have the password. I've already tried with the unlock password but it fails. I know the easy solution would be to format all data including internal storage but I would like to avoid that possibility. Do you know what can I do?
(The CrDroid rom I was installing before this problem occurred is in bootloop, so I can't access it).
Have you tried other recovery? TWRP, PE, Miui.
TWRP tells me the same thing: Unable to mount storage
I think the only solution is to format data. Is there a way to recover the files? I have no backup.
Data return is possible. Formatting must not be done and you must load the ROM from which the data came. That is, the last working ROM. After running it, then back up the data and only then try a new ROM where the data will be formatted.
StaryMuz said:
Data return is possible. Formatting must not be done and you must load the ROM from which the data came. That is, the last working ROM. After running it, then back up the data and only then try a new ROM where the data will be formatted.
Click to expand...
Click to collapse
How do i load the rom? I can't install it with TWRP, it says:
Devices on super may not mount until rebooting
recovery.
To flash additional zips, please reboot recovery to
switch to the updated slot.
I've tried also with OrangeFox, same error
OK, the problem was relative to the A/B slots: by switching to the other slot I managed to install and access to the rom. Now I can recover the files, so I can format data without problems. Thank you!

Categories

Resources