How to "Factory Reset" via Clockworkmod Recovery - Samsung Galaxy Nexus

Hello All,
its a bit confusing for me. many threads describe that we should "Factory reset" the device before flashing a new ROM. what does it mean ? when i did factory reset my original stock ROM it deleted all my data and brought me an "out of box" phone. now when i have rooted my phone and flashed couple of roms, i just wiped cache and dalvik cache bla bla ... and of course my previous data was there..
actually what i want to do is ... i want to install a stock 4.2 and i don't want any previous data on my phone .. can it be possible ??
A little advice would be grateful ... ... thanks in advance ..

Hi,
Have you ever used the factory image that Google released to flash your phone?
takju has 4.2 factory image now.
You can download it, extract it, connect your galaxy nexus with fastboot mode to pc. Just double click flash_all.bat in the extracted folder if you are using windows.
"fastboot -w" will erase all user data. (include sdcard partition... remember to backup your file in the sdcard before you run this command)
The last fastboot command of flash_all.bat has the "-w" parameter. It'll clean all user data.
Sent from my Galaxy Nexus using xda app-developers app

V0odo0 said:
Hello All,
its a bit confusing for me. many threads describe that we should "Factory reset" the device before flashing a new ROM. what does it mean ? when i did factory reset my original stock ROM it deleted all my data and brought me an "out of box" phone. now when i have rooted my phone and flashed couple of roms, i just wiped cache and dalvik cache bla bla ... and of course my previous data was there..
actually what i want to do is ... i want to install a stock 4.2 and i don't want any previous data on my phone .. can it be possible ??
A little advice would be grateful ... ... thanks in advance ..
Click to expand...
Click to collapse
Why not use TWP, instead of CWM?

ilu73224 said:
Hi,
Have you ever used the factory image that Google released to flash your phone?
takju has 4.2 factory image now.
You can download it, extract it, connect your galaxy nexus with fastboot mode to pc. Just double click flash_all.bat in the extracted folder if you are using windows.
"fastboot -w" will erase all user data. (include sdcard partition... remember to backup your file in the sdcard before you run this command)
The last fastboot command of flash_all.bat has the "-w" parameter. It'll clean all user data.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
yes i did flashed factory image of 4.1 .. before rooting my phone .. so unlocking bootloader did work for me that time ... i appreciate for what you have guided me to .. but what if i want to use 4.2 roms .. not stock image using fastboot .. and if i use fastboot to erase all things ... will i have to flash recovery again too .. ?
Sorry if it sound dumb ..
Sent from my Galaxy Nexus using xda premium

tufel said:
Why not use TWP, instead of CWM?
Click to expand...
Click to collapse
Does TWRP have an option to factory reset .. ?
Sent from my Galaxy Nexus using xda premium

V0odo0 said:
Does TWRP have an option to factory reset .. ?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
They both do and in the context of a custom recovery they wipe data and cache, your sdcard is untouched in this factory reset
Sent from my Galaxy Nexus

go in the dev section download the 4.2 factory image zip.. then in cwm or twrp
wipe data
wipe system
wipe cache
wipe dalvik
flash the factory image
reboot

As far as I know all custom Recovery's leave your sd card untouched so unless u flash a factory image or relock/unlock or bootloader there's no way to reset to a factory state. Another method is to flash just the stock recovery using fast boot then factory reset using that then flash cwm again
Sent from my Galaxy Nexus using Tapatalk 2

@k786: Flash the factory image? Thought it could only be done through fastboot. Is there something I missed, like making a zip file with a factory image? If so, how? Tnx.

What people mean when they say to do a factory reset before flashing is to choose that option in your recovery. It removes your previously installed apps and configurations so that you are starting from a known configuration. They are not telling you to restore the factory rom for an "out of the box" configuration.
Sent from my Nexus 7 using Tapatalk 2

Okie .. i got that ... i use to wipe cache and dalvik .. etc... and its called factory resetting when flashing a rom ..
But what if i want to delete the contents on my phone's storage .. particularly in sd card folder .. obviously nexus has no physical sd card to format .. and it cant be mounted either to copy a flashable zip like i used to do with my wildfire ..
One option above was locking and unlocking boot loader again .. will it work now after rooting and custom recovery and custom rom .. ??
Sent from my Galaxy Nexus using xda premium

As I said flash stock recovery. It will reset everything
Sent from my Galaxy Nexus using Tapatalk 2

Related

Stock image file need please!!

can someone provide me with the stock recovery, system, boot and cache recovery images. my Galaxy Nexus needs to be sent back to have its mother board replaced, i am getting the error that the data partion cant be mounted so this means i can install a rom thorough recovery
so far i have tried to wipe the userdata in recovery which hasn't work, and i managed to wipe it in fastboot mode but didn't respond after this.
code.google.com/android/nexus/images.html
Sent from my Xoom using xda premium
Re-flash with fastboot tools maybe help
so it this the system image
Search mate
"Restore Galaxy Nexus V2"
And next time make sure you know how to revert to stock before pissing about with ya phone!

[Q] CWM - Can't factory reset / can't mount /sdcard

Hi,
I am currently running AOKP build 31... I know there are many more recent builds but I was happy with this one.
I decided to try JB and was trying to wipe the device and I'm facing something strange:
- I tried to wipe the phone (data, cache, even data/factory reset) from the recovery menu and it has no effects at all...
- the first couple of attempts I did not notice that the wipe was not happening and when I tried to find the JB zip file on the phone from the recovery menu, it said "can't mount /sdcard"...
- I tried to trigger the factory reset from the settings menu on the phone and the phone comes back exactly as if I had done a simple reboot...
I'm a bit lost... Am I missing something obvious? I did search and was not able to find something that would look like what I'm facing.
Thanks for your help,
thefa said:
Hi,
I am currently running AOKP build 31... I know there are many more recent builds but I was happy with this one.
I decided to try JB and was trying to wipe the device and I'm facing something strange:
- I tried to wipe the phone (data, cache, even data/factory reset) from the recovery menu and it has no effects at all...
- the first couple of attempts I did not notice that the wipe was not happening and when I tried to find the JB zip file on the phone from the recovery menu, it said "can't mount /sdcard"...
- I tried to trigger the factory reset from the settings menu on the phone and the phone comes back exactly as if I had done a simple reboot...
I'm a bit lost... Am I missing something obvious? I did search and was not able to find something that would look like what I'm facing.
Thanks for your help,
Click to expand...
Click to collapse
Maybe try Super Wipe Lite? Idk... it might be of use. Just flash it and it should wipe your device (except SD card of course).
Did you wipe system?
Sent from the future using my Galaxy Nexus
Well, i have no specific menu entry to wipe system, I think... I tried wipe data / factory reset... where would I find wipe system option, please?
Sent from my Galaxy Nexus using xda premium
anton2009 said:
Maybe try Super Wipe Lite? Idk... it might be of use. Just flash it and it should wipe your device (except SD card of course).
Click to expand...
Click to collapse
Would be interested in testing this, but I seem to have no way to flash anything since when I'm in the recovery menus, when it tries to access the /data or /sdcard folders, it does not find it...
I think I'll have to find a way to get recovery to "see" /data and /sdcard to be able to fix that.
I found a "format system" entry... Just did it... Not too sure where this is going to take me...
I would reflash recovery if I were you. You can do it from fastboot mode using the gnex toolkit
Sent from my Galaxy Nexus using xda app-developers app
bajsmumsaren said:
I would reflash recovery if I were you. You can do it from fastboot mode using the gnex toolkit
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
I had tried it earlier today and it did not complete the operation (was blocked at something like "waiting for the device" something).
I have just done it again (after formatting /system) and it worked.
But it still doesn't "see" /sdcard... so I can't load anything...
Now when I enter in fastboot, I see : Fastboot Command Read Error - 21474833647
EDIT - I reflashed Recovery from the toolkit and Fasboot status is now okay... I guess I now need to find an img file and to try to flash it from the toolkit?
I'm stuck here... What would be the next step? I tried to do a Nandroid restore from Gnex Toolkit but when I start it, the main window of the toolkit just vanish and that's it...
Okay, so I used GN Toolkit to reflash entirely the stock config and now I'm installing 4.1. Don't know exactly where things went wrong but I'm now back on tracks, it seems.
Thanks for the help.
thefa said:
I had tried it earlier today and it did not complete the operation (was blocked at something like "waiting for the device" something).
Click to expand...
Click to collapse
Probably because you didn't read the instructions and were in recovery instead of in fastboot.
Sent from my Galaxy Nexus using xda app-developers app
bajsmumsaren said:
Probably because you didn't read the instructions and were in recovery instead of in fastboot.
Click to expand...
Click to collapse
Yes, that most probably explains the second problem where the phone was not detected.
But i'm not sure it explains the first problem where there was no access to the /data or /sdcard...
Sent from my Galaxy Nexus using xda premium
CWM says : E:Can't mount /sdcard
Okay, so now I am trying to get back to my previously backed up ROM, after having tested JB...
And I am back to where I was earlier: CWM can't mount /sdcard...
I must be missing something very obvious but I don't know where to start looking.
I have just wiped entirely the phone, thought that this problem would be gone.
Any hint on what the issue could be?
Thanks,
I might be having a related problem, but it wont even let me go back to the stock rom... it errors out when flashing the stock rom but the recovery flashes a zip already on my internal storage..
My problem is that with JB and now clean CM9 RC1 both of them have problems booting and freeze and reboot during the bootup sequence..

[Q] Flash factory image

Is it beneficial to flash the factory image if you have flashed lots of ROMs recently?
I was thinking of doing this when 4.2 is released but was curious if it would actually make a difference.
Nah.
Just factory reset + clear cache in cwm will do.
Mach3.2 said:
Nah.
Just factory reset + clear cache in cwm will do.
Click to expand...
Click to collapse
However, a true fresh start would be reflashing factory images, custom recovery, etc
bk201doesntexist said:
However, a true fresh start would be reflashing factory images, custom recovery, etc
Click to expand...
Click to collapse
Actually, flashing a stock image doesn't take 5 minutes lol.
Mach3.2 said:
Actually, flashing a stock image doesn't take 5 minutes lol.
Click to expand...
Click to collapse
So we both agree. OP, start fresh from factory images.
Sent from my i9250
Thanks for the replies. Backing up and restoring the SD card after flashing the factory image shouldn't cause any problems either correct? I don't want to lose all my pictures and other files.
KnappyRoot said:
Thanks for the replies. Backing up and restoring the SD card after flashing the factory image shouldn't cause any problems either correct? I don't want to lose all my pictures and other files.
Click to expand...
Click to collapse
Back up everything you need on your computer. Re-lock & then unlock the bootloader, that will wipe everything clean. Then follow procedure to flash factory image, look for efrant's post in general.
Vangelis13 said:
Back up everything you need on your computer. Re-lock & then unlock the bootloader, that will wipe everything clean. Then follow procedure to flash factory image, look for efrant's post in general.
Click to expand...
Click to collapse
no need to relock/unlock, either pass '-w' to have fastboot wipe userdata partition or just 'fastboot erase userdata'.
userdata is at /data, i think.
I use the fastbook -w update command and it deletes all information.
Sent from my Galaxy Nexus using xda app-developers app
Well I flashed 4.0.4 factory image and restored my SD card. When I try to move files on the SD card I keep getting message that file can't be moved. Am I missing a check box somewhere?
My next idea was to re-flash factory image, root, then manually restore files from my computer. Any other easier suggestions?
Sent from my Galaxy Nexus using xda app-developers app

My device stuck on HTC Logo when I format it !!

My HTC One X stuck on "HTC One's Logo" every time I try to format it,
so I restore my backup which works fine and when I tried to format it the same thing happened.
Whenever I try formatting my device it stuck on the logo !!
Please I need your help, what should I do with this strange problem ??
- Updated on May 26 -
Everything was okay one month ago and I was able to format my device normally but know I can't
I tried almost everything:-
1. I formatted my device then installed the ROM & Boot.img (and I was sure that it will not help)
2. I formatted my device from ARHD Aroma installation
3. I restore my ARHD backup then formatted my device again from CWM Recovery
Tips: formatting from recovery don't touch system partition, I'm sure
What do you mean by format? You mean from custom recovery? Factory reset from bootloader?
Maybe because you delete everything ? And without sytem it won't boot.
Sent from my HTC One S using xda app-developers app
vin4yak said:
What do you mean by format? You mean from custom recovery? Factory reset from bootloader?
Click to expand...
Click to collapse
From both, I tried every thing !!
sGollSv said:
Maybe because you delete everything ? And without sytem it won't boot.
Sent from my HTC One S using xda app-developers app
Click to expand...
Click to collapse
but formatting only format cache & data partitions !!
omar_bazaraa said:
From both, I tried every thing !!
Click to expand...
Click to collapse
If you Factory reset a custom rom, it will bootloop! Because there's nothing to boot beyond the logo!
1. Flash the boot.img from the nandroid backup. Then fastboot erase cache
2. Now go to recovery wipe data/cache/dalvic and then restore the nandroid backup.
3. Reboot. Let the OS load completely.
4. Go to bootloader and then do factory reset.
If your still bootlooping, then download a nandroid backup from http://forum.xda-developers.com/showthread.php?t=1975140 and then restore it! It will work flawlessly!
If you post your main-version, then we can also find a RUU for you?!
---------- Post added at 08:59 PM ---------- Previous post was at 08:58 PM ----------
omar_bazaraa said:
but formatting only format cache & data partitions !!
Click to expand...
Click to collapse
Aah! Wiping data means all the files are gone! The OS won't boot up! :cyclops:
vin4yak said:
Aah! Wiping data means all the files are gone! The OS won't boot up! :cyclops:
Click to expand...
Click to collapse
But I tried this lots of times before and it format only user data, and system partition remain as it is.
I forgot to say that also when I flashed ARHD and checked "wipe data partition" in Aroma, the phone also stuck.
omar_bazaraa said:
But I tried this lots of times before and it format only user data, and system partition remain as it is.
I forgot to say that also when I flashed ARHD and checked "wipe data partition" in Aroma, the phone also stuck.
Click to expand...
Click to collapse
which boot.img are u flashing?
sridheepan said:
which boot.img are u flashing?
Click to expand...
Click to collapse
I'm aware of all these things >> I'm flashing the stock boot.img in ARHD.zip <<
Why do you want to wipe data every now and then?
Install a clean rom and use it...
vin4yak said:
Why do you want to wipe data every now and then?
Install a clean rom and use it...
Click to expand...
Click to collapse
My rom become heavy so I want to clean it
omar_bazaraa said:
My rom become heavy so I want to clean it
Click to expand...
Click to collapse
Which ROM are you currently on? ARHD?
and what do you mean by "I want to clean it"? Use rom cleaner to remove the system apps and to de-sense it!
omar_bazaraa said:
I'm aware of all these things >> I'm flashing the stock boot.img in ARHD.zip <<
Click to expand...
Click to collapse
Ok. start from zero.
Download again ARHD.
format sd card
Put ROM in Sd
Put this one in sd: http://d-h.st/kG0 (t.y for vin4yak for link)
Put boot.img in fastboot folder.
via cmd (i recomend to copy cmd into fastboot folder ((it automaticaly gives acces to that folder))) adb reboot-bootloader
type fastboot flash boot boot.img (fastboot must be in usb)
wait
reboot in recovery. install super wipe (link given)
clear catche, dalvik
install rom
clear catche, dalvik
And IF! it still got boot loop, go to bootloader and repeat fastboot flash boot boot.img command via cmd. It should work.
And after all, if it doesn't, do a full nandroid restore.
Good luck.
Formatting does only wipe cache and dalvic, you should still be able to boot. It does not get rid of Rom. I do it all the time when flashing a custom kernel. So maybe you should try as suggested above.
from my Viped out one x
Command: fastboot erase cache after flashing boot.IMG will fix it I guess. Looks like none of you do that but I always do that and never, I say never had a bootloop. And I switch ROMs weekly with wipes and all.
Hope it helps.
Sent from my HTC One X using xda app-developers app
J_Dutch said:
Command: fastboot erase cache after flashing boot.IMG will fix it I guess. Looks like none of you do that but I always do that and never, I say never had a bootloop. And I switch ROMs weekly with wipes and all.
Hope it helps.
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
His question had nothing to do with flashing a boot.IMG, I've never not fast boot erase cache either. He was asking why when he hits the format button in recovery, his phone won't boot. Format in recovery simply wipes cache and dalvic so it should still boot, just like when you format after flashing the modules from a kernel.
DroidIt! said:
His question had nothing to do with flashing a boot.IMG, I've never not fast boot erase cache either. He was asking why when he hits the format button in recovery, his phone won't boot. Format in recovery simply wipes cache and dalvic so it should still boot, just like when you format after flashing the modules from a kernel.
Click to expand...
Click to collapse
O sorry for the misunderstanding.
So basicly OP asks "i took the fuel out of my car, why won`t it drive?"
Depends on wich recovery then cause in twrp a factory reset wipes not only cache and dalvik for sure!
From twrp site: A factory reset wipes data and cache (which includes dalvik cache). A factory reset will also wipe sd-ext and android_secure if your device has those items
Sent from my ASUS Transformer Pad TF700T using xda app-developers app
vin4yak said:
Which ROM are you currently on? ARHD?
and what do you mean by "I want to clean it"? Use rom cleaner to remove the system apps and to de-sense it!
Click to expand...
Click to collapse
Yes, I'm on ARHD. I mean by cleaning the rom is to format it to return fast as it was.
omar_bazaraa said:
Yes, I'm on ARHD. I mean by cleaning the rom is to format it to return fast as it was.
Click to expand...
Click to collapse
Did you flash a custom kernel with modules?
Sent from my ASUS Transformer Pad TF700T using xda app-developers app
Thanks all for your help but unfortunately all in vain
Before a month I was able to format without any problem, but now I can't.
I tried almost everything:
1. I formatted my device then installed the ROM & Boot.img (and I was knowing that it will not help)
2. I formatted my device from ARHD Aroma installation
3. I restore my ARHD backup then formatted my device again from CWM Recovery
All these attempts but in vain, please I need your help essentially, I need to format my device as I was doing before.

need little help?

currently running pure nexus rom 6.0.1 on my n5x and want to upgrade to android n
any way to flash android n update without any data or app loss?
ps: n5x rooted with twrp recovery
Sent from my Nexus 5X
Download the N factory image and extract it. Use fastboot to first flash the bootloader. Then re-boot into the bootloader. Then flash the boot, system, radio, and vendor images. It's always good to back everything up first, just in case. You might have to uninstall then re-install some apps. You'll have to re-flash twrp and SU.
Sent from my Nexus 9 using XDA-Developers mobile app
but i guess
flashing factory image will wipe my internal storage too?
if not then how?
Sent from my Nexus 5X
gtsfreak said:
but i guess
flashing factory image will wipe my internal storage too?
if not then how?
Click to expand...
Click to collapse
He literally just explained step by step how to do it. You can do it this way or use ADB sideload like I did. Some apps needed to be reinstalled, but all of my internal storage was kept.
Okay thanks
Sent from my Nexus 5X

Categories

Resources