fastboot erase command - General Questions and Answers

Will "fastboot erase cache" or "fastboot erase data" delete photos from the camera? My phone is not booting up and I have a suspicion it is because it ran out of hard drive space, so I'd like to clear the app cache or delete some apps. Will the fastboot erase commands do that? I did google it but I still didn't get it and don't want to make a mistake.

sdxda said:
Will "fastboot erase cache" or "fastboot erase data" delete photos from the camera? My phone is not booting up and I have a suspicion it is because it ran out of hard drive space, so I'd like to clear the app cache or delete some apps. Will the fastboot erase commands do that? I did google it but I still didn't get it and don't want to make a mistake.
Click to expand...
Click to collapse
If you can't get to recovery to factory reset, yes, fastboot erase should work.
Sent from my SM-S767VL using Tapatalk

Related

unresponsive touchscreen

hi there,
so i bought a used nexus s as a secondary phone. the touchscreen goes unresponsive and i have to press power/sleep button so it turns off and back on again, then it will start responding and stop again after few seconds.
i tried AirKernel stable and marmite_v8.7. same issue. tried stock 4.1.2 and cm10 stable and problem is still there
nolimitzz said:
hi there,
so i bought a used nexus s as a secondary phone. the touchscreen goes unresponsive and i have to press power/sleep button so it turns off and back on again, then it will start responding and stop again after few seconds.
i tried AirKernel stable and marmite_v8.7. same issue. tried stock 4.1.2 and cm10 stable and problem is still there
Click to expand...
Click to collapse
When does that happen? It happens to me sometimes when someone calls me while another app was open. I think it's an android issue.
ej8989 said:
When does that happen? It happens to me sometimes when someone calls me while another app was open. I think it's an android issue.
Click to expand...
Click to collapse
it happens while i am setting up the phone. i flashed the phone with stock 4.1.2, on first boot the phone will ask for wifi name etc. it happens that early so no apps installed yet.
Try a TOTAL wipe and reinstall, had that problem long time ago and was due to clutter.
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
Reload everything and format SD partition.
philosopherssage said:
Try a TOTAL wipe and reinstall, had that problem long time ago and was due to clutter.
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
Reload everything and format SD partition.
Click to expand...
Click to collapse
i tried that but did not format sd partition yet, will do that and see,
thanks
philosopherssage said:
Try a TOTAL wipe and reinstall, had that problem long time ago and was due to clutter.
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
Reload everything and format SD partition.
Click to expand...
Click to collapse
formatting sd partition from inside android (erase storage) did not help..

Torn Touch Screen Digitizer Flex

Ok so I tore my touch screen digitizer and just decided to sell the motherboard and working parts because this is my 3rd time breaking the phone and I'm ready for a new one. The screen turns on but the touch doesn't work and the problem is that I have a pattern lock on my phone that prevents me from being able to access and delete my data from the internal SD card. (Unlock phone to access data). Also, I just flashed the new Sense 5 rom but didn't enable Developer Options so I can't use ADB. Help?
dcaples002 said:
Ok so I tore my touch screen digitizer and just decided to sell the motherboard and working parts because this is my 3rd time breaking the phone and I'm ready for a new one. The screen turns on but the touch doesn't work and the problem is that I have a pattern lock on my phone that prevents me from being able to access and delete my data from the internal SD card. (Unlock phone to access data). Also, I just flashed the new Sense 5 rom but didn't enable Developer Options so I can't use ADB. Help?
Click to expand...
Click to collapse
If your phone is S-off or you didn't supercid you could RUU.
Alernatively, you could boot to fastboot and do
fastboot erase boot
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase webtop
fastboot erase preinstall
Ofcourse this will wipe EVERYTHING. So the person to buy it will have to be smart enough to get stuff on it again.
exad said:
If your phone is S-off or you didn't supercid you could RUU.
Alernatively, you could boot to fastboot and do
fastboot erase boot
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase webtop
fastboot erase preinstall
Ofcourse this will wipe EVERYTHING. So the person to buy it will have to be smart enough to get stuff on it again.
Click to expand...
Click to collapse
What if I just wanted to erase my data and apps? Should I just do "Fastboot erase Userdata" and "fastboot erase cache"?
dcaples002 said:
What if I just wanted to erase my data and apps? Should I just do "Fastboot erase Userdata" and "fastboot erase cache"?
Click to expand...
Click to collapse
That should do it.
exad said:
That should do it.
Click to expand...
Click to collapse
Is threre a way to factory reset via adb or fastboot?
Sent from my HTC One XL using xda premium
31ken31 said:
Is threre a way to factory reset via adb or fastboot?
Sent from my HTC One XL using xda premium
Click to expand...
Click to collapse
Not that I know of
Sent from my HTC One X using xda app-developers app
31ken31 said:
Is threre a way to factory reset via adb or fastboot?
Click to expand...
Click to collapse
Wouldn't that be the same as erase userdata?
redpoint73 said:
Wouldn't that be the same as erase userdata?
Click to expand...
Click to collapse
userdata wipes the entire sdcard

Steps before a fill wipe

What steps are recommended to do before a full wipe (data / system / caches), and flashing a new rom.
I've flashed my phone now twice and what I found really annoying is that it takes quite some time to re-setup the cusom look / notification settings.
Reinstalling all the apps from the store is fast, but reconfiguring them took me some time. Any suggestions how this could be backed up? Any experience with that?
Whats the best way to backup the wifi settings, i.e. the list of known access points.
Do you backup your sms?
I use the back up from ROM toolbox some use titanium back up some heilum backup it depends on you
Sent from Sauwny the Xperia TL
Did you experience any problems, or did it "just work"?
There will always be times when restoring has bugs or doesnt complete. Mainly if going from OEM to AOSP roms. It is one of the prices you pay for flashing custom roms. This being sometimes you have to redo all your settings.
For a full wipe I always use this:
Reboot your phone in bootloader mode, then via fastboot type these one after another;
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase modemst1
fastboot erase modemst2
fastboot erase fsg
fastboot erase modem
Then I flash a fresh ROM.
Bakpoeder said:
For a full wipe I always use this:
Reboot your phone in bootloader mode, then via fastboot type these one after another;
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase modemst1
fastboot erase modemst2
fastboot erase fsg
fastboot erase modem
Then I flash a fresh ROM.
Click to expand...
Click to collapse
When i use this line (fastboot erase modem) says failed.
Do you use
fastboot erase modem
Click to expand...
Click to collapse
or
fastboot erase modemst1
Click to expand...
Click to collapse
Do you backup your sms?[/QUOTE]
Yes of course always.Don't forget for this.
if I use Titaniumbackup and then do a full wipe, this will erease the backup? and if the backup was made in cwm, its ereased too?

How to perform a complete wipe without leaving any files on the phone?

I''d like to completely erase the internal memory of the phone. Akin to formatting a HD. It seems when I format all of the available options in recovery it still does not do this (ie full wipe, SD card, cache, system, etc).
How can this be done?
I'm assuming I can do this over adb commands from the PC and then load in a new zip to flash. The reason I'm doing this is that something is corrupt on the phone causing me to have dialer crashes as soon as dialer opens. I've wiped, I've switched ROMS, and nothing has prevented it. More info: http://forum.xda-developers.com/goo...di-rom-2-6-t2540455/post51346791#post51346791
Read the stickies then flash the factory image
Fastboot erase userdata
Fastboot flash userdata userdata.img
Locking then unlocking the bootloader again would wipe it clean...no?
Never relocked....so guessing.
KJ said:
Locking then unlocking the bootloader again would wipe it clean...no?
Never relocked....so guessing.
Click to expand...
Click to collapse
If you oem lock and then unlock it does wipe it again.
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
If you oem lock and then unlock it does wipe it again.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
OP wants to wipe everything I think, boot loader unlock only wipes user data
Fastboot erase boot
Fastboot erase cache
Fastboot erase recovery
Fastboot erase system
Fastboot erase userdata
Then flash the factory .IMG files right after
Or just use the flash-all script that's included in the factory images as it uses -w to wipe everything.
Lokke9191 said:
Fastboot erase userdata
Fastboot flash userdata userdata.img
Click to expand...
Click to collapse
No need, just
Code:
fastboot format user data
beekay201 said:
No need, just
Code:
fastboot format user data
Click to expand...
Click to collapse
Will this only delete user data or every bit and byte on the flash memory?
integramodder said:
Will this only delete user data or every bit and byte on the flash memory?
Click to expand...
Click to collapse
no, there's 20 or more different partitions on the whole flash memory. This is the only on though that has anything to do with your dialer issue.
Sent from my Nexus 5 using XDA Free mobile app
integramodder said:
Will this only delete user data or every bit and byte on the flash memory?
Click to expand...
Click to collapse
userdata.

Bricked???

So I have a Moto G LTE, and haven't used it all weekend. But today, i went to plug it in and CM 12 was just stuck at the boot animation. When I tried getting into recovery mode, and get a can't load cache error, and freezes when I try to do anything in recovery (clockworkmod). Please help, I can't afford another bricked device!
Do you have a PC / Laptop with Fastboot set up?
The following command might help: fastboot erase cache
lost101 said:
Do you have a PC / Laptop with Fastboot set up?
The following command might help: fastboot erase cache
Click to expand...
Click to collapse
That was the one thing I didn't try xD, I'll try it
I was trying fastboot erase recovery with nothing!
EmoLittleSheet said:
That was the one thing I didn't try xD, I'll try it
I was trying fastboot erase recovery with nothing!
Click to expand...
Click to collapse
Don't mess around with fastboot erase - people have destroyed their phones with it.
fastboot erase cache / fastboot erase userdata - are the only commands that should be used.
lost101 said:
Don't mess around with fastboot erase - people have destroyed their phones with it.
fastboot erase cache / fastboot erase userdata - are the only commands that should be used.
Click to expand...
Click to collapse
Fastboot erase boot loader
Also
Brawn_Sg said:
Fastboot erase boot loader
Also
Click to expand...
Click to collapse
What happens if someone reboots their phone after using that command? Are they not hard-bricked?
I don't consider that command wise in any case, and especially unnecessary in this one.

Categories

Resources