7

I've seem some suggestions on the internet that we can do a factory reset on the Motorola Moto G (2nd gen) by using the following commands:

fastboot erase modemst1 
fastboot erase modemst2 
fastboot erase cache
fastboot erase userdata

Or another variant with just

fastboot erase cache
fastboot erase userdata

Now, the fastboot CLI provides the following description for "erase":

Erase a flash partition.

In that case, I'm worried that these commands just erase the partition, instead of reseting to factory state.

What I mean is: what this erase command actually do? It erases the partition leaving nothing there, or it restores it to the factory state?

These commands really do a factory reset through fastboot?

  • From what I can find, they just wipe the partition. Great For clean Wipes ahead of a ROM install, not so great when you was trying to delete your personal storage – Dan Brown Oct 29 '16 at 19:54
9
  • This thread on XDA has a post

....what is the aim of the "fastboot erase modemst" command?

Answer

modemst1 and modemst2 are storage partitions for Radio Firmware .... - and it's obviously a recommended practice to wipe these partitions when flashing a newer Radio Firmware

  • This XDA thread is all about fastboot commands

fastboot erase system

fastboot erase data

fastboot erase cache

Are explained as

fastboot allows for about the cleanest of wipes by the way. And each partition can be done separately too.

Elsewhere in same thread

... with a lot of new phones userdata = /data + /sdcard (/data/media), so all data, any personally saved files, and system are flushed out permanently with fastboot's erasure. Note that TWRP factory reset would leave /data/media intact

So, putting your list of commands in question, a device is being wiped cleanly of all the partitions mentioned including all data, and thus getting ready to flash a new ROM on the cleanest manner as against dirty flash which has remnants of earlier ROM affecting performance

  • Thanks for the answer and for pointing out the thread. Just one question, clearing all these partitions will automatically trigger a recovery process that will bring the device back to default state it comes from factory? – user1620696 Oct 29 '16 at 21:31
  • It would not trigger automatically a recovery process IMO, since you would need to reboot using other means. That is my understanding, as I haven't used these commands for the purpose explained – beeshyams Oct 29 '16 at 21:55
  • I understand, then if after these commands I do a fastboot reboot, when rebooting the system will restore itself or I must do fastboot recovery and trigger the recovery process manually? Thanks for the aid again! – user1620696 Oct 29 '16 at 21:57
  • I think the former, should suffice. Thanks for accepting – beeshyams Oct 29 '16 at 22:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.