yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Original Android Development] Vintersorg:
Thanks!

Thanks !

works like a charm. I have installed your custom recovery. Backed up everything with nandroid, tried KeruROM, flashed back my original branded ROM from nandroid backup.

Everything works. I'm not going to try flash back my original recovery mtd, there is no reason to do it, but have a dd backup just in case. I don't know if it is safe to tamper with recovery mtd, cause I'm not sure if it is re-flashed after every system shutdown. I don't think so, cause I haven't found recovery.img in /system.

I have two questions regarding flashing custom recovery. I haven't used this command:

# mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak

cause, i didn't found this script on my phone. Is it ok?

Second question: Is it mandatory to copy flash_image to /system/bin with this command?

cat /sdcard/flash_image > /system/bin/flash_image

Can't we use /data/local/tmp directory and running flash_image from there as we used in the process of rooting the phone? This way we don't have to remount /system in rw and do not have to modify it.

Now I'm going to explore ROM modding ;-)
[Optimus One, P500 Original Android Development] drellisdee:
Flash_image doesn't have to be there but for simplicity I put it there so it would be in :PATH. The install-recovery.sh is an evil script that will rewrite a recovery on boot with stock recovery(that only is there on some phones after an official ota update) so rom markers please remove it if it exists.
[Optimus One, P500 Original Android Development] Joeseph Mother:
Any chance the p509 optimus t is similar enough for this to work? I'm willing to be the guinea pig if it should work.
[Optimus One, P500 Original Android Development] drellisdee:
Its close enough it has a very good chance of working but will take a guinea pig to verify. Kernel should be close enough to try. Only differences I saw in the ramdisk of p500 & p509 was model number and lang of en GB and en Us repectively. I had a bad/corrupt dump to work off of on the p509/T. I could use a good dump source with a md5sum to verify its not corrupted in uploading/downloading.

make sure you do this 1st to backup your stock recovery

from terminal or adb shell

dd if=/dev/mtd/mtd2 of=/sdcard/recovery-dump-T.img bs=4096

please upload that dump for me with a md5 too and I'll work on an official.
[Optimus One, P500 Original Android Development] ruigui:
Can it be done without root? As normal user?
[Optimus One, P500 Original Android Development] skywalker788:
Thanks of all to drellisdee

I want to advertise that the custon recovery file is no more available at Media fire link that suggest us.

Waiting that the file will be restored is there someone that can upload it???

Thank's of all!!!
[Optimus One, P500 Original Android Development] Joeseph Mother:
Are you just wanting kernel & recovery dumps, because I think I've already changed most other things on my system
[Optimus One, P500 Original Android Development] Joeseph Mother:
Installs, starts off saying E:Bad boot message "

Button layout is correct.

Usb mounting works.

Wipe appears to have worked.

Backup fails with Error:Run 'nandroid-mobile.sh' via adb!
[Optimus One, P500 Original Android Development] skywalker788:
I was looking for just the custom recovery (recovery-RA-GNM-thunderg-1.1.0.img.zip). Now it's available again!!!!

I think that i 've to apply it anyway.

Then if you say that some new rom and kernel are incoming it could be great!!!! :)

I hope to learn the necessary to help in development ... in this time i accept your works...
[Optimus One, P500 Original Android Development] drellisdee:
You get that error on nandroid if battery is below 30%
[Optimus One, P500 Original Android Development] drellisdee:
yes I only need the recovery one.
[Optimus One, P500 Original Android Development] ruigui:
It was last post on previous page... Can these backups be done as normal user, or must it be as root?
[Optimus One, P500 Original Android Development] personalweb:
Recovery menu?

Only with root settings....;)
[Optimus One, P500 Original Android Development] Joeseph Mother:
I wish it was that easy, battery was 90%.

Stock T recovery:

http://www.mediafire.com/?01bleb4njbf1ccy

md5: b18bd6e79c7b962739816a2f1d4bdacf
[Optimus One, P500 Original Android Development] ruigui:
You didn't understand. If i am working on a terminal emulator, must the following command be done as root or can it be done as normal user?
[Optimus One, P500 Original Android Development] rakesh_4utoo:
try Nand+adroid.secure backup

this works everytime for me
[Optimus One, P500 Original Android Development] majdi star:
thank you very much it's work now but i have 2 small question ..

these backup Includes every thing or just android system files ?

i am keep my nadroid files on my computer if format my sd card any time and If i want to do restore i have to just copy my nandroid om my computer to sd card and then make restore that it's right ?

thank you very much to help me ....

majdi star
[Optimus One, P500 Original Android Development] DonJuan692006:
The back+.android secure will backup the everything except ext3/ext4 partitions. You have to do the backup option that includes the ext partition to back it up as well. Yes you can copy the nandroid folder over to your computer, format your SD card, and then move it back.
[Optimus One, P500 Original Android Development] juven:
Hello!I have a problem with the custom recovery because doesn't work nothing.I can't partition the sd and i can't install custom roms!Can you help me?Thank you!
[Optimus One, P500 Original Android Development] starix:
NEW VERSION OF CUSTOM RECOVERY

Custom recovery v1.2 finaly with ext4 support (updated recovery + updated kernel with ext4)

based on drellisdee works. thx man!
[Optimus One, P500 Original Android Development] cyanide911:
So I installed the custom recovery, but when I give the command: "reboot recovery" in adb, the phone 'resets' and boots into the unchanged stock OS with the new phone setup screen and all. If I try Home+Volume down+Power, the phone just resets again!

The files in my SD card are flash_image.zip and recover-RA-GNM-thunderg-1.1.0.img.zip

Do I have to extract the zip files before doing the whole procedure?

EDIT: Yes I do have to. Solved.
[Optimus One, P500 Original Android Development] thenenea:
Yes. The images are inside.
[Optimus One, P500 Original Android Development] Jaylapeno:
Is this one that you have personally modified based on drellisdee's?
[Optimus One, P500 Original Android Development] sugaritos:
thanks!! the ext4 partition is mounted.. i can do a nandr backup +ext+ andr secure and restore back successfully!! Only on void rom i cannot restore my backup and i thing is because of its module stacture..
[Optimus One, P500 Original Android Development] robsbeat1:
So how do we upgrade the custom recovery? Same way as we installed the first one or?
[Optimus One, P500 Original Android Development] sugaritos:
yes the same way.. but you must change the name to adb in order to be the same with the recovery.
[Optimus One, P500 Original Android Development] taha198:
Installed the recovery but unable to locate zip through recovery. Only folders are shown.
[Optimus One, P500 Original Android Development] masteryx:
The zip file must be directly on the sdcard (this is what "sdcard root" means), not inside some folder.
[Optimus One, P500 Original Android Development] starix:
what version of recovery do you use?
[Optimus One, P500 Original Android Development] starix:
Not all folders listed to sreen, so create folder started from "AAA" for examle to see it first...
[Optimus One, P500 Original Android Development] taha198:
I know that. Previously only zip files were shown but now only folders are visible but that Too not all folders. Btw putting zip in folder AA worked.
[Optimus One, P500 Original Android Development] masteryx:
Well well well... indeed, to my surprise, this new version shows you the folders on the sdcard and you can now browse for your flashable zip file. I understand though that having too many folders on your card makes the zip file fall outside the visible folders/files range. As a workaround, you must create a folder that will show up among the first, therefore the "aaa" name recommendation, and put the zip files inside.

Also, restoring a full backup (nand + android_secure + ext) worked without problems.

Thanks, starix.
[Optimus One, P500 Original Android Development] Kwen:
On a Optimus One P500h (Canadian Telus variant), with 1.1 installed, I tried a nand + .android_secure and it took forever and never completed, just "..." for over a hour.

Anyone else experienced this issue?
[Optimus One, P500 Original Android Development] yelo3:
[EDIT] solved repartitioning SD card.

----

Hello everyone, I have a problem with 1.2 recovery: I can't access the SD card from my PC (from either windows 7 or ubuntu). After clicking in the USB-MS menu I get the messages "USB-MS enabled", but the OS just sees an empty SD card reader (with no media inserted).

From android I can access the SD without problems, and from the recovery I can mount it and browse it in the "flash zip" menu.

any help?
[Optimus One, P500 Original Android Development] Omnichron:
thanx! worked like a charm. got my p509 all set. look 2@ sig :D
[Optimus One, P500 Original Android Development] Kwen:
Tried again the next day and it only took a few mins, weird.
[Optimus One, P500 Original Android Development] Zerobarat1:
It's SD card failuires mate :( . I had them on my first 8 gig class 6 sd card that I bought and shortly changed it with a Teamgroup one.

Can't say the Teamgroup didn't woo me once with this issue but it's far more stable then the A-data I first purchased.
[Optimus One, P500 Original Android Development] mitsuu84:
Please, how to upload Recovery 1.2? I do this whole procedure as for the recording 1.1.0?

zip file is only LGp500-recovery-v12iimg :-( . I can not upgrade from 1.1.0 to 1.2 :-( . You do not know how to do it please?
[Optimus One, P500 Original Android Development] masteryx:
@ mitsuu84: You also need the "flash_image" file, attached for your convenience. Unzip it and place it on your SD card. And yes, the entire procedure must be followed.
[Optimus One, P500 Original Android Development] mitsuu84:
Thank you very much for help. Now I tried it and it works. thanks again
[Optimus One, P500 Original Android Development] thatduderob:
The Nan back up never worked for me on 1.1...

Just installed 1.2 and did two backups no problems

SWEET Thanks
[Optimus One, P500 Original Android Development] kewell79:
$ mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system

mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system

mount: Operation not permitted

does anyone know why i get this error?
[Optimus One, P500 Original Android Development] Kwen:
You need to be "root", shell should be # vs $...

Try su or su -
[Optimus One, P500 Original Android Development] dbzzz:
How this recovery stores ext-partition? I'm using link2sd and not able to store ext partition doing backup of "nand + ext + .android_secure" from recovery menu.

Seems like it can be used only for app2sd, because log file stores smth like "cannot find ./app*" and backing up of ext partition fails.

Seems like Clockworkmod 3.0.0.5 working the same way.

Am I right?

Thanks!

upd. From log file:
[Optimus One, P500 Original Android Development] dbzzz:
Investigated...

Is ther an ability to modify Thunderg recovery so that it will store ext partition not by "app*" wildcard, but by "*" wildcard instead? It would be great for those who don't use app2sd but use link2sd or other applications that operate with ext-partition.

Can I do it myself by editing recovery image in hex-mode? Seems that it's packed... I don't know anything about its format...
[Optimus One, P500 Original Android Development] bluviper:
"Flash zip" menu doesnt show my zip files on root directory.... how come?

it only shows cache directories for my selected apps
[Optimus One, P500 Original Android Development] masteryx:
You have many folders on your SD card. The zip files are shown at the end, but they fall outside the visible range. This version of recovery lets you browse the folders, so put the zip file inside a folder you can see. Suggestion: create a folder that alphabetically will be among the first, like "aaa".
[Optimus One, P500 Original Android Development] bluviper:
i see... thats why i cannot go down further on the list...

will try that.. thanks for the tip!!! i guess we can consider this a bug?

--------------

EDIT

ok that worked... relocating my flashable zips into an "A" list folder made me accessed them with this recovery.

i guess we should tell the author about this bug on file listings.
[Optimus One, P500 Original Android Development] dbzzz:
Halo!

Is anybody here?

How can I build Thunderg recovery from scratch? I have Amon-RA sources, but seems like they don't contain nandroid part. Where can I find full sources-pack need to build Thunderg recovery?

This is for personal use only.
[Optimus One, P500 Original Android Development] salvatore94:
The source of drellisdee recovery are here:

https://github.com/getitnowmarketing/Amon-Ra-Style-Recovery-Optimus_Lineup
[Optimus One, P500 Original Android Development] dbzzz:
I know. I wrote about this. This is only recovery part, not nandroid one. I need just modify some strings in nandroid-mobile.sh that is packed into recovery. How can I do this? I need my changes to be persistent.
[Optimus One, P500 Original Android Development] drellisdee:
I just built a link2sd one to test. You need to dump the recovery.img to get the scripts fyi. Treat the recovery.img same as a boot.img to dump it.

recoveryRA-thunderg-v1.2.1-GNM.img.zip

md5 = 388aac16b1184ab15b5500b2b32d914c

Changes in 1.2.1

Updated kernel now supports ext3 & ext4 filesystem

Now uses directory browsing in zips & zips in root of sdcard. (Note you cannot scroll down more than what is output on screen so if your sdcard has a lot of folders make a "A" or "custom_rom" folder as its done in alphabetical order and place update.zip's there) Finally got around to updating this one as I already updated all the other optimus ones.

Updated nandroid script and recovery binary to hopefully support linksd (untested) This will backup the sd-ext part as a whole using link2sd option

Note this recovery.img is 4.9mb and the recovery partition on thunderg is only 5.0mb so people with lots of bad nand blocks may not be able to flash this one

Please post link2sd feedback.
[Optimus One, P500 Original Android Development] ptesmoke:
e720

drellisdee,

ive been looking and reading as much as possible about the e720 (chic) it seems its very close to the p500 in specs. do you have any plans of a custom recovery for it? i can confirm it is rootable on stock rom with z4root 1.3 i have my wifes perma rooted with it but would like to at least upgrade it to a less bloated rom.

i myself rock a G2 unlocked and on cm7, and am pretty familiar with flashing,rooting, recoveries etc. would love to help out in any way i can if you think its worth while looking into the e720.

thanks for your work and pm me if youd like m8. cheers!
[Optimus One, P500 Original Android Development] dbzzz:
Choosing "Nandroid + link2sd backup" I'm getting a next screen with choosing dest dir dialog as on restoring.

And will "Nandroid + link2sd backup" back up .android_secure too?

Also I think you should replace all '*' with '.' in these strings:

tar -cvf $DESTDIR/link2sd.tar *

tar -cvjf $DESTDIR/link2sd.tar.bz2 *

tar -cvzf $DESTDIR/link2sd.tgz *

so that they will be:

tar -cvf $DESTDIR/link2sd.tar .

tar -cvjf $DESTDIR/link2sd.tar.bz2 .

tar -cvzf $DESTDIR/link2sd.tgz .

Thanks.

BTW, why don't just change existing backup scrpit to store full ext partition? It's can be done by changing all './app*' with '.' in next strings:

tar -cvf $DESTDIR/ext.tar ./app*

tar -cvjf $DESTDIR/ext.tar.bz2 ./app*

tar -cvzf $DESTDIR/ext.tgz ./app*

Right now, on v1.1.0 I'm calling my own script through ADB:

cat /sbin/nandroid-mobile.sh | sed 's/.\/app\*/./' > /sdcard/temp.sh

cat /sdcard/temp.sh > /sbin/nandroid-mobile.sh

rm /sdcard/temp.sh

then just choosing "Nand + ext_backup + .android_secure'.

The only problem is that this change is not persistent. Every time I need conenct cable, start ADB and call my script.

Thanks again.

Hope everything is clear for you and you can do this simple thing.
[Optimus One, P500 Original Android Development] victortangocharlie:
Hey drellisdee,

JUST GOING TO STATE THE OBVIOUS.

Please consider updating your first post in this thread with your latest release alongwith screenshots if possible. You would also get more feedback regarding the link2sd option.
[Optimus One, P500 Original Android Development] sovikhaque:
I don't know why but i don't seem to have custom recovery anymore. I have installed Prime 2 rom and then Megatron Rom. Now its not there anymore. Do i have to install this again?

EDIT

Sorry guys, Managed to get it working. I was not pressing long enough. Silly me
[Optimus One, P500 Original Android Development] taha198:
Can someone post 1.2.1 in dropbox. I m unable to download from mediafire thru my phone
[Optimus One, P500 Original Android Development] masteryx:
Reuploaded to my Dropbox account ---> LINK
[Optimus One, P500 Original Android Development] taha198:
Thanks
[Optimus One, P500 Original Android Development] bluviper:
still cant restore a NAND backup....

the option always brings me to "backing up" process even if i choose Nand restore.

can someone try the same thing? make a backup, and then try restoring...

-----------------------

sorry my bad, not reading....

trying link2sd as restore....

TIA
[Optimus One, P500 Original Android Development] taha198:
Same with me, its not recognize my backup and restore option always bring to backup option. Reverted back to 1.2
[Optimus One, P500 Original Android Development] bluviper:
@taha198

if you tried using the other option meaning this >>> "Nand backup + link2sd"

that will restore the Nand backups you have. atleast mine did.

i thought i want to revert back to 1.2, but then i saw that option... then it was ol good for me.
[Optimus One, P500 Original Android Development] Rebel_lord:
Okay I've gotten my phone downgraded to 2.2 and it's been successfully rooted using Z4 (installed with the apk ... SuperOneClick didn't work for some odd reason)

I'm trying to flash on the custom recovery by drellisdee. I have the flash_image.zip and the recovery-RA-GNM-thunderg-1.1.0.img.zip in the root of the SD card.

I've typed in su to get super user access (changing my initial character to # from $).

Then I typed in mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system. No errors.

But when I attempt this cat /sdcard/flash_image > /system/bin/flash_image. No dice .. says /sdcard/flash_image: No such file or directory. I've tried extracting the flash_image.zip to its own directory and the error changes to invalid length. Can anyone give me some pointers on what I'm doing wrong? I know the SD card is not mounted as the USB drive ... I know it's also visible cuz I can do a ls and then cd into it and see the contents of the card.
[Optimus One, P500 Original Android Development] DonJuan692006:
Dude you have to extract the actual flash_image file from the flash_image.zip and then put it on your SD card.
[Optimus One, P500 Original Android Development] masteryx:
You need the files inside the zip archives to be placed on your sd card, not the archives. Also, do not place them inside any folder, but straight on the sd card.

At the line that starts with the "mv" command, if you receive an error message don't panic and move on to the next line.
[Optimus One, P500 Original Android Development] Rebel_lord:
ah makes so much more sense now ... I thought these were like signed zips
[Optimus One, P500 Original Android Development] chicochico:
Hi, thanks for sharing this information. I just got it right! Great job...
[Optimus One, P500 Original Android Development] havoc69:
Hi,

Tried 1.2.1 but no go, I got "Error writing recovery, no space left on device" After a few "out of memory" errors. So I tried 1.1.0 which worked no probs. Any ideas what went wrong?
[Optimus One, P500 Original Android Development] ptesmoke:
I would like to try this on the wifes lg chic e720, what do you guys think?
[Optimus One, P500 Original Android Development] ganesh3s3:
Error

I get an error when installing...

When i enter

# flash_image recovery /sdcard/recovery-RA-GNM-thunderg-1.1.0.img

i get

usage: flash_image partition file.img

and when i reboot into recovery, it goes to the stock one and factory resets my phone. PLEASE HELP...
[Optimus One, P500 Original Android Development] spiralspirit:
when I did this it required that I be case specific. did you make sure the parts that are capitalized are capitalized when you put them into the terminal emulator?
[Optimus One, P500 Original Android Development] lerkin:
Hi, great work this that custom recovery.

But I have several problems with it:

1) There are mess up with options in backup\restore menu, and

2) I can't restore some of my backups because of the error (run 'nandroid-mobile.sh'via adb)

3) I think custom recovery actually can't wipe everything (particularly .android_secure)

What is the last version of custom recovery?
[Optimus One, P500 Original Android Development] blueren:
when i try to run nand + ext, i run into this error.. run 'nandroid-mobile.sh'via adb! Is there a solution for this? I'm currently running on void rom and need to take a backup of the ext partition cos I've turned on a2sd :|
[Optimus One, P500 Original Android Development] ViTAMiNCHEG:
Update your recovery to v1.2 using the standart "adb shell" procedure. The version of 1.2 you can find in this thread.
[Optimus One, P500 Original Android Development] blueren:
Oh wow thanks! Found it :)
[Optimus One, P500 Original Android Development] neilmb:
That message also occurs when you try to backup our restore with less than 30% battery remaining. Try it again while plugged in to a charger or usb.

Sent from my LG-P509
[Optimus One, P500 Original Android Development] blueren:
I got it working. Upgraded to v1.2. Backups well, but somehow fails to restore void...
[Optimus One, P500 Original Android Development] peolo001:
Can i upgrade from 1.1 to 1.2.1 only flashing this zip : http://xdaforums.com/showpost.php?p=12025389&postcount=217 from recovery?? :D
[Optimus One, P500 Original Android Development] cmangalos:
after partitioning, then i enable usb toggle mode, my pc cannot read the sdcard, so i was not able to paste the rom, so i have to turn off phone, remove sd card,

paste rom using sdcard reader, put sdcard back to phone, recovery, then apply zip,too much trouble to handle

can you please advice on how to fix this, im noob to p500,

how you guys respond by answering my question,
[Optimus One, P500 Original Android Development] taha198:
You have to mount SD card via option before toggle USB mode.
[Optimus One, P500 Original Android Development] cmangalos:
i have done that, mounted sd card as well,

tried to rent an internet cafe, but same scenario as well,

i have mounted sdcard, then enable usb toggle, but pc still not showing sd card:(
[Optimus One, P500 Original Android Development] shhbz:
which rom are u using as many rom requires lg drivers to mount sd card cm7 beta 6 by mik does not require it . so maybe the rom u r using requires drivers to mount the sd card us the latest recovery 1.2.1. try in the phone default mode and see if it works not in custom recovery mode