Nexus 5x memory change from 32gb to 10gb after flashing stock - Nexus 5X Q&A, Help & Troubleshooting

Hi to all
After flashing stock img, Phone's memory changed from 32gb to around 10gb. what's happened?
Do anyone have solutions to fix this issue.
Phone inf: Nexus 5x MMB29P 6.01, rooted
thanks a lot

Sounds like you flashed the userdata.img when you were using Fastboot. Run this command in fastboot and it will erase everything from your internal storage: fastboot format userdata
This should restore that missing internal storage space.
Sent from my Nexus 5X using Tapatalk

Yea your not ment to flash userdata just format userdata, due to the smallest variant of phone. ie 16gb
That's why I check the flashall.bat command

SlimSnoopOS said:
Sounds like you flashed the userdata.img when you were using Fastboot. Run this command in fastboot and it will erase everything from your internal storage: fastboot format userdata
This should restore that missing internal storage space.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
thanks
I will try.

spawnmhsbc said:
Hi to all
After flashing stock img, Phone's memory changed from 32gb to around 10gb. what's happened?
Do anyone have solutions to fix this issue.
Phone inf: Nexus 5x MMB29P 6.01, rooted
thanks a lot
Click to expand...
Click to collapse
please make factory reset

Related

How to wipe internal storage?

So I have a lot of junk on the internal phone storage and want to wipe it
Last time I went and wiped the /data/ partition a lot of **** broke, but that was a different ROM/device/recovery all together so I have no idea what I'm doing now
That being said, My first guess is to issue a /data/ wipe because the SDcard is stored under /data/mnt or /data/media or something like that... or is it system? I know wiping system is bad for something
anyway, obviously dont know what to do so I'm asking... how do I wipe my internal storage? I tried re partitioning but that did nothing
^ This. I have a similar question. I'd like to a total wipe back to how I got it. (Well except my rom. I wan't to keep that)
I was thinking maybe a factory reset from the phone or fastboot erase <whatever the partition is called>
Not sure how to do it, but I've been poking around for an hour or so and cant find it :<
Should be able to Fastboot erase system.img boot.img and recovery.img and then Fastboot flash system stock-system.img etc..etc.. then relock and unlock the bootloader and then relock it once more.
Don't quote me on this... I'm not entirely sure... first Fastboot device ever so... take that with a grain of salt.
Sent from my sprint galaxy nexus
XFreeRollerX said:
So I have a lot of junk on the internal phone storage and want to wipe it
Last time I went and wiped the /data/ partition a lot of **** broke, but that was a different ROM/device/recovery all together so I have no idea what I'm doing now
That being said, My first guess is to issue a /data/ wipe because the SDcard is stored under /data/mnt or /data/media or something like that... or is it system? I know wiping system is bad for something
anyway, obviously dont know what to do so I'm asking... how do I wipe my internal storage? I tried re partitioning but that did nothing
Click to expand...
Click to collapse
What exactly do you want to erase? The stuff on /sdcard? All app data? Both?
I believe the easiest way is to lock and unlock the boot loader. This wipes the internal storage on the device
Sent from my Galaxy Nexus using xda premium
fastboot erase userdata
Zepius said:
fastboot erase userdata
Click to expand...
Click to collapse
This. This is the easiest way.
Sent from my i9250
Can't you just go to backup and restore in settings and hit wipe?
Zepius said:
fastboot erase userdata
Click to expand...
Click to collapse
Alright to clarify
I wanted to wipe /sdcard/ contents due to a lot of garbage. In particular, Google music had "cached" about 4GB of songs and wasn't using the cache on a new ROM
I also wanted to erase everything (full wipe) to install new ROM but that was different
I ended up trying
fastboot erase userdata
and had great success for what I wanted.
I did not feel that messing with the bootloader (locking it, etc) would help me at all as other's posted mixed results.
A factory reset from Android OS did not wipe the SD card
Using partitioning tools didn't work for obvious reasons
Nothing in CWM or ADB would erase (short of removing the /sdcard/ partition/mount under /data)

Partition SD

I'm wanting to format my internal SD card and completely erase every single thing thats on it to start from scratch. I see in TWRP there is a section for partitioning SD. If I use this feature it should wipe my sd card and I can install a fresh rom right? What should I set the partion to? 2048? And use ext4?
I have a lot of junk on my sd that I no longer want and have been getting extremely annoying insufficient space errors when trying to install apps. I have a ton of space and am still getting errors. Just want to wipe it all, format the card correctly, and start over.
Please help I have tried seaching but nothing mentions TWRP or ext4.
What you are suggesting is not supported on the GNex.
Reboot into fastboot and type:
fastboot erase userdata
Now everything is gone...
I believe that option is for phones with an actual sd-card. On older phones with less storage for apps(less than 200 mb), a2sd scripts allowing you to place your apps on an ext-partition on the sd-card was very popular.
So in short it will make 2 partitions instead of 1 which you do not want on your gn.
efrant said:
What you are suggesting is not supported on the GNex.
Reboot into fastboot and type:
fastboot erase userdata
Now everything is gone...
Click to expand...
Click to collapse
Ok well I went ahead and was messing around in TWRP and set a partition size to 2048. How can I wipe out that partion and everything on the card? What if I unmount the card from the settings menu and then format? Will that work?
seh6183 said:
Ok well I went ahead and was messing around in TWRP and set a partition size to 2048. How can I wipe out that partion and everything on the card? What if I unmount the card from the settings menu and then format? Will that work?
Click to expand...
Click to collapse
Fastboot erase userdata
seh6183 said:
Ok well I went ahead and was messing around in TWRP and set a partition size to 2048. How can I wipe out that partion and everything on the card? What if I unmount the card from the settings menu and then format? Will that work?
Click to expand...
Click to collapse
You can't unmount the card because there is no card
efrant said:
Fastboot erase userdata
Click to expand...
Click to collapse
I'm terrified of fastboot for some reason lol
Sdobron said:
You can't unmount the card because there is no card
Click to expand...
Click to collapse
It says right there in settings, unmount sd.
seh6183 said:
I'm terrified of fastboot for some reason lol
Click to expand...
Click to collapse
You should be more terrified of yourself trying partition options that aren't supported on the galaxy nexus.
Your original question has been answered twice by efrant.
Boot into the bootloader
Type fastboot erase userdata
Fastboot reboot.
Done.
Sent from my Nexus 7 using xda premium
seh6183 said:
I'm terrified of fastboot for some reason lol
Click to expand...
Click to collapse
Misplaced fear.
seh6183 said:
It says right there in settings, unmount sd.
Click to expand...
Click to collapse
I don't think you understand. The GNex has no sdcard. "sdcard" on the GNex is just a folder in the userdata partition, so...
EDIT: Ninja'd by El Daddy.
El Daddy said:
You should be more terrified of yourself trying partition options that aren't supported on the galaxy nexus.
Your original question has been answered twice by efrant.
Boot into the bootloader
Type fastboot erase userdata
Fastboot reboot.
Done.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
efrant said:
Misplaced fear.
I don't think you understand. The GNex has no sdcard. "sdcard" on the GNex is just a folder in the userdata partition, so...
EDIT: Ninja'd by El Daddy.
Click to expand...
Click to collapse
Ok doing it now. Is this the same thing as doing a data/cache wipe through CWM?
seh6183 said:
Ok doing it now. Is this the same thing as doing a data/cache wipe through CWM?
Click to expand...
Click to collapse
No. When you erase the userdata partition using fastboot, everything in that partition is gone, including all your apps and app data, as well as everything in /sdcard. If you wipe data in CWM, it wipes your apps and app data, but not /sdcard. (It is specifically set up that way to prevent you from losing your backups, etc. stored in /sdcard.)
seh6183 said:
Ok doing it now. Is this the same thing as doing a data/cache wipe through CWM?
Click to expand...
Click to collapse
No. It erases everything on the phone
Sent from my Galaxy Nexus using Tapatalk 2

Same old bug: 32gb Nexus 5X showing only 16gb

I've had the same bug pop up on a 32gb Nexus 5 and Nexus 7 2013. Basically, sometimes when you flash a factory image, it formats the userdata partition as 16gb (well, actually 10.55gb or so).
The only fix I've found so far is a factory reset. I do have my boot loader unlocked so I could do a nandroid backup but that is a lot of work.
If anyone knows of a better solution to resize the partition without nuking my setup, let me know.
Just wipe the device into recovery.
Sent from my Nexus 5 using Tapatalk
TecQuality said:
Just wipe the device into recovery.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yeah, I know that. I was just hoping to avoid that, but it looks like that isn't possible.
TecQuality said:
Just wipe the device into recovery.
Click to expand...
Click to collapse
I'm having the same problem. I don't mind wiping. I downloaded the latest factory image and extracted the .img file for each partition, then I ran
fastboot flash boot boot.img
fastboot flash userdata userdata.img
....
I still get 10GB user storage space
P.S. bootloader is oem unlocked
chochopk said:
fastboot flash boot boot.img
fastboot flash userdata userdata.img
....
I still get 10GB user storage space
P.S. bootloader is oem unlocked
Click to expand...
Click to collapse
You need to either fastboot format userdata (you will obviously lose your data doing this) or resize2fs from a recovery such as TWRP. After this, you will see your missing space.
This is not a bug. This is user error. Don't flash the userdata image. All it is, is a blank filesystem.
doitright said:
This is not a bug. This is user error. Don't flash the userdata image. All it is, is a blank filesystem.
Click to expand...
Click to collapse
How is it user error if just flashing user data, empty or not, results in the system only recognizing part of the available storage space? I would think one of two things: 1) It automatically recognizes the amount of storage or 2) separate factory images for various storage models. 2) sounds like an inelegant solution and I don't know why 1) doesn't just happen.
Do you have further explanation than just saying it is user error? Why exactly is this happening and is there a way to make it never happen? Because it happens every time I flash.
ahow628 said:
Do you have further explanation than just saying it is user error? Why exactly is this happening and is there a way to make it never happen? Because it happens every time I flash.
Click to expand...
Click to collapse
Because userdata.img ***IS A FILESYSTEM***.
You stop it from happening by NOT FLASHING THAT FILESYSTEM.
This is not that complicated.
Don't flash the filesystem, and then the filesystem won't be flashed.
doitright said:
Because userdata.img ***IS A FILESYSTEM***.
You stop it from happening by NOT FLASHING THAT FILESYSTEM.
This is not that complicated.
Don't flash the filesystem, and then the filesystem won't be flashed.
Click to expand...
Click to collapse
So to clarify, when I'm flashing a factory image and I want a blank slate, I should do
Code:
fastboot flash <partition name> <partition image>
for every each partition except userdata.
For user data, I should do
Code:
fastboot erase userdata
and it should solve the problem?
Edit: Found this in the fast boot help file:
options:
-w erase userdata and cache (and format
if supported by partition type)
Pbrah said:
... or resize2fs from a recovery such as TWRP. After this, you will see your missing space.
Click to expand...
Click to collapse
This.. TWRP advance format
Born<ICs said:
This.. TWRP advance format
Click to expand...
Click to collapse
Resize or format what partition exactly? I am missing 8gigs on my 32 gig 5x...
stackz07 said:
Resize or format what partition exactly? I am missing 8gigs on my 32 gig 5x...
Click to expand...
Click to collapse
.
Under advanced it's 2fs.
Supposedly this frees all available space.
.

After flashing android 7 less space on sd card 24GB → 10GB

Hi,
After flashing android 7 I have only 10GB space instead of 24GB. I have 32GB version.
I guess the problem is because of that I flash it manually with factory image, but unfortunately I did it many times before I realised that I didnt flash vendor because of that system didnt boot.
I guess that there are these data on my card from first bad attempts. I used app Disk Usage but I just see current system but no more.
Now my android 7 working well, I rooted it again.
My question is if there is any way how to erase whole sd card and then flash new system again or something like that?
Thanks for any reply
edit reply: Have to do it through edit because I am new and I cant reply on my own post until I have 10 posts
Factory reset didn´t work still 10GB of space I did it in TWRP and ticked all except system
Flashall doesnt work in my case I had to flash factory image manually step by step that´s why I forgot to flash vendor.img and I did the flashing procedure many times which probably caused that I have only 10Gb now.
I have linux but I also tried it on windows computer with root toolkit and flashing a7 wasn´t work as well
I tried in fastboot erase partitions (cache, userdata, recovery, vendor, system, boot) and then I flashed A7 again but still 10GB
edit2:
tried it again and finally solved it
adrenalinnn said:
Hi,
After flashing android 7 I have only 10GB space instead of 24GB. I have 32GB version.
I guess the problem is because of that I flash it manually with factory image, but unfortunately I did it many times before I realised that I didnt flash vendor because of that system didnt boot.
I guess that there are these data on my card from first bad attempts. I used app Disk Usage but I just see current system but no more.
Now my android 7 working well, I rooted it again.
My question is if there is any way how to erase whole sd card and then flash new system again or something like that?
Thanks for any reply
Click to expand...
Click to collapse
I think i read somewhere that you need to do a factory reset and the full storage will return
Sent from my Nexus 5X using XDA Labs
Yes, doing a factory reset will correct the memory issue. If you want to erase the whole thing and re-install everything the simplest way is to use the flashall batch file that comes with the factory image. Then do a factory reset from the stock recovery.
Sent from my Nexus 9 using XDA-Developers mobile app

Maximum Internal Storage of Xiaomi Mi 5s Phone Reduced to 8 GB from 64 GB

Good day all!
I am having a major issue with my Mi 5s. I installed a LineageOS (15.1 version) from MIUI 9. In the process, I think I have accidentally wiped something that caused the maximum internal storage of my phone to be reduced from 64 GB to just 8 GB. Is there any way that I can revert my internal storage back to 64 GB?
Boot your phone into fastboot mode and use this command:
fastboot -w
jigs4wkiller said:
Boot your phone into fastboot mode and use this command:
fastboot -w
Click to expand...
Click to collapse
What exactly will happen after I've done that?
heyjoed9 said:
What exactly will happen after I've done that?
Click to expand...
Click to collapse
It will delete your complete storage and restores the partition tabel when it's necessary

Categories

Resources