[Q] Possible to completely wipe internal storage - Samsung Galaxy Nexus

Would one be able to delete everything on the internal storage where nothing is left on it? As in no radio,fastboot,etc
I remember reading about someone who completely wiped his phone to the point where almost basically nothing was on it anymore.

why....

you can factory reset you phone
every thing must erase

biscuitownz said:
Would one be able to delete everything on the internal storage where nothing is left on it? As in no radio,fastboot,etc
I remember reading about someone who completely wiped his phone to the point where almost basically nothing was on it anymore.
Click to expand...
Click to collapse
You can erase most partitions with fastboot (system, userdata, boot, recovery, cache). Although I'm not sure about the radio. And not the bootloader.
luckydude said:
you can factory reset you phone
every thing must erase
Click to expand...
Click to collapse
A factory reset just erases the userdata partition, nothing more.

Well, if you literally want to delete EVERYTHING, then open CMD/Terminal and type following commands (Make sure you have fastboot, tough...)
Code:
First: fastboot erase ystem
second: fastboot erase boot
third: fastboot erase recovery
fourth: fastboot erase userdata
You CANNOT erase/format/delete the bootloader and/or radio, to do this, you need JTAG...
Well, hope I could help!
---------- Post added at 01:13 PM ---------- Previous post was at 01:11 PM ----------
efrant said:
You can erase most partitions with fastboot (system, userdata, boot, recovery, cache). Although I'm not sure about the radio. And not the bootloader.
A factory reset just erases the userdata partition, nothing more.
Click to expand...
Click to collapse
He's right...
Facory reset only erases follwoing partitions:
Code:
/data
/mnt/sdcard/Android

familyguy59 said:
[snip]
You CANNOT erase/format/delete the bootloader and/or radio, to do this, you need JTAG...
Click to expand...
Click to collapse
You need to be careful when you make absolute statements like that. What you posted is not correct.
The GNex is still a Samsung device, in other words, there is no NAND lock. If you have root you can erase/flash any of the GNex's 13 partitions (sbl, xloader, boot, recovery, system, userdata, cache, radio, param, misc, efs, metadata, dgs), just not with fastboot. No need for JTAG.
But if you erase some of them and don't re-flash them before rebooting, you could end up with a brick (and I mean brick).
familyguy59 said:
Facory reset only erases follwoing partitions:
Code:
/data
/mnt/sdcard/Android
Click to expand...
Click to collapse
/sdcard is just a symlink to /data/media, so saying it will wipe /data means it will wipe /data/media as well.

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.

Full wipe encrypted via fastboot

Hi,
the Nexus 5X is my first encrypted phone and I intend to flash the newest MDB08M factory image via fastboot. I wanted to perform a full wipe before flashing the update. My routine for a full wipe to get rid of everything on the phone is:
Wipe Dalvik
wipe cache
factory reset/data
boot into fastboot
fastboot erase boot
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase webtop
fastboot erase preinstall
fastboot reboot
flash factory image
...
Can I still full wipe my phone this way with encryption?
If you use flash-all.bat script included with factory image it will do it for you. To get list of partitions on your device use "fastboot getvar all".
Thank you for your answer. I did not know that the "flash-all.bat" performs the same routine erasing all partitions. So it is also safe to erase the partitions manually?

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.

Cant flash stock rom anymore

Hey there,
had a strange happening minutes before.
was rebooting but device was in bootloop, so i flashed factory images without -w, but no success.
so i decided to go clean and added the -w, but now while flashing i get an error in fastboot:cannot generate image for userdata
i cant find the userdata.img in the factory image anymore
any ideas?
Try format data or flash old 8.1.0 image. Hade same problem today but solved My problem
Erased Userdata and was able to start from scratch
pa.pn2 said:
Erased Userdata and was able to start from scratch
Click to expand...
Click to collapse
What steps did you follow to do that please?
I just put in the command in fastboot to erase
Could you post the command you used?
arismelachrinos said:
Could you post the command you used?
Click to expand...
Click to collapse
Guess you already figured the command, but if you didn't:
fastboot erase userdata
Cheers...

How can Wipe Cache be performed in Stock Recovery?

I haven't found a way to wipe cache memory through stock recovery. Has someone found a way to do it?
there isn't and it is because of google and because of seamless updates.
Jimisballjohn said:
I haven't found a way to wipe cache memory through stock recovery. Has someone found a way to do it?
Click to expand...
Click to collapse
Just push the power button and keep it pushed untill phone reboots. Cache should be wiped.
Fain11 said:
Just push the power button and keep it pushed untill phone reboots. Cache should be wiped.
Click to expand...
Click to collapse
Nope, this is standard reboot.
Jimisballjohn said:
I haven't found a way to wipe cache memory through stock recovery. Has someone found a way to do it?
Click to expand...
Click to collapse
You can in AP Fastboot
Code:
fastboot erase cache
Of course as stated,
Every time the device is rebooted the cache is wiped.
Or is supposed to be anyways.
Sent from my mata using XDA Labs
sd_shadow said:
You can in AP Fastboot
Code:
fastboot erase cache
Of course as stated,
Every time the device is rebooted the cache is wiped.
Or is supposed to be anyways.
Sent from my mata using XDA Labs
Click to expand...
Click to collapse
No, it isn't. If we speak of system cache then this includes a lot of things that do not make sense to compile often:
https://en.wikipedia.org/wiki/Android_Runtime
AND before wiping cache with fastboot, read also this:
https://forums.oneplus.com/threads/...and-wipe-all-your-data-off-your-phone.883273/
My point is: if you know not what are you doing, please do not do it.
I'm a bit confused here.
One action/vision is A/B devices and therefore it doesn't have cache or recovery partition.
Code:
C:\platform-tools_r29.0.5>fastboot erase cache
Erasing 'cache' OKAY [ 0.009s]
Finished. Total time: 0.030s
What does the "fastboot erase cache" really do then?
It sure looks like it does something.
tys0n said:
I'm a bit confused here.
One action/vision is A/B devices and therefore it doesn't have cache or recovery partition.
Code:
C:\platform-tools_r29.0.5>fastboot erase cache
Erasing 'cache' OKAY [ 0.009s]
Finished. Total time: 0.030s
What does the "fastboot erase cache" really do then?
It sure looks like it does something.
Click to expand...
Click to collapse
see : https://www.xda-developers.com/how-...ess-updates-affect-custom-development-on-xda/
"Update streaming: If your data partition is full, then the update can be downloaded and streamed to the inactive slot. It’s a pretty neat feature and means that you don’t have to waste any temporary storage on your updates. That’s why there’s no cache partition on A/B devices as they’re no longer needed."

Categories

Resources