• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root PLEASE HELP, trying for hours, nothing's working-CWM

First off, I am new to this community so I apologize if this is in the wrong place or if I violated other rules.

Hi there, I have been trying to flash Clockwork Mod recovery image onto my lg optimus 2x for hours and hours and it
 
That's a good sign. The # means your rooted. Take your sd card out and just transfer the flash_image.bin and the recovery.img to the root of the SD card (not in any folder, just near the bottom of the list of folders)
The install code looks flawed. Might be missing important commands. I'll do a little research on this for you so I can tell which is the proper install code for your device (each device's code will be a little different some times). It could be you just didn't type in the name of the recovery just right.
When you get to the part of the code where it say's: flash_image recovery /sdcard/recovery.img your telling the flash_image to flash the recovery found in the sd card, you need to type in the exact name of the recovery that's on the sd card so it knows exactly what to flash.
Hint: you can rename it to anything you like. Example: Xionia_cwma_v1.2518.6_recovery.img to xrecovery.img. This will make it easier to type in the name right in the code. I just type in:
flash_image recovery /sdcard/xrecovery.img if I get a # after this I know i can type in: reboot recovery. If I get any errors I stop before typing in: reboot recovery and do everything all over again to keep from getting stuck in the fastboot screen.

Edit: Try going here http://theunlockr.com/2012/05/07/ho...-clockworkmod-recovery-on-lg-optimus-2x-p990/
 
So here's what I got, I did get a # after the last command but it still says error scanning partitions, so do I reboot into recovery or try again? And also I renamed the recovery image to recovery.img so I got the file names right.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Jeremy>adb push c:\flash_image /sdcard/
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
1277 KB/s (26172 bytes in 0.020s)

C:\Users\Jeremy>adb push c:\recovery.img /sdcard/
1569 KB/s (3641344 bytes in 2.265s)

C:\Users\Jeremy>adb shell
$ su
su
# mount -o remount, rw /system
mount -o remount, rw /system
# cp /sdcard/flash_image /system/bin
cp /sdcard/flash_image /system/bin
# cd /system/bin
cd /system/bin
# chmod 777 flash_image
chmod 777 flash_image
# flash_image recovery /sdcard/recovery.img
flash_image recovery /sdcard/recovery.img
error scanning partitions
#
 
yes i have, once the batch files finishes running i reboot my phone and it's stuck in a bootloop, so then i have to restore it again.
 
I think I've found your problem. Your not pushing the flash_image or recovery to the sd card because you did not mount the sd card in the code. This means there is no flash_image or recovery on your sd card, which is why it boot loops. If the sd card is not mounted to transfer files you can't transfer/push the flash_image or recovery.
I'm not sure what /dev/block/? you should use for you phone. My suggestion is to power down the phone and take the sd card out and put it into the PC. If you don't have an adapter for the uSD card buy a card reader from WalMart that has a uSD card slot. Their usually only about ten bucks. Transfer the flash_image.bin, recovery.img, and ROM.zip of choice(if a Gingerbread ROM the you will need the Gapps.zip) to the root of the sd card (not in any folder, just near the bottom of the list of folders on the sd card). Make sure the Items have the proper sufix on the end. Put the uSDcard back into the phone and power up. Make sure you have USB debugging checked under settings/applications/development.
plug into PC and run this:
C:\Users\Jeremy>adb shell
$ su
su
# mount -o remount, rw /system
mount -o remount, rw /system
# cp /sdcard/flash_image /system/bin
cp /sdcard/flash_image /system/bin
# cd /system/bin
cd /system/bin
# chmod 777 flash_image
chmod 777 flash_image
# flash_image recovery /sdcard/(however the name of the recovery is spelled on the sd card, exactly)
# reboot recovery

Note: To make it easy to remember the name of the recovery you can rename it to just recovery.img.
If you get a # after typing in the name of the recovery in the code then you can enter the last line: reboot recovery. If you got any errors do not type this in.
You might even get a long line of almost identical streaming code after typing in the name of the recovery, don't worry as long as it gives you # at the end)

Once booted into the recovery you need to find the backup option and select it. This will make a backup of you system/ROM (this is called a nandroid backup).
When done with that follow the proper pre ROM installation wipe and format procedure for your phone and recovery. Then go to the install zip from sd card option/select zip from sd card. Select the ROM. If it's a gingerbread ROM that requires the Gapps, install them after the ROM. When done reboot into system. On the first boot into the ROM it will take anywhere from 5-10 min. If longer than that pull battery and go back to the recovery menu and either do the whole pre ROM installation procedure and ROM install, or do the whole pre ROM installation procedure and select the restore option (this will restore your backup).
 
I don't no what the mount point cmd should be for your phone. That is why I suggested you just take the sd card out and put it into the PC to put the necessary items on it.
If you have no other means at hand to put the SD card into the PC I will try to find out what the Code should be. You should search as well.
Example, for the Optimus V it is: adb shell mount /dev/block/mmcblk0p1 /sdcard
adb push xionia_cwma_1.2518.6.img /sdcard/
This will push the Xionia recovery v1.2518.6 to the sd card.

Note: you also have to put the item you want to push in the same folder as the adb.exe (on a windows vista OS and the newest SDK, the adb.exe is in C:SDK/platform-tools. Wherever you adb.exe is located that is where you will need to put them.
Once the SD card is mounted you should only have to type in the push commands for each item being pushed.
 
sorry about the previous message asking how to mount the sd card for some reason the webpage didn't show your full comment i will just try the way of putting my sdcard into my pc
 
so once again i get this message when flashing the recovery image:

# flash_image recovery /sdcard/recovery.img
flash_image recovery /sdcard/recovery.img
error scanning partitions
#

so now do i "reboot recovery"?
 
Do not reboot into recovery.
Have you flashed the flash_image?
Did you do all this?
C:\Users\Jeremy>adb shell

su

mount -o remount, rw /system

cp /sdcard/flash_image /system/bin

cd /system/bin

chmod 777 flash_image

flash_image recovery /sdcard/(however the name of the recovery is spelled on the sd card, exactly)

Note: if you get any error messages do not type in the last line or you will go into fastboot (if your phones fastboot isn't locked), or into a boot loop/hang

reboot recovery

Can you see the content's of your sd card with a file manager on the phone? Use ES File Manager from Google Play. When you open it up go to the menu first. Then settings/scroll down to Root settings and check the Root explorer box. Go back up to path settings. Check the Up to Root box. Go to Home Directory. With the backspace button Erase everything but the first / (this just makes it so you don't have to keep hitting this in the favorite option and doesn't have to be done). Go to View settings/View/ select show details. Go to Display Settings/File settings/Check all four Show Option boxes/exit options/Check all three options.
Go back to the main menu.
Go to /sdcard. What do you see? Type out exactly how you see the flash_image spelled and the sd card.
Go to: /system/bin/flash_image. What are the permission's and what is the file size and date?
 
i did run those exact commands, and how can i know if i've flashed the flash image?

okay here's the thing with my phone, it has 2gb of internal memory, 5gb of internal sd card, and i put in a 2gb external sd card, and the files are on the external sd card. So when i go to /sdcard, i have to go into the /sdcard/_ExternalSD/ to access the flash image and the other files. Should i move them to /sdcard (internal)?

for the flash_image:
flash_image, type: file, path:/sdcard/_ExternalSD, size: 25.56 kb, modified: may 9th, readable: yes, writable: yes, hidden: no

/bin/flash_image:
flash_image, type: file, size: 25.56 kb, modified: may 12th, permissions: rwx rwx rwx
 
It looks like the flash_image made it to the right place. It was modified on the date you installed it. The permissions are set to 777. I didn't snap to this when I copied the Guide, twice no less! I'm not crazy about it because it allows anybody to gain access to the flash image and change's things around. It was what the guide said to use but it needs to be changed to 755.
Use ES File explorer and make sure you go to settings. Scroll down to "Mount File System" and make sure the box is checked. Go to the /system/bin and long press the flash_image file. Scroll down to properties and select it. Select "Change" next to the permissions. Under Write: Uncheck the group and other boxes. Select ok. You have now changed the permissions to 755. Go back to "Mount File System" and uncheck the box (this must be done or your system is vulnerable to any app changing things in the system).

Did you type in the name of the recovery exactly as it's spelled on the sd card?

Edit: Go here [RECOVERY] CWM-based Recovery 5.0.2.8 for Internal & External SD Cards - xda-developers It would seem your hunch was right, you need to move everything to the internal sd card. Then give the same commands only where it say's: chmod 777 flash_image,change it to chmod 755 flash_image.

You might want to download the recovery from there as well. Make sure you make a backup in the "backup and restore" Option. Do not do anything else until this has been done.
Now that you are rooted and have a custom recovery installed:Never use the "Factory Reset" option on the phone. It will brick your phone. You can only use the one in the recovery.

Try out this ICS ROM as well [CM9][ROM][ICS 4.0.4][MAY10] Nova HD RC26-58 | Highly Customizable & Heavily Tweaked - xda-developers
 
okay i changed the permissions to 755, but i sort of got lost after that.

do you want me to just move everything to the internal sd card and run the commands again (with 755), or do you want me to replace the recovery image with the one from the link?

and for the backup, your talking about a nandroid backup after cwm recovery is flashed right?
 
Yes. Move everything. Do the commands over, just in case. If it didn't see the recovery on the sd card, I'm thinking it couldn't have seen the flash_image. Even though it looks like the flash_image was changed???
Yes. Once the recovery is installed you need to get into it's main menu and go to the "backup and restore"option and select backup.
Then proceed with the ROM install once you have it on the Internal SD card.
 
yea i changed the flash image permissions like you said to 755, and i'll be running the commands with chmod 755 flash_image instead of 777
 
wait, i've changed the permissions of the flash_image in /system/bin to 755, but not the downloaded one in my external sd card.

so should i change the permissions of the flash image in my sd card to 755, and then run commands with chmod 755 flash_image?
 
Back
Top Bottom