Unable to mount storage - Moto G5 Questions & Answers

On my Moto G5 TWRP when i try to wipe or flash any ROM it gives me unable to mount storage error and the storage shown as 0Mb and i can't even explore it inside the recovery

basem bebarse said:
On my Moto G5 TWRP when i try to wipe or flash any ROM it gives me unable to mount storage error and the storage shown as 0Mb and i can't even explore it inside the recovery
Click to expand...
Click to collapse
You haven't said which partition
If it's data goto wipe & select the option on the right
You can also do it in fastboot mode
fastboot erase userdata
This will erase everything on internal storage
Restart to recovery & data should be mountable
Anything else you may have to flash stock firmware via fastboot including gpt to repartition your device correctly - make sure you you flash a firmware that is equal or newer than the version currently installed

TheFixItMan said:
You haven't said which partition
If it's data goto wipe & select the option on the right
You can also do it in fastboot mode
fastboot erase userdata
This will erase everything on internal storage
Restart to recovery & data should be mountable
Anything else you may have to flash stock firmware via fastboot including gpt to repartition your device correctly - make sure you you flash a firmware that is equal or newer than the version currently installed
Click to expand...
Click to collapse
It works, Thank you so much that was very useful

Related

Failed to find userdata partition to mount

When I boot into CWM, it says that it "failed to find userdata partition to mount". I'm assuming that's why I have no internal memory when I go to storage. Is there a way to fix this?
I think u need to flash data using flashtool (excluding everything else) or fastboot (fastboot userdata userdata.sinğ.
After tgat go to recovery and format it
Sent using C6833 - Carbon KitKat
ch3mn3y said:
I think u need to flash data using flashtool (excluding everything else) or fastboot (fastboot userdata userdata.sinğ.
After tgat go to recovery and format it
Sent using C6833 - Carbon KitKat
Click to expand...
Click to collapse
It worked. Thanks
I have the same problem. I tried extract ftf firmware, and flashing it with fastboot with command "fastboot flash userdata userdata.sin". I just get information on non existing userdata partition.
I can't wipe dalvik or factory reset, because userdata don't exist. I can install rom in recovery, but it just loops on android logo.
What can i try? i already flashed 4 different stock firmwares.
[edit]
ok, just use older flashtool. Newest will just brick your phone. Use 0.9.18.4 or older.

Missing storage after "manually" updating to android 5.1 - [SOLVED]

Hi, I recently installed official android 5.1 from factory source but now I have issues "missing" storage.
32GB Nexus 7 2013 (Wifi)
TOTAL: 26,9 GB
Used: 17,3GB
Free: 9,6GB
Theese numbers are not supposed to be what they are right out of the box with barely no apps installed and nothing else stored. I am supposed to have much more free space.
I followed this guide to install every .img file manually that was included in the official factory images.
Install instructions followed:
Flash bootloader and radio (radio does not appear on all devices, if it's not in your tgz, you don't need it)
fastboot flash bootloader <bootloader file name here>.img
fastboot flash radio <radio file name here>.img
After flashing the bootloader/radio, you need to reboot the bootloader as shown below, don't skip this step!
fastboot reboot-bootloader
Now you can move on to the rest of the files
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
NEXUS 9 ONLY - flash this as well
fastboot flash vendor vendor.img
If you want to wipe cache and user data (full wipe), flash these
fastboot flash cache cache.img
fastboot flash userdata userdata.img
Finally, just reboot your device, and Android should start up.
fastboot reboot
The reason that I "manually" flashed every .img file is because I got errors when using the flash-all.bat file
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
failed to allocate 842365088 bytes
error: update package missing system.img
Thanks in advance for help!
EDIT:
Confirmed: factory reset/data wipe in stock recovery solved the storage problem
Try formatting data with twrp. That fixed the no storage problem I had a while ago.
yosmokinman said:
Try formatting data with twrp. That fixed the no storage problem I had a while ago.
Click to expand...
Click to collapse
I haven't installed TWRP yet, do you know if it supports 5.1? Any chance that the stock recovery can do the same?
You could try a factory reset/data wipe in stock recovery. Latest twrp works fine.
yosmokinman said:
You could try a factory reset/data wipe in stock recovery. Latest twrp works fine.
Click to expand...
Click to collapse
Confirmed: factory reset/data wipe in stock recovery solved the storage problem
Thank you very much
my nexus 32gb is showing like 26.5gb after the update for 5.1 this is normal value? 6gb is consumed by the OS or something?
my device is fullwiped

Incorrect Storage Capacity (Stock/7.0) - Device Thinks It's 16GB, Not 32

Hello there,
I own a N5X with 32 GB of storage. After some failed flashing I reflashed stock, which works fine except that only 10.55 GB of storage are being shown in the settings.
I do not have any modifications at the moment other than TWRP and an unlocked bootloader.
I did some research and found that erasing and reflashing all these Android compenents should fix it (this example is for the N5):
Code:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
flash boot boot.img
...which it didn't.
Does anyone have a solution? Is there any way to extend the partitions, maybe without wiping everything?
Thank you in advance
Tuxcraft32 said:
Hello there,
I own a N5X with 32 GB of storage. After some failed flashing I reflashed stock, which works fine except that only 10.55 GB of storage are being shown in the settings.
I do not have any modifications at the moment other than TWRP and an unlocked bootloader.
I did some research and found that erasing and reflashing all these Android compenents should fix it (this example is for the N5):
Code:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
flash boot boot.img
...which it didn't.
Does anyone have a solution? Is there any way to extend the partitions, maybe without wiping everything?
Thank you in advance
Click to expand...
Click to collapse
None of those would fix the GPT partition table.
Try flashing the beta Android N OTA. That has fixed the GPT table for people who use 32GB TOT file on 16GB so perhaps it'll do the same for your reverse situation.
try fastboot format userdata. This will wipe everything tho. That should get you back to 32gb
Im not sure if there is a way to do it without wiping. Maybe flash twrp recovery and use the advanced menu to extend partition.
This worked for me:
Boot into TWRP
Choose "Wipe" -> "Advanced Wipe"
Select your "data" partition and choose "Repair or Change File System"
Select "Resize File System" - it should automatically expand your storage to fill the empty space.
Tuxcraft32 said:
Code:
fastboot flash userdata userdata.img
...which it didn't.
Does anyone have a solution? Is there any way to extend the partitions, maybe without wiping everything?
Thank you in advance
Click to expand...
Click to collapse
Your internal storage was downsized to 16 GB because of this command. The userdata.img formats the userdata partition to the base 5X storage size of 16 GB. Do not flash the userdata partition since you have a 32 GB phone.
Sent from my Nexus 5X using Tapatalk
SlimSnoopOS said:
Your internal storage was downsized to 16 GB because of this command. The userdata.img formats the userdata partition to the base 5X storage size of 16 GB. Do not flash the userdata partition since you have a 32 GB phone.
Click to expand...
Click to collapse
If that is what caused it (and the partition table is still fine), then he can probably do
fastboot erase userdata
fastboot format userdata
and it should be back to normal.
just do dalvik and cache reset from recovery
First, thank you for all of your replies <3.
TheBurgh said:
This worked for me:
Boot into TWRP
Choose "Wipe" -> "Advanced Wipe"
Select your "data" partition and choose "Repair or Change File System"
Select "Resize File System" - it should automatically expand your storage to fill the empty space.
Click to expand...
Click to collapse
Worked for me as well! I now have 24.89GB free (which is normal, isn't it?). Thanks a lot.
To you:
SlimSnoopOS said:
Your internal storage was downsized to 16 GB because of this command. The userdata.img formats the userdata partition to the base 5X storage size of 16 GB. Do not flash the userdata partition since you have a 32 GB phone.
Click to expand...
Click to collapse
and you:
beady_uk said:
try fastboot format userdata. This will wipe everything tho. That should get you back to 32gb
Click to expand...
Click to collapse
as well as you:
sfhub said:
If that is what caused it (and the partition table is still fine), then he can probably do
fastboot erase userdata
fastboot format userdata
and it should be back to normal.
Click to expand...
Click to collapse
– I think this is what I got wrong. The flash-all.sh reported an error and stopped after flashing the first couple of components so I flashed all the components manually, including the userdata.img. I will stay away from that next time.
sfhub said:
None of those would fix the GPT partition table.
Try flashing the beta Android N OTA. That has fixed the GPT table for people who use 32GB TOT file on 16GB so perhaps it'll do the same for your reverse situation.
Click to expand...
Click to collapse
Thank you for the suggestion, luckily this was not necessary.
ikyeye said:
just do dalvik and cache reset from recovery
Click to expand...
Click to collapse
I did that, with no effect.
TheBurgh said:
This worked for me:
Boot into TWRP
Choose "Wipe" -> "Advanced Wipe"
Select your "data" partition and choose "Repair or Change File System"
Select "Resize File System" - it should automatically expand your storage to fill the empty space.
Click to expand...
Click to collapse
THANK YOU! I'm glad I didn't listen to the advice to factory reset, etc. This fixed the size without losing anything.

I flashed twrp but now I'm stuck at an error "Unable to wipe Data. Unable to format to remove encryption".

i flashed twrp but now im stuck at a formatting error called "mke2fs -t ext4 -b 4096 /dev/block/sdc46 29325304 process ended with ERROR: 1 Unable to wipe Data. Unable to format to remove encryption."
I am installing PE11 Exp. ROM and right after successfully flashing my PE ROM I am stuck at this format stage. Will I be needing to flash MIUI stock rom and uninstall TWRP or what now? I'm confused. Pls help.
th1nd said:
i flashed twrp but now im stuck at a formatting error called "mke2fs -t ext4 -b 4096 /dev/block/sdc46 29325304 process ended with ERROR: 1 Unable to wipe Data. Unable to format to remove encryption."
I am installing PE11 Exp. ROM and right after successfully flashing my PE ROM I am stuck at this format stage. Will I be needing to flash MIUI stock rom and uninstall TWRP or what now? I'm confused. Pls help.
Click to expand...
Click to collapse
Just changed the formatter in format settings (rm -rf instead of formatting) and it did install PE rom but my internal storage is inaccessible now .
Same issue here, haven't changed the format settings yet. Did you fix the issue with the internal storage?
Same problem
Laminesls said:
Same problem
Click to expand...
Click to collapse
Just need for more steps. Wipe dalvik, data, cache, system, vendor > Reboot recovery. Format data> Reboot recovery. Then start do flash rom and do other steps again. This happen because of encryption. If wipe data error, go in fastboot and type "fastboot -w" in ADB PC
Kirasu2080 said:
Just need for more steps. Wipe dalvik, data, cache, system, vendor > Reboot recovery. Format data> Reboot recovery. Then start do flash rom and do other steps again. This happen because of encryption. If wipe data error, go in fastboot and type "fastboot -w" in ADB PC
Click to expand...
Click to collapse
I am stuck as well. I followed the flash guide of the LiteUp MIUI V12.5 rom for the redemi note 8 pro: https://telegra.ph/Steps-01-01 And I got the error message after formatting the data. I asked on the telegram channel and they told me to change the file system to ext4, but that didn't worked. I tried your solution of wipe, then reboot recovery, fromat data, reboot recovery... flashed the rom again and then I rebooted straight to TWRP again. Can you help me?
Anyone know how to fix this I've tried to format data typed yes and this is what I get back using OnePlus 6t android 11 twrp 3.7.0
jamiehawman said:
Anyone know how to fix this I've tried to format data typed yes and this is what I get back using OnePlus 6t android 11 twrp 3.7.0
Click to expand...
Click to collapse
If you have PC, boot in fastboot mode and type "fastboot -w"
If you dont have PC, you can do some tricks to format:
- For flash new rom, Wipe necessary things > Reboot Recovery > Format data > Reboot Recovery > Flash rom
- Or you can go Wipe > Advanced Wipe > Data and Change File System to Ext4 (Or any default file system that your phone using)
i rebooted the twrp asked for password it decrypted so now il drag and drop magisk to phone do i need to drag and drop the twrp and that rom too
ive sorted it now well a g
Kirasu2080 said:
If you have PC, boot in fastboot mode and type "fastboot -w"
If you dont have PC, you can do some tricks to format:
- For flash new rom, Wipe necessary things > Reboot Recovery > Format data > Reboot Recovery > Flash rom
- Or you can go Wipe > Advanced Wipe > Data and Change File System to Ext4 (Or any default file system that your phone using)
Click to expand...
Click to collapse
uy sorted it for me i had to install a new rom install the new twrp and wallah all good
Back up your data if you still can.
You can try two methods below. Be careful: both will wipe our your data.
Method 1: boot into fastboot
fastboot erase userdata
fastboot erase cache
fastboot erase recovery
fastboot erase system
Try flashing a recovery
fastboot flash recovery [name-of-your-recovery.img]
Method 2: boot into recovery, if you still can
In Twrp / Orangefox / other recovery, format data -> yes;
Plus, you can wipe data, cache and other partitions in recovery.
wenyendev said:
Back up your data if you still can.
You can try two methods below. Be careful: both will wipe our your data.
Method 1: boot into fastboot
fastboot erase userdata
fastboot erase cache
fastboot erase recovery
fastboot erase system
Try flashing a recovery
fastboot flash recovery [name-of-your-recovery.img]
Click to expand...
Click to collapse
Just logged in to say thanks. I flashed a PixelOS Rom without removing the password on the old ROM, and the storage is encrypted. Failed to format data, TWRP bootloop, tried different methods, did not work until I found this post.

Question [URGENT] TWRP fails to decrypt /data partition using the correct passcode and can't mount /cust partition with error "Structure needs cleaning"

Long story short, read the previous thread: https://forum.xda-developers.com/t/...-product-vendor-odm-invalid-argument.4431903/
After succesfully installing the fastboot rom via Mi Flash, the phone is still in a bootloop. Tried flashing TWRP via fastboot command (fastboot boot twrp.img) but it can't decrypt the /data partition with the correct passcode anymore. after a reboot in recovery, the /cust partition also can't be mounted anymore, with error "Structure needs cleaning".
I do not have a backup of my system nor data partition, nor internal storage, so i absolutely need it to work again without wiping/formatting the data partition
EDIT: after flashing the fastboot rom again via mi flash and twrp via fastboot command, the cust error disappears but twrp still can't decrypt /data
EDIT: i decided to do a full wipe of my internal memory and the phone works again. this thread should be closed.

Categories

Resources