Incorrect Storage Capacity (Stock/7.0) - Device Thinks It's 16GB, Not 32 - Nexus 5X Q&A, Help & Troubleshooting

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.

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

Fastboot erase config ..stucked at boot logo

Guyzzz after erase config through fastboot .... Won't get onto O.S I used xfstk , flash raw file through fastboot , all done good but while start system stucked. .. recovery stills remains
Sideload via adb done.. system stucked
Upgrade through adb to M but stucked at boot
Unlock bootloader via fastboot works installed TWRP flash custom ROM also stucked at boot
While wipping or installing shows error on TWRP...
Unable to mount Config
Help me guyzzz is this is a mother board issue ??
user531xda said:
Guyzzz after erase config through fastboot .... Won't get onto O.S I used xfstk , flash raw file through fastboot , all done good but while start system stucked. .. recovery stills remains
Sideload via adb done.. system stucked
Upgrade through adb to M but stucked at boot
Unlock bootloader via fastboot works installed TWRP flash custom ROM also stucked at boot
While wipping or installing shows error on TWRP...
Unable to mount Config
Help me guyzzz is this is a mother board issue ??
Click to expand...
Click to collapse
well this is issue with partition. if you are on twrp try to repair it with advanced wipe and repair option. use xFSTK. and then flash raw with commands not with AFT
sukhwant717 said:
well this is issue with partition. if you are on twrp try to repair it with advanced wipe and repair option. use xFSTK. and then flash raw with commands not with AFT
Click to expand...
Click to collapse
On TWRP there's no config column to select
On mount tab on TWRP I got config column but can't able to tick (select) it
I done xfstk 10 20 times and flash with fastboot commands with your thread everything seems good on PC and device but after last command fastboot reboot it reboots to system and stuck there before the setup wizard
sukhwant717 said:
well this is issue with partition. if you are on twrp try to repair it with advanced wipe and repair option. use xFSTK. and then flash raw with commands not with AFT
Click to expand...
Click to collapse
I leaved device for 1 hour nothing happens
Reboot to recovery then format data then reboot still stucked at boot logo... Update through adb sideload .. update from adb complete then reboot and after that still stuck on boot logo...
Unlock bootloader then flash TWRP and try custom rom they also stuck on boot logo
Help me m stucked and really need help
user531xda said:
Help me m stucked and really need help
Click to expand...
Click to collapse
device can not boot untill and unless config partition is formatted. there are lot of things you can try.
fastboot erase config
fastboot erase cache
fastboot erase data
fastboot erase factory
then without reboot flash raw firmware with commands
sukhwant717 said:
device can not boot untill and unless config partition is formatted. there are lot of things you can try.
fastboot erase config
fastboot erase cache
fastboot erase data
fastboot erase factory
then without reboot flash raw firmware with commands
Click to expand...
Click to collapse
Done but still same , also tried fastboot -w but not worked ... Can I use fastboot format config?? If yes then how because I think it needs partition size and partition type for the format command through fastboot
user531xda said:
Done but still same , also tried fastboot -w but not worked ... Can I use fastboot format config?? If yes then how because I think it needs partition size and partition type for the format command through fastboot
Click to expand...
Click to collapse
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
---------- Post added at 09:33 AM ---------- Previous post was at 09:33 AM ----------
user531xda said:
Done but still same , also tried fastboot -w but not worked ... Can I use fastboot format config?? If yes then how because I think it needs partition size and partition type for the format command through fastboot
Click to expand...
Click to collapse
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
sukhwant717 said:
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
---------- Post added at 09:33 AM ---------- Previous post was at 09:33 AM ----------
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
Click to expand...
Click to collapse
Thanks alot sir...really thanks it worked ..ty ty :fingers-crossed:
user531xda said:
Thanks alot sir...really thanks it worked ..ty ty :fingers-crossed:
Click to expand...
Click to collapse
glad to know that helped
sukhwant717 said:
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
---------- Post added at 09:33 AM ---------- Previous post was at 09:33 AM ----------
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
Click to expand...
Click to collapse
Hi guys.
I have the same problem. But
"fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning"
not working for me...
FAILED (remote: unknown command)
finished. total time: -0.000s
My Redmi 4x have propably broken partitions. I didn't flash global soft because his stopped... A lot of errors, problems.
I will eraseing/format cache, userdata, system, config etc.
Only TWRP 3.0.3 has working but only when i flash with fastboot and boot. When twrp are stuck, i must flash once again with fastboot...
When I am in twrp, command adb devices see my phone like "8h231h8921 recovery"
Please, help!

Wipe Data for Oreo ?

Hello everyone.
I'm trying to install Oreo rom but I need to decrypt my data partition. (The "Wipe Data" with TWRP does not work)
I tried with the rom stock. (Reset via the menu)
The phone restarts it is already encrypted ...
Can someone give me some advice?
Go into twrp
Wipe data
Select format data (option on the right hand side)
Reboot to twrp
Wipe data
Advanced wipe (option on the left hand side)
Wipe system data cache delvik/art cache
Now flash rom gapps & magisk
HEy thank's but, I still have this problem.
Can not Format Data.
I am under twrp-3.2.1-0-cedric.img
(same as previous versions)
Go into twrp // ok
Wipe data // ok
Select format data (option on the right hand side) // Fail
SuperUtilisateur said:
HEy thank's but, I still have this problem.
Can not Format Data.
I am under twrp-3.2.1-0-cedric.img
(same as previous versions)
Go into twrp // ok
Wipe data // ok
Select format data (option on the right hand side) // Fail
Click to expand...
Click to collapse
Did you decrypt data in twrp first - when you boot into twrp it will pop up with enter your password to decrypt data
If you don't decrypt data in twrp it won't be able to mount it to format it
The other option is flashing stock rom via fastboot without flashing the bootloader or partition parts & erasing user data then do a full boot
Once you have downloaded firmware these are the commands
Code:
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot
Ignore some parts that may not be in the firmware that will produce an error if ran
Thank you for your reply
--
Edit : Here is the solution:
It is necessary to restart Recovery to "Mount Data".
Thank you for your help

Unable to mount storage

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

Categories

Resources