[Optimus One, P500, V General] shankesh:
This thread is an all in one recovery thread.

Prereqs:

1. You must have a rooted device

2. Adb setup on computer (terminal on phone can be used in place of adb but adb is preferred)

3. Phone charged 30% or greater is required to use nandroid.

Supported devices:

LG Ally (aloha)

LG Optimus S

LG Optimus V

LG Optimus M

LG Vortex

LG Chic (alessi)

LG Optimus P500, Optimus T P509 (thunderg)

HTC Droid Incredible See link here Xda

LG Shine Plus

Gz'One Commando (in testing)

Want to submit a new device see thread here : How to submit a new device for recovery creation

Recovery Features:

ADB as root user

USB-MS Toggle :mounts sdcard as mass storage

(dinc only) mount /Emmc

Backup/Restore:

Nand Backup : Select Items to backup with the [X]

Nand Restore : browse to and select nandroid backup to restore

As of 2.2.1 sd-ext is backed up as whole so link2sd users should work fine

Flash Zip From Sdcard: Update.zip must be in root of sdcard or you can directory browse. (Fixed dir-browsing)

Flash Zip From Emmc (Dinc only)

Toggle Signature Verify : Turn of signature checking on flashing zips

Wipe Menu:

Wipe data/factory reset: wipes all

Wipe cache

Wipe Dalvik cache : Wipes Dalvik cache in all possible locations if moved by apps2sd

Wipe SD:ext : Wipes Apps2sd ext partition

Wipe Battery Stats

Wipe rotate settings

Wipe data only

Wipe .android secure : Wipes froyo native .android_secure on sdcard

Partition Sdcard:

Partition SD: Partition's sdcard for apps2sd (this formats card so all non backed-up data is lost)

Repair Sd:ext

SD:ext2 to ext3 : coverts apps2sd ext2 partition to ext3

SD:ext3 to ext4 : same as above but ext3 to ext4 (requires kernel support for ext4 which all but shine have)

Mounts:

Gui mounts to avoid typing in terminal to mount and cd into a dir to mount system, data, cache, sd-ext (if exists), sdcard

Other:

Fix apk uid mismatches

Move recovery log to SD

Key Test : Output keycodes for debugging recovery

Wipe Sdcard

(Dinc only)

Format /data as ext3 | ext4 : format(reformat) /data between ext3,ext4. (This wipes /data also) Requires modification of init.inc.rc & and compatible rom kernel see dinc thread link above

I have included flash_eraseall binary to recovery which can be used to fix/erase corrupted partitions that will not mount correctly to nandroid restore to.

Useage from adb shell is : flash_eraseall /dev/mtd/mtd4 (where mtd4 is the number of the partition from "adb shell cat /proc/mtd" you want to erase)

Trouble Shooting:

1. Use option under Other menu to move recovery log to sd. Mount your sdcard to pc and read that file called recovery.log. It should have detailed cause of error.

2. If you get an out of memory error reboot device and do it on a fresh reboot.

3. If you get a file not found on the "mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak" skip it and move to the next step as this file will not be in your rom unless it has recieved an ota-update and if so needs to be disabled.

4. Permission denied means you are not root user (#)

5. If rebooting into recovery you get a little android guy with a ! and does not look like picture above you still have stock recovery and did not remove the install-recovery.sh.

6. You did check the md5sum for a match before flashing correct?

Please check all the above issues before posting. This is the format I request to be used for troubleshooting.

Device :

Recovery Version :

Error :

Please upload the recovery.log AS AN ATTACHMENT that you moved to sdcard and read. Posts without this log will be ignored!!!

Please no PM's!!!!!

Device system paths:

Ally: /dev/block/mtdblock4

Optimus M: /dev/block/mtdblock5

Vortex: /dev/block/mtdblock4

Optimus V: /dev/block/mtdblock5

Optimus S: /dev/block/mtdblock5

Optimus P500/Optimus T: /dev/block/mtdblock1

Chic: /dev/block/mtdblock1

Shine Plus: /dev/block/mtdblock1

Directions to flash recovery:

Download your device specific recovery and check md5sum for a match before flashing. Download flash_image.zip and unzip it to root of your sdcard. (Not in any folder)

Copy your devices recovery.img to root of sdcard.

Below can be done via adb shell or terminal emulator on phone via root # shell not a $ shell

Note do not type the # or $ as they are for reference only!

Code:

$ su

# mount -o remount,rw -t yaffs2 (your device /system path) /system

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

# chmod 755 /system/bin/flash_image

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

# flash_image recovery /sdcard/(your device recovery.img name)

# sync

Example for LG Ally above would be:

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

Device specific recovery keys:

Key mapping for Optimus Line & Vortex:

Move up & down = Vol-up & Vol-down

Select = Menu

Backup = Back

Boot recovery from device off: Vol-down + Home + Power and release at LG logo.

Chic(alessi): Vol-up + Vol-down + Power

LG Ally & LG Shine Plus:

Move up & down = Up & down on sliding keyboard

Select = Enter on keyboard

Backup = Vol-down

Boot recovery Ally: Send + Menu + Power

Boot recovery Shine Plus: Vol-down + Home + Power

Adb reboot recovery can also be used to boot custom recovery on most devices.

WARNINGS:

Do not flash a radio.img

Do not factory reset your device via Android OS. Use wipe in recovery.

Source for recovery & recovery kernels My Github