yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] Rusty!:
Nope, extract the zip and run the batch file/shell script. Dead easy :)
[LG Optimus 2x] offwiththeface:
Is there a how to link on that anywhere or guide I have never done that before thanks again
[LG Optimus 2x] Striatum_bdr:
There's no link to provide like Rusty said just extract the files, connect your phone to he computer and double click on the .bat file (if you are running Windows ...) corresponding to the version you want to (see OP for descriptions).
[LG Optimus 2x] Harsh:
Recovery 5.0.1.6 is not yet perfectly working, yesterday I restored my rom, and It could not restore few apps, and also messed up with root, I dont know how it works, but 4.0.1.5 was restoring all ok
[LG Optimus 2x] Rusty!:
Well there is no source for me to build 5.x with yet anyway
[LG Optimus 2x] gliew_87:
rusty, can u compare with paul 4.0.0.5 cwm mod, with the origin why only when i installed paul's cwm no vibrate issue, but others will have vibrate issue.? wanna update to latest but the vibrate issue stop me moving forward. thanks
[LG Optimus 2x] Rusty!:
Looking at his git, there are only minor changes, nothing that should make any difference.
[LG Optimus 2x] gliew_87:
but weird, it do fix away d vibrate issue...
[LG Optimus 2x] kkrraazzyy:
cwm 5 works well
[LG Optimus 2x] Rusty!:
Thanks for that incredibly useful addition to this thread.
[LG Optimus 2x] remczar69:
Hi,

I have a following problem with the recovery. Prwviously I had a GB ROM and CWM 5.0.2.0 flashed and I made a backup of my ROM, then I tried many different ROMs including using SmartFlash, changing the BB etc. I have flashed a GB ROM again and installed the CWM ver. 4xx but then I can't restore my backup I made on the version 5.

Now when I update the CWM to ver. 5.0.2.0 in Rom Manager it says that I have this version installed, but there is no way I can boot into the Recovery. I tried everything: O2x recovery reboot app, Reboot into Recovery in Rom Manager and booting with Vol- and Power and it's not possible to boot into the recovery which makes the restore of my nandroid impossible aswell.

Could anyone please help me with a solution to this problem?

Thanks in advance.
[LG Optimus 2x] Rusty!:
You are correct, CWM5 backups are not backwards compatible.

Try manually installing v5.

Download this to your SD card: http://download.clockworkmod.com/recoveries/recovery-clockwork-5.0.2.0-p990.img

Open up a terminal or ADB shell and run

dd if=/sdcard/recovery-clockwork-5.0.2.0-p990.img of=/dev/block/mmcblk0p7
[LG Optimus 2x] remczar69:
Wow, thanks mate. I've been struggling with this s**t for the last few hours.

I also tried this: http://rootzwiki.com/showthread.php?4905-Can-t-boot-into-the-new-CWM-5.0.2.0-Here-s-a-quick-fix but didn't work. Maybe it'll work for someone else.

I would hit the Thanks button 10 times if I could :)

You saved my day. Thanks a lot again :D
[LG Optimus 2x] Rusty!:
I think the thing you were looking at covers a fake-flash install of CWM (as it's a .zip file, not a .img), the O2X doesn't use that :)
[LG Optimus 2x] remczar69:
Now I get it. Thank you for your quick help again :)
[LG Optimus 2x] Rusty!:
Would you look at that? An update!
[LG Optimus 2x] NickHu:
In the internal version, change "choose zip from internal sdcard" label to "choose zip from external sdcard"
[LG Optimus 2x] Rusty!:
Meh, I'll try and remember next update.
[LG Optimus 2x] rockerduck:
can I install this modded version over the regular Rommanager 5.0.2.0 version?

thanks
[LG Optimus 2x] Rusty!:
Yes, and ROM Manager will function with it just fine. It will report you're still on 5.0.2.0 though, no biggie.
[LG Optimus 2x] Basil 123:
Dunno why I cant seem to flash the new version - tried a couple of PCs and keep getting 'Inappropriate IOCTL for device' or 'failure to set prot mask' or summat.

Rusty's CWM are the best - the OEM one always makes me a little nervous :rolleyes:
[LG Optimus 2x] Rusty!:
You can ignore that error, it should have flashed it anyway. That's it trying to gain root if it you don't have it already. In fact I wouldn't be surprised if the psneuter exploit was fixed by now.
[LG Optimus 2x] Basil 123:
reports it as 5.0.2.0 in the actual recovery itself. So that's ok then?

Cheers

Baz

the OEM 5. whatever CWM is doing naughty things to my ROM - keeps breaking the radio. Flashed Rusty's one - didnt 'take'.... Phone Needs some more fiddling with..
[LG Optimus 2x] Rusty!:
Nope :D

It should say 5.0.2.3 in the recovery, but more than likely 5.0.2.0 in ROM Manager.

Try opening up the batch file and removing the lines that reference psneuter and running it again.
[LG Optimus 2x] Basil 123:
I tried that, thanks mate, but the recovery is still 4.0.0.9 (the original 5xxx version keeps messing up my radio whenever I do a backup with it....
[LG Optimus 2x] TrymHansen:
I did that yesterday, no effect. The script doesn't work when you're on Topo 1.7, you get "Permission denied" errors (for the dd-command as well.) I was able to do it manually though, using regular adb and "su" before doing anything else.

EDIT: May have something to do with an updated "su".
[LG Optimus 2x] Rusty!:
Ahhhhhh now we're getting somewhere. My guess is that ROM doesn't have ro.secure=0 set in the default.prop?

If so, coupled with being gingerbread (so the exploit doesn't work) would explain it. Best thing to do would be to install from the terminal/adb as mentioned above:

su
dd if=/pathtofile/recovery.img of=/dev/block/mmcblk0p7
[LG Optimus 2x] TrymHansen:
It *does* have ro.secure=0 in default.prop (whether it has any effect is another matter.)
[LG Optimus 2x] Rusty!:
Poo, unless it's ro.debuggable=1 that allows ADB to run as root, but I suspect it would have that set anyway.
[LG Optimus 2x] TrymHansen:
I does, yes. And "persist.service.adb.enable=1", if that matters.
[LG Optimus 2x] Basil 123:
I set ro.secure=0 (it was '1') but script still didnt work - although no errors reported. Will use the ADB commands like a proper hard-core person would....

thanks all

Baz
[LG Optimus 2x] Rusty!:
Should be no problem then. I'm guess adb shell gives a # prompt rather than a $ one?
[LG Optimus 2x] TrymHansen:
Not at first. "$"-prompt first, and after "su" you get "#".

Kernel-related? Comes with Neoblaze.
[LG Optimus 2x] Rusty!:
Ah-ha, that would be the problem then, although why that's happening I don't know. It's set up to go straight to the # (as far as I can tell from this little dialogue).
[LG Optimus 2x] Striatum_bdr:
I didn't mange to install 5.0.2.3 neither, with your script method and too lazy to to it manually... Don't mind.

In fact, same ROM (Topogigi 1.7 with NeoBlaze Kernel), when I run 'adb shell' command I have a user prompt $, and if I run 'su' I must authorize access in the Super User app on the phone to have #.
[LG Optimus 2x] Basil 123:
daft question, but what is the correct pathname to the sdcard to locate the img file to run it from the terminal app on the phone?

thanks

Baz
[LG Optimus 2x] 75markus:
adb-windows push clockwork-ext.img /data/local/

adb-windows shell dd if=/data/local/clockwork-ext.img of=/dev/block/mmcblk0p7

adb-windows shell rm /data/local/clockwork-ext.img

adb-windows shell rm /data/local/psneuter

so, no sd card, push it to data/local on phone !
[LG Optimus 2x] Rusty!:
Put it where ever you like, it doesn't matter :)
[LG Optimus 2x] Soulj4h:
Eh, if my phone is rooted, how would I go about installing this or flashing this .zip file? Are the instructions all ready in the zip file?
[LG Optimus 2x] TrymHansen:
Ehm, no markus, this doesn work in this particular case, read the thread above to see why.

Internal sdcard path: /sdcard/

External sdcard path: /sdcard/_ExternalSD/

For example, if you copied clockwork-ext.img or clockwork-int.img to your internal sdcard, the commands would be:

su
dd if=/sdcard/clockwork-ext.img of=/dev/block/mmcblk0p7
exit

---------- Post added at 07:20 PM ---------- Previous post was at 07:14 PM ----------

Yes. Provided you're on anything else than Topogigi ROM, just unzip the archive and doubleclick the script-file matching your architecture and choose internal or external. (If you have a sdcard, run the ext-version, if not the int-version).
[LG Optimus 2x] 75markus:
yeah, you´re right of course ;)

i just copied it from .bat file :p
[LG Optimus 2x] R4fo:
So, in order to install CMW in Topogigi 1.7 ROM I've to use the following commands after adb push clockwork**.img???? Any others commands need it???

su
dd if=/pathtofile/recovery.img of=/dev/block/mmcblk0p7
exit

Thanks!
[LG Optimus 2x] Basil 123:
The terminal adb commands worked a treat. Now I have what has always been the most reliable CWM- Rusty's.

Thanks all

Baz
[LG Optimus 2x] Rusty!:
Reliable? Mine's hardly any different to official now, just different splash screen and potential SD-EXT support (never tested it).
[LG Optimus 2x] spica1234:
Very nice work:)

but I've a prob here. ROM MANAGER doesn't recognize as cwm installed and recommends to install cwm especially with rom updates and backup:)
[LG Optimus 2x] Rusty!:
Menu - Manual Flash Override
[LG Optimus 2x] remczar69:
Hi,

I have just noticed a very strange behaviour. Everything was running great with the Topogigi's 1.7 + GB icon pack + Topoblaze kernel, so I decided to make a nandroid backup just in case of emergency. I went to CWM, the backup was made successful, so i reboted the phone and it hung!

I did pull out the battery couple of times but it keeps freezing either on the first LG Logo or a black screen with the buttons lit.

The restore in cwm didn't help, I had to re-flash the ROM.

I am using the CWM 5.0.2 from Rusty!.

Can anyone please tell me if it's a CWM related problem? and maybe there is a solution for that?

Thanks
[LG Optimus 2x] Rusty!:
Some sort of update has occurred
[LG Optimus 2x] VelkyPritel:
For me works this very well using terminal:

Copy clockwork image to internal SD card (for me I: in PC)

I shortened name to 5026.img (not too much writing...)

And in terminal use this (be accurate!)

su

dd if=/sdcard/5026.img of=/dev/block/mmcblk0p7

exit

That's all, reboot to recovery and there is 5.0.26 version...
[LG Optimus 2x] Rusty!:
Er, that exact command was covered on the previous page? In fact, it was the last page when you posted, so you had to have seen it?
[LG Optimus 2x] VelkyPritel:
For me don't work installation via USB and ADB commands, i don't know why.

I was trying it many times, looking also in other mobile forums, but nothing

works. On my previous mobile (Nexus S) it was easy by using terminal.

On Optimus 2X due 2 SD cards terminal won't work and after some trying

i found this way to install. So i decide to write this for those people, who have

also problem to install recovery. And yes, it is command from previous page,

i am not author, only poor user. If you are angry, sorry.

P.S. Sorry for my english, this is not my native language.
[LG Optimus 2x] antec123:
thanks m8 for this newer version will try

i always install the CWM with usb debugging on, already root, and just click the .bat file which one you want internal or external. it works every time
[LG Optimus 2x] VelkyPritel:
USB debugging On or OFF, clicking the .bat file for ext or int,

nothing work, i am trying everything (i'm not new in flashing roms

or basebands etc. on my mobile), but NOT WORKING. So installing

CWM this way is impossible for me. I am happy with terminal emulator,

which work... Don't write :

it works every time

maybe for you, but not for me... :-(
[LG Optimus 2x] Rusty!:
USB debugging needs to be on.

If you're on a 2.3 ROM and run adb shell and get a $ instead if a # it would explain why it doesn't work.
[LG Optimus 2x] Striatum_bdr:
I've search a while but didn't find clear answer for Optimus.

Nvflash is a way to install CWM (intersting if I understood correctly in non rooted ROM, as you can then flash su by cwm), what would be the procedure for Optimus?

EDIT: oups, my eyes were for sure not opened ... Found your thread about Nvflash recovery from disaster lol... Thanks !!
[LG Optimus 2x] MPodlesnik:
If i want system on Internal Card ( Phone ) Which one i need to install ? Internal ?
[LG Optimus 2x] Rusty!:
Internal is for people that want to use ROM Manager with stock based ROMs.
[LG Optimus 2x] MPodlesnik:
i want CM7 on memory of the phone ( internal ) and sd card (external ) ...

Is this possible ? Now i have all on my sd card and nothing on the phone memory :)
[LG Optimus 2x] Rusty!:
OK, that's nothing to do with the recovery.

Settings => CyanogenMod Settings => Application => Use internal storage
[LG Optimus 2x] MPodlesnik:
will try thanks!
[LG Optimus 2x] LeoMar75:
@Rusty

Hi mate, I am facing and issue while using extendedcommand with CWM Recovery 5.0.2.6.

Let me explain you better what's the issue here.

I developed long time ago an application that write command on the extendedcommand file.

Basically, before CWM 5 came out, i used to install zip file by writing install_zip("/sdcard/download/whatever.zip");

to /cache/recovery/extendedcommand file.

Now with the possibility to have booth external and internal sdcard, i have noticed that files in external sdcard are recognized as if they were in internal sdcard and viceversa.

File to be installed is located in my sdcard (internal), with CWM 4 everything works correct.

The point is that i am getting "No such file or directory" but if i try to manually flash this zip it actually works fine. The patch is correct, the filename too.

I have also tried /emmc/download/blablabla instead of /sdcard/... but with the no success at all.

Below you will see the recovery log.

Thanks in advance, looking forward to hear from you soon!

LeoMar75
[LG Optimus 2x] dadino88:
How do i install this recovery? I did a mistake and istalled the one from rom manager, so now i can't use the recovery to flash cause it doesn't find the sd card.
[LG Optimus 2x] Rusty!:
Just with the batch file in the zip.

Re: the failure above, I got nothing lol. If the paths are correct, I can't see why it wouldn't work.
[LG Optimus 2x] dadino88:
Doesn't seem to work. I got adb installed, phone plugged with usb (did anything to connect it with adb), launch the batch file, some command line then nothing.
[LG Optimus 2x] Rusty!:
That's all that's meant to happen.
[LG Optimus 2x] Striatum_bdr:
Reboot in recovery and you'll see.
[LG Optimus 2x] Rusty!:
Updated to v5.0.2.7
[LG Optimus 2x] biasquez:
@Rusty!

why cwm 5.0.2.7 is not available in rom manager?

why cwm 5.0.2.0 installed with rom manager backup only external sd?

is it possible to install cwm 5.0.2.7 (internal storage) manually with rom manager?
[LG Optimus 2x] Striatum_bdr:
As it is not compiled by Rom Manager Team, Rusty!'s version is not detected by ROM Manager. You have to install it using the batch (or sh files if you are on Linux) files included in .zip. Works flawlessly. Will be detected as 5.0.20 but no harm.
[LG Optimus 2x] Rusty!:
Also it's not likely an internal version will ever be made available from ROM Manager.
[LG Optimus 2x] biasquez:
on twitter, i see this:

Added CWR backup/restore support for internal sdcards. Still working out the ROM Manager.
[LG Optimus 2x] Rusty!:
That could be handy, depends how it works though.

Stock ROM and CWM identify the internal/external cards differently, which is the sticking point.
[LG Optimus 2x] Harsh:
Rusty could you make one again latest one. As latest one have this recover from internal sd built in. So i guess from now on you only need one
[LG Optimus 2x] MPodlesnik:
in the recovery...are the settings for the ext partition size and swap size important ? I have 16gb SD card,..which are the best settings ? or this is not soo important?
[LG Optimus 2x] djmcnz:
Not important. Well, by that I mean don't set it up. This phone doesn't need an extra ext partition.
[LG Optimus 2x] orlox:
mediafire is down.... now...
[LG Optimus 2x] Rusty!:
I've got it right here waiting, but...
[LG Optimus 2x] orlox:
rusty -> http://www.putlocker.com/

pretty plz with sugar on top?
[LG Optimus 2x] Rusty!:
http://www.putlocker.com/file/F16B9010C9BBF72F

The ROM Manager internal storage option is greyed out, but the option in recovery is there.
[LG Optimus 2x] orlox:
nm ty ty ty ty
[LG Optimus 2x] Rusty!:
Pft, I've already done that :p
[LG Optimus 2x] Rusty!:
Updated CWM to support backup/restore via internal storage.
[LG Optimus 2x] kitty's_daddy:
Is it fixed advanced restore from internal sd ?
[LG Optimus 2x] Ohlikken:
Can no longer install this on my phone.

The bat/cmd window just disappears after clicking it.

EDIT: Went back to xx2.6 and working without any problems again.
[LG Optimus 2x] Rusty!:
It should open and close after a few seconds, it'll be faster than before as I removed the psneuter part of it. I'm not sure it's relevant on newer builds & and everyone should have ro.secure=0 by now anway.

If it happens in an instant, I would think ADB isn't working right on your system? It should at least push the file to the phone which doesn't require any permissions.
[LG Optimus 2x] Ohlikken:
Had it installed and even tried running to see if that would change the outcome but nope.

Win7 64bit with no microsoft security or antivirus.
[LG Optimus 2x] Rusty!:
What happens if you run adb-windows shell from the folder you've extracted it all to?
[LG Optimus 2x] Ohlikken:
CMD poped up with very fast scrolling text then closed.

Could see that adb was running in the taskmanager.
[LG Optimus 2x] Rusty!:
You'll have to run it from a command prompt really.
[LG Optimus 2x] mujju85:
currently i m on modoco recovery how can i switch back to ur recovery plz help i need to install miui :(
[LG Optimus 2x] Rusty!:
Extract zip file, run the internal or external batch/shell script.
[LG Optimus 2x] mujju85:
i hav done that but after running that cmd prompt and closed quickly and i still having modoco recovery
[LG Optimus 2x] Rusty!:
You can do it manually easily enough. Copy the .img file to your phones SD card, open a terminal app and run:

su
dd if=/sdcard/cwm-ext.img of=/dev/block/mmcblk0p7
[LG Optimus 2x] mujju85:
thanks rusty u r genius :rolleyes:
[LG Optimus 2x] ludow:
Rusty, any good solutions for latest GB version? How to install CWM?
[LG Optimus 2x] Rusty!:
Yeah there is a 'root for dummies' thread somewhere.
[LG Optimus 2x] ludow:
Actually I meant that your versions does not install anymore (GB).

I have root, without dumminess. :p
[LG Optimus 2x] Rusty!:
Got ya. Thing is, for the batch file to work, you need more than root, you need ro.secure=0

In a nutshell, that allows ADB to run as root (# rather than $).

Previously the psneuter exploit was used to achieve this for people without the insecure boot image, but that isn't GB friendly (and I think it was killed off in later froyo builds, so I just removed it from the batch). I have seen a new exploit though, so I will try including that and it might help people.
[LG Optimus 2x] Rusty!:
And with that in mind, here is a quick test with the zergRush exploit included.

If the zip in the OP doesn't work for you, try this: http://www.mediafire.com/file/wak7adbhemffgpf/cwm-5.0.2.7-R1-zerg.rar
[LG Optimus 2x] TrymHansen:
I couldn't get the (unmodified) Zerg to work when I tried it, and this doesn't seem to work either. It claims to break in, but does not in reality get ADB root access.

adb server is out of date. killing...
* daemon started successfully *
1125 KB/s (23056 bytes in 0.020s)

[**] Zerg rush - Android 2.2/2.3 local root
[**] (C) 2011 Revolutionary. All rights reserved.

[**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.

[+] Found a GingerBread ! 0x00016118
[*] Scooting ...
[*] Sending 149 zerglings ...
[+] Zerglings found a way to enter ! 0x10
[+] Overseer found a path ! 0x000161e0
[*] Sending 149 zerglings ...
[+] Zerglings caused crash (good news): 0x40121cd4 0x0054
[*] Researching Metabolic Boost ...
[+] Speedlings on the go ! 0xafd25821 0xafd392e7
[*] Popping 24 more zerglings
[*] Sending 173 zerglings ...

[+] Rush did it ! It's a GG, man !
[+] Killing ADB and restarting as root... enjoy!
cannot stat 'clockwork-ext.img': No such file or directory
/data/local/clockwork-ext.img: cannot open for read: No such file or directory
rm failed for /data/local/clockwork-ext.img, No such file or directory
[LG Optimus 2x] Rusty!:
I can see a problem with that... the img files are named cwm-ext.img and the batch is looking for clockwork-ext.img instead.

Must have been an old batch I modified. D'oh.

New one uploaded :D
[LG Optimus 2x] TrymHansen:
Duh, I didn't even think to check, that's how much I trust you. File not available at the moment, will test as soon as I can get it. (I'll modify the old one in the meantime.)

New result:

adb server is out of date. killing...
* daemon started successfully *
1023 KB/s (23056 bytes in 0.022s)

[**] Zerg rush - Android 2.2/2.3 local root
[**] (C) 2011 Revolutionary. All rights reserved.

[**] Parts of code from Gingerbreak, (C) 2010-2011 The Android Exploid Crew.

[-] Cannot copy boomsh.: Permission denied
1739 KB/s (3672064 bytes in 2.061s)
/dev/block/mmcblk0p7: cannot open for write: Permission denied
[LG Optimus 2x] Rusty!:
Different output to last time, looks less successful right off the bat, and the permission denied bits are pretty clear.
[LG Optimus 2x] TrymHansen:
I don't know if this'll be any help, but I figured that for the majority the rooting is unnecessary, it's something you do once, that's it. So I changed the script to this: (I first did a linux-script which the script installed on the phone, then did the rest from there, but realized it was unnecessary.)

@echo off
adb-windows push cwm-ext.img /data/local/
adb-windows shell "/system/xbin/su -c 'dd if=/data/local/cwm-ext.img of=/dev/block/mmcblk0p7'"
adb-windows shell rm /data/local/cwm-ext.img

Not terribly elegant (no checking if 'su' exists, among other things), but as long as you're already rooted, it works, and it shouldn't matter whether you originally get the $ or the # prompt.
[LG Optimus 2x] Rusty!:
Now why didn't I think of that /facepalm

Edit: OP updated with new scripts that run su.
[LG Optimus 2x] ludow:
Thanks a bunch!
[LG Optimus 2x] orlroc:
i've a big error!! I'm on stock 2.3.4 with root and when i try to restore a nandroid backup i see the error: Error while restoring /system!

How can i restore my nandroid backup now??? :(

thx for help

orlroc
[LG Optimus 2x] Rusty!:
What does the log say?
[LG Optimus 2x] TrymHansen:
EDIT: Ah, Rusty's on the case, I'll leave it to him.
[LG Optimus 2x] orlroc:
Hi Rusty! I'm on v20l rooted and i've tried with 5.0.2.6 and 5.0.2.7 .

I've tried to restore a backup maked some minutes before.

The log say this:

backup/2011-11-02.21.40.18//system.ext3.tar

Restoring system...

I: Formatting unknow device.

rm: can't remove '.' or '..'

rm: can't remove '.' or '..'
[LG Optimus 2x] Rusty!:
I can restore just fine, only real difference is EXT4 on mine. Might be related to that I suppose.
[LG Optimus 2x] ULJ:
I've just discovered a bug. I am using the external version but when I try to make a avanced restore, it says there is no files. I think it looks at the internal memory instead of the external memory (sd card).
[LG Optimus 2x] Rusty!:
Yep, confirmed.

Sure it'll get sorted.
[LG Optimus 2x] tball:
Okay I have this problem, which I hope you can help me solve.

I have a LG Optimus II, which I yesterday just upgraded to latest stock rom (Android 2.3.4).

So I wanted to experiment a bit with other roms, so I installed this cwm recovery tool and made two recoveries (just to be sure one of them would work).

I actually tested the recoveries after a hard reset and they worked just fine. They were able to restore all my settings.

After that, I installed Cyanogenmod 7.1 and made a factory reset. Cyanogenmod is great, but now I want to go back to stock. But I can't!

Whenever I restore my recoveries, which says restored successfully, I end up in a boot loop?

Does anyone know what is happending and how I might be able to restore it in a prober way?
[LG Optimus 2x] TrymHansen:
Probably this - you need to convert your partition(s) back to ext3 before restoring the backup. Attached in this post.

Put it on your sd-card, install it from CWM, then restore.
[LG Optimus 2x] tball:
Thank you so much. I will try it when I get home from work today :)
[LG Optimus 2x] tball:
It worked flawlessy. Thanks.