yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] cbowens:
Nandroid backups save everything about the current state of your phone. Its like doing a windows restore point. So your homescreen format, settings, messages and what not are all restored along with the ROM itself. Basically, you should always do a nandroid back up before you do any sort of significant modifications (particularly anything that involves flashing through cwm), so that if it doesn't work out right or something goes wrong, you can quickly restore to your previously working settings.
[T-Mobile LG G2x] Lootes:
jlevy73, good to see you over here in the G2x forums. I assume you gave up your NS?
[T-Mobile LG G2x] jlevy73:
I still have the NS, just added this to the collection :)
[T-Mobile LG G2x] jlevy73:
Post 90, links are still good.
[T-Mobile LG G2x] wintrojan2k:
C:\Users\xxxx\Desktop\New folder\NVFlash>nvflash.exe --bct E1108_Hynix_512MB_

H8TBR00U0MLR-0DM_300MHz_final_emmc_x8.bct --bl fastboot.bin --download 5 recover

y-star-test2.img

Nvflash started

rcm version 0X20001

System Information:

chip name: unknown

chip id: 0x20 major: 1 minor: 3

chip sku: 0xf

chip uid: 0x0280400342bf1217

macrovision: disabled

hdcp: enabled

sbk burned: false

dk burned: false

boot device: emmc

operating mode: 3

device config strap: 0

device config fuse: 0

sdram config strap: 0

downloading bootloader -- load address: 0x108000 entry point: 0x108000

sending file: fastboot.bin

/ 1024992/1024992 bytes sent

fastboot.bin sent successfully

waiting for bootloader to initialize

bootloader downloaded successfully

sending file: recovery-star-test2.img

\ 4306944/4306944 bytes sent

recovery-star-test2.img sent successfully

All looks good I install ClockworkMod Recovery and attempted to do a backup of the existing ROM via CWM and I get the error waiting for SDcard to mount... then does a count down and errors out cannot mnt\sdcard. So am I just a freaking idiot? well I likely am.. more importantly am I doing something wrong? Thanks in advance for any insight.
[T-Mobile LG G2x] thanasisc4:
Insert an SD card :p
[T-Mobile LG G2x] wintrojan2k:
Anyone, with technical insight? Thank you again!

Okay so you can't mount internal....
[T-Mobile LG G2x] crazythunder:
good job.you're not an idiot if you did nvflash with no help lol. it's not hard though. just learning the commands is difficult.

what brand sdcard do you have? i know from past experience that sometimes recovery doesn't work well with certain brands or maybe class-speed.. maybe try a spare if you have one?
[T-Mobile LG G2x] wintrojan2k:
No I'm a full blown tard. I don;t have an external card, one is coming in the post, Samsung 16 GB (Gigabyte) Micro SDHC Memory Card for T-Mobile LG G2x. I ignorantly thought I could mount internal and save as I did to my Vibrant. But thank you for making me not feel so stupid! I really appreciate this community.
[T-Mobile LG G2x] jlevy73:
Is there even a purpose to using nvflash anymore? AFAIK cwr now writes to both internal and external. So not sure why people just don't install cwr through RM and be done with it
[T-Mobile LG G2x] brian6685:
Because if you do that the only way to get to cwm is through rom manager. If you get stuck in a bootloop or something you won't be able to get to cwm

G2X
[T-Mobile LG G2x] jlevy73:
Good point....
[T-Mobile LG G2x] Mikey:
Thanks Josh ;)
[T-Mobile LG G2x] jlevy73:
So Nvflash is messing with me. Everything works good up until the bootloader part. It says something to the effect of, waiting for bootloader to initialize then bootloader failed to load.

Using windows xp. Any idea as to why this is?
[T-Mobile LG G2x] brian6685:
I had that problem for couple times but I did it on linux. When I plugged the usb into the phone with the battery off, I held down both volume buttons the whole time til the process finished. It worked when I did that

G2X
[T-Mobile LG G2x] jlevy73:
Yep, that did the trick. Thanks a lot
[T-Mobile LG G2x] .me:
What do i do in this case?
[T-Mobile LG G2x] blitz911:
Running windows xp here, lol..basically downloaded everything in post 90 and installed drivers. Had errors of bootloader download failed. Then, followed another post of putting the contents of 'nv-flash-recovery' in the 'NVFlash" folder and followed the rest of the steps in post 90. Everything went through. When the windows says success, you're all good even though the phone screen will say updating...surprisingly simple.
[T-Mobile LG G2x] schmit:
What will happen when a new push comes out, such as gingerbread? Will it load w/ the recovery replaced?

Also, one thing I haven't noticed is how to reverse this process and get the phone back to its original state. Is it as simple as pushing the ROM that was backed up? I.e. let's say I have to return my phone. Just do a recovery of the backed up ROM and it will undo cwm, nvflash, etc?
[T-Mobile LG G2x] brian6685:
If you want to go back to stock reflash the stock recovery through nvflash.

G2X
[T-Mobile LG G2x] jdaclutch:
do you need to put all the contents of the nvmobileboot files into the nvflash folder as well?
[T-Mobile LG G2x] c19932:
Why is this CWM release a *test*? Is it complete in terms of functionality? (can do nandroid backup/restore, flash updates, wipe, etc)
[T-Mobile LG G2x] t0ny0:
Its a *test* cause its the first cwm that was released.

Test2 is now fully working. (with backup/restore/ flashing updates. wipe and all that)
[T-Mobile LG G2x] brian6685:
I used nvflash to flash clockworkmod 3.0.2.7 on my g2x. So now people are saying test 2 fully works with everything...Is there a newer .img file i should flash?
[T-Mobile LG G2x] blitz911:
Nope. Thats the folder that has the drivers. You install those first using instructions from post 90.
[T-Mobile LG G2x] tsquire99:
I'm wondering this too. I also heard there is a cwr that mounts internal and external sd.
[T-Mobile LG G2x] tenbeau:
I just reinstalled the lastest Rom Manager and it does not recognize my ext sd card(it will put the backup there but you cannot access it form rom manager) you must boot into the Nvflash recovery which is where it places the backups if you flash CWM recovery and back the device up. It looks as if CWM recovery is still a fake flash at this time. I am also debating whether to flash the Nvflash over the cwm recovery by rom manager. I really cannot justify doing it because there is no real reason to until I begin to flash custom roms.:confused:
[T-Mobile LG G2x] blitz911:
Would the backup work if you just copied it from the external SD to internal?
[T-Mobile LG G2x] tenbeau:
That is a very good question!!I am a little reluctant to try it but you just might be right. If you do try it let me know. However in case of issues such as bootloops etc unless the nvflash recovery had been flashed you would be unable to access recovery.Using the volume down and power would simply wipe and reset the phone. Which appears to take away the safety net of getting into recovery in times of duress. I am very reluctant to use nvflash as there are so many commands and the directions (which I am very grateful for) do not appear crystal clear to me. I am probably better of just reading and learning more before I try the Nvflash.
[T-Mobile LG G2x] blitz911:
I installed Clockwork using the nvflash method. I did a backup from there and it saved it to the external SD card. I just copied it to the internal storage using adao file manger and it now shows up in Rom manager. Haven't tried to see if it restores the backup, though.
[T-Mobile LG G2x] buddahlou:
I installed the clock work mod via nvflash and it ain't reading my sdcards to flash nor backup
[T-Mobile LG G2x] Leoog:
Did the same thing kind of annoying.
[T-Mobile LG G2x] hypmatize:
So what would you do if on linux....

1. Take the battery out

2. Hold the volume buttons

3. Plug in the usb

4. Run the .sh script while still holding the volume buttons

5. Wait until it says complete

6. Unplug the usb cable

7. Boot

Did I get it right?

Sent from my G2X
[T-Mobile LG G2x] trasnam:
Pretty much. There's no need to hold the volume buttons down the whole time. I just held mine down for a couple of seconds after plugging the USB in. After that, just run the script. It only takes a few seconds to run, so is a pretty quick process. Ignore the fact that the message on the screen of the phone is kind of indicating that the process isn't finished, as that is a non-factor in this case. Just know you are good to go once the script runs and you are back at a prompt (and assuming you don't see any bad keywords during running indicating that something went wrong).

Of course, remember to plug the battery back in before starting the phone up again, although I think you likely skipped mentioning that due to it being a common sense kind of thing. :)
[T-Mobile LG G2x] hypmatize:
Thanks ... yeah putting back in the battery was implied :p
[T-Mobile LG G2x] CB620:
does anyone have the stock recovery? please post.
[T-Mobile LG G2x] schmit:
check out the sticky.. or, do a forum search.
[T-Mobile LG G2x] crazythunder:
cwm 3.0.2.8 is in rom manager now. not sure if it's been posted,didn't see it. download it,move from sd to pc and nvflash it. or just place it in the one click nvflasher app and change the commands accordingly.
[T-Mobile LG G2x] tweezit:
I am still seeing 3.0.27.
[T-Mobile LG G2x] BayPimp:
same here!!
[T-Mobile LG G2x] crazythunder:
maybe something went wrong for me. i had cm7. nandroided back to eaglesblood. and rom manager downloaded 3.0.2.8. i have it on my pc and it's named that way. and recovery shows the same. odd
[T-Mobile LG G2x] jlevy73:
Still showing 2.7 here http://www.koushikdutta.com/2010/02/clockwork-recovery-image.html
[T-Mobile LG G2x] crazythunder:
did you download it and check the file name on your sdcard?
[T-Mobile LG G2x] crazythunder:
ahhhh,lol. i did optimus 2x. oops. it works though.
[T-Mobile LG G2x] Protricity:
Unable to flash recovery. Bricked until solution

I have tried to do this all day on my g2x. Every time I try nvflash, I get this:

downloading bootloader -- load address: 0x108000 entry point: 0x108000

sending file: fastboot.bin

/ 1024992/1024992 bytes sent

fastboot.bin sent successfully

waiting for bootloader to initialize

bootloader downloaded successfully

failed executing command 14 NvError 0x120000

command failure: partition download failed

===============================================================

===============================================================

*****Once nvflash has completed successfully then hit any key to close.*****

****If any step failed then repeat the process****

Press any key to continue . . .

any ideas? I'm bricked until I can figure this out.
[T-Mobile LG G2x] overground:
http://xdaforums.com/showthread.php?t=1054492
[T-Mobile LG G2x] ikarma:
Have you tried with the battery inserted? Don't know why but mine wouldn't flash without it.
[T-Mobile LG G2x] overground:
+1. Had the same experience.
[T-Mobile LG G2x] nccu_eagles:
mine did that initially when I tried to do this method on my desktop which is windows vista, but when I tried the same process on my laptop which is windows 7 it worked on the first try....
[T-Mobile LG G2x] ale6:
On my Toshiba AC100, nvflash raises this error when you're trying to flash an image bigger than the partition you're trying to write.

Maybe you're flashing on the wrong partition.
[T-Mobile LG G2x] crazythunder:
you're not bricked . why don't you give us a little more info to work with. like the exact command you're typing. what it is you're trying to accomplish. what you've tried already etc.
[T-Mobile LG G2x] apenney:
I've searched through this (and other threads) but I can't find any links to the older test1 - I need to install on the internal SD as I don't have an external SD. I'm not actually sure this is doable anyway because I think it wants to format the volume as part of the flashing and if I'm flashing FROM that partition it would destroy the .zip I am attempting to flash.

If my understanding is wrong can someone let me know. I'm new to this stuff. :)
[T-Mobile LG G2x] mobilehavoc:
Test2 or .27 CWM? Any reason to not use Test2?
[T-Mobile LG G2x] apenney:
The reason I can't use test2 is it looks for an mounts an external sdcard - I only have the internal one.
[T-Mobile LG G2x] Serious_Beans:
My computer won't recognize my internal or external sd in recovery. I tried reinstalling the drivers as well.
[T-Mobile LG G2x] crking1980:
What about adb?
[T-Mobile LG G2x] krylon360:
..... o.0

You arent looking in My Computer for the 2 SD's are you? if so, you'll never see them.

adb push is your friend.
[T-Mobile LG G2x] emir11553:
my phone has tha S/W upgrade too im new in this what can i do??????
[T-Mobile LG G2x] sarni84:
then u should be good once u see s/w upgrade . did nv flash finish with commands? if so ur good pull usb out
[T-Mobile LG G2x] telm0telm0:
is the link in OP contains the latest CWM?
[T-Mobile LG G2x] jerrycycle:
4.0.0.2 is the latest.
[T-Mobile LG G2x] telm0telm0:
Any instructions how to flash stock recovery with linux?
[T-Mobile LG G2x] themetatron:
even after going back to stock recovery and updating to v21e via lg updater, this still works perfectly
[T-Mobile LG G2x] One1Two2:
So if it stays on the "S/W Upgrade please wait while upgrading...." what does that mean?
[T-Mobile LG G2x] One1Two2:
Never mind i am such a noob. :) I can now boot into recovery!!!! THANK YOU THANK YOU THANK YOU! Custom ROMS here I come!
[T-Mobile LG G2x] jblah:
hello all. I am trying to upgrade clockwork mod recovery. I actually have v3.0.2 already installed. Is there some way to upgrade this to the new version? 5.0.? ?. do i need to go through nvflash again for this or is there a simpler way? I know i can get into the new version via ROM Manager but i would like to upgrade the recovery clockwork mod (the power + volume up button).
[T-Mobile LG G2x] renocivik:
Nv flash again.... always nv flash for perm cwm.... via rom manager it only "fake" flashes it
[T-Mobile LG G2x] es0tericcha0s:
Nvflash is a 1 click app. Not sure how it could be made any easier...

Sent via telepathy
[T-Mobile LG G2x] jeremyritzmann:
...traveling to their home and doing it for them.....Duh. B-)

Sent from my LG-P999
[T-Mobile LG G2x] TU Homer:
I've rooted my G1 and my SGS2, but now I want to root my G2X. I have V21y/GRJ22 operational. I'm guessing instructions and files to root my G2X on current conditions are somewhere, but I can't find clear, confirmed instructions on rooting my phone.

Links? Maybe a quick primer?

-TU
[T-Mobile LG G2x] DsturbD:
wow, nothing like digging up an ancient thread

rooting your phone is totally different than flashing clockworkmod recovery (which is what this thread was about when it was relevant). you dont need to root your phone if you are installing a custom rom, they are already rooted

to put CWM Recovery on your phone so you can install a custom rom, go here

http://xdaforums.com/showthread.php?t=1056847
[T-Mobile LG G2x] TU Homer:
The files in the OP will work with V21y?

BTW, I'm not necessarily planning to load a customer ROM.
[T-Mobile LG G2x] DsturbD:
yes, the recovery program is independent of baseband or rom, its the boot partition of your phone

but again, this will not root your phone. it only replaces the recovery part of your phone to allow you to install other roms

**edit**

took me a while but i finally found the thread on rooting your phone. this is what i did when i first got my g2x

http://xdaforums.com/showthread.php?t=1255214
[T-Mobile LG G2x] TU Homer:
Got it. I finally figured out how to OneClick Root my phone, which I easily did this morning. I'll load up CWM Recovery, so I can go from there. At present, I see no way to flash new programs without CWM.

-TU
[T-Mobile LG G2x] DsturbD:
thats correct. you need CWM to flash roms (there are other ways and other programs, but none better or easier on the G2x)

good luck and have fun!
[T-Mobile LG G2x] djmcnz:
Don't reinvent the wheel guys...

http://android.modaco.com/content/l...lash-setup-instructions-drivers-links-active/
[T-Mobile LG G2x] chillwill11:
Nice man I got CWM working at 6:30 in the morning before work. Took 5 min. Thanks, Future looks bright for our G2X

Edit: Quick boot into recovery not working FYI
[T-Mobile LG G2x] fitsnugly:
working fine here! thanks soyars
[T-Mobile LG G2x] mapin0518:
Ah good point, gonna remove my zip file link, and just link to this.
[T-Mobile LG G2x] baldwinguy77:
I used the Linux method in the OP (on Ubuntu) and it worked perfectly. The 'Software Update' screen was stuck on my display, but I simply waited about 10 minutes from when I began the flash to unplug my G2X, and when I did unplug it it booted up fine (normally and into ClockworkMod Recovery).
[T-Mobile LG G2x] xguntherc:
always make a backup sir. lol
[T-Mobile LG G2x] chrs2021:
I did have a back up!

my windows partition got messed up rebooting in to linux!
[T-Mobile LG G2x] Useless_Alias:
When you uplugged it after the 10 minutes did it automagically reboot or did you have to give it an attitude adjustment?

EDIT: Mine required an attitude adjustment. Let the beatings begin.....anyone restore a nandroid yet?
[T-Mobile LG G2x] ctso:
You're not stuck on a software upgrade screen, when your computer says the recovery image was transferred successfully, just pull USB from the phone and you're done.

Tools to reboot into recovery from the phone will not work, if you want to you can do this while root (via adb shell or something).

echo "boot-recovery" | dd of=/dev/block/mmcblk0p3 seek=6144 bs=1 ; reboot
[T-Mobile LG G2x] peacekeeper05:
Just read on my pulse's Phandroid rss feed that a g2x cwm is already available for testing. CooL.
[T-Mobile LG G2x] thanasisc4:
Wait I'm confused... this link takes care of nvflash... but what about CWM??
[T-Mobile LG G2x] joackie27:
You need nvflash to be able to flash the recovery (CWM) into your phone.
[T-Mobile LG G2x] Diceman4:
Anyone have an issue where it just says "NVFlash started" and then never does anything?
[T-Mobile LG G2x] thanasisc4:
Right I get that... but the info in the link only takes us as far as nvflash, what's the next step... I feel like I'm missing something painfully obvious :p
[T-Mobile LG G2x] NexVision:
Check naming of the files in your directory to the command.
[T-Mobile LG G2x] ctso:
You have to pull the USB and re-enter flashing mode after each nvflash command, otherwise it hangs like this.
[T-Mobile LG G2x] Diceman4:
Thanks! What a stupid mistake... glad my copy/paste error didn't have any actual consequences.
[T-Mobile LG G2x] joackie27:
Actually the instructions are outlined on the OP. It's just that the flash-recovery.sh script is for Linux. If you're on Windows, this post (http://xdaforums.com/showpost.php?p=13079970&postcount=17) might be able to enlighten you.
[T-Mobile LG G2x] jlevy73:
Glad to see you picked up the phone. #TD FTW
[T-Mobile LG G2x] thanasisc4:
Wow I knew i missed something, thanks alot!!
[T-Mobile LG G2x] mapin0518:
The link is so you can grab the Windows related stuff (APX driver and nvflash). Both are necessary to flash CWM recovery as instructed by the OP. I posted the Windows command earlier in the thread.
[T-Mobile LG G2x] Useless_Alias:
Grab the file from OP extract to nvflash folder
[T-Mobile LG G2x] nate420:
i tried it not working really ill test more when i got time....

it wont do anything past installing nvflash drivers
[T-Mobile LG G2x] ajftl:
Look for it on gtablet forum. I got it there.
[T-Mobile LG G2x] orestes25:
I was stuck at " Starting NVFlash" and going nowhere in windows.

I noticed that the posted command referenced recovery-star-test1.img while the file in the folder was recovery-star-test2.img. Changed to test2 and all was well :)

Hopefully this helps you guys that were stuck in the same spot.

adjusted command below:

"nvflash.exe" --bct E1108_Hynix_512MB_H8TBR00U0MLR-0DM_300MHz_final_emmc_x8.bct --bl fastboot.bin --download 5 recovery-star-test2.img
[T-Mobile LG G2x] thanasisc4:
Yup, I got it now... I figured as much to begin with, just wanted to make sure.

Thanks a lot guys!!
[T-Mobile LG G2x] gaww:
I had downloaded file earlier - it was test1. Download now, it is test2. Are the changes in the OP now included in test2?
[T-Mobile LG G2x] crazythunder:
my fault, but you should put one for test2.img as well. i'm good with adb and all, but i used the command for test1.img but had the actual test2.img. and thought all went well. started phone with vol. down and power and formatted. doh!!!! man, i love this stuff though. just one of the hazards that most newbs would never figure out on their own. glad i figured out my own error though. i got it working though. not much effort to reinstall apps.
[T-Mobile LG G2x] gaww:
I now have recovery flashed.

Problems along the way:

1. When I thought it had completed successfully, made the mistake of "vol down /power buttons". It had not been successful, and the buttons did a factory reset - which is apparently what happens with stock recovery.

2. OP and later posts did not say you have to continue to hold the vol up/down buttons down when you run the command. It failed to complete until I tried that.

Now I am having fun restoring everything (fortunately had a new clean titanium backup.

PS - when I go into recovery, if I let go of the power button before I do something - lie scroll up or down - it jus shuts off ??

Making a nandroid now, Have to mount external sd CARD, as new recovery does not mount the internal "sd card".
[T-Mobile LG G2x] xalucardx:
I succefully installed cwm and made a backup in external sd , only thing wrong is the date , it apear as month 5 instead of 4 ,but beside of that is perfect, also got stuck at fixing permission
[T-Mobile LG G2x] MtnDewMan:
I did it this way on Windows and it worked. Using Parallels on a Mac too :) I had to make sure the nvflash.exe program files were in the same directory as the other files for it to succeed.
[T-Mobile LG G2x] schmit:
I just went through this thread and I gotta say.. Thank you. Yep, thankful-clicky goodness coming too.

It's cool to see everyone hammering this stuff out.. I'm a bit green and the g2x is my first android, so I'm going to hold back until all the testing is done. Very fearful of crapping out my new phone.. lol

Anyways, thanks guys.. Thanks for your time and effort. Kudos to you.
[T-Mobile LG G2x] allofusjw:
Thanks for the recovery! An issue I've come across is when attempting to flash a zip file that resides on the internal sd card I get "no sd card found." I'm using the test-2 recovery. I do not have my own sd card inserted yet and so have not tried flashing anything that way yet. Not sure if recovery is made this way by design or not so I wanted to give a heads up. I had made a nandroid earlier using test-1 and there was no problem storing it on the internal sd card.
[T-Mobile LG G2x] crazythunder:
lol,i felt stupid that i did that. been doing this since the g1 came out. glad i wasn't the only one, but glad you got it fixed as well.
[T-Mobile LG G2x] pettigrew95:
When the phone is stuck on the S/W Upgrade screen can I just battery pull and then try to boot into recovery using Vol Down+Power? Nvflash said transfer was successful.

EDIT: I pulled the battery with the S/W Upgrade screen and the phone rebooted fine. However, I can not get into recovery. I tried powering on holding Vol Down+Power and I also tried reboot recovery command inside of terminal emulator but it just makes the device boot normally. See attached picture from the nvflash procedure I did. It all looks right. Any ideas why I can't get into recovery? Thanks!

EDIT 2: Got it to work...I wasn't holding Vol Down+Power long enough when powering the device on d'oh!!
[T-Mobile LG G2x] crazythunder:
did you unplug the usb, then pull the battery?

nevermind. didn't see your edit.
[T-Mobile LG G2x] cavenger:
YESSS!!!!

CLOCKWORKMOD RECOVERY!!! Thanks ALL!! :)
[T-Mobile LG G2x] gaww:
Read the OP - it was changed on test 2. It creates a conflict. You can only flash from external but only work with internal when booted up.
[T-Mobile LG G2x] allofusjw:
I have read the op many times. I did not interpret it as saying that since test-2 had the ext-sd functionality it meant that you then lose all of the functionality of the int-sd while in recovery.