yashsingh1/xdaforums huggingface dataset:
[Moto G Q&A, Help & Troubleshooting] forgotter:
Keep all the steps aside. You say that you can enter fastboot and recovery. So reboot your phone to fastboot and flash the stock firmware. OR

Boot your phone to recovery and wipe full data including sdcard I.e. internal memory (so you can do a fresh start). On your PC in adb folder, copy the latest CM11 nightly (20140409 for today, it's stable) and rename it to "CM.zip" without quotes. Push it to your device through adb by typing command "adb C:\adb\CM.zip /data/media/0/" (assuming here that your adb is in root of C drive). Then in recovery on your phone Mount /system. Mount /data and Mount /cache and choose to install zip. Then choose CM11.zip and wait till the recovery flashes the zip and then reboot your phone. If your phone goes into a bootloop then reflash the rom again.

P.S. There's an error in command C:/adb\system so it didn't worked. Nevertheless it is of no use also. And yeah, USB output current is low so your phone doesn't charges efficiently from it.

---------- Post added at 03:42 PM ---------- Previous post was at 03:28 PM ----------

Dear, please understand the fact that whenever you would flash a new boot file or recovery, you'll definitely see mismatched partition error (it is not an error but it only tells you that there is difference in the size of the file flashed now and the original file.)

Towards your issue now: you will have to boot into recovery as soon as you have finished flashing the recovery file. For now leave everything and just flash recovery and try to enter into recovery mode (it will be a great success for you, if you are be able to boot into recovery).

I assume you have a custom recovery such as CWM, TWRP or Philz downloaded to your PC. Rename that file to "recovery.img" without quotes. Connect your phone to PC in fastboot mode. In adb on your PC type the command "fastboot flash recovery recovery.img" . Ignore all the errors and try to boot into recovery mode on your phone. Keep your volume up key pressed until you finally boot into recovery.
[Moto G Q&A, Help & Troubleshooting] jamiethomaswhite:
adb commands won't work

For some reason the adb commands do not work at all. "fastboot devices" responds and posts my device ID and all the commands that I used for fastboot worked. However "adb devices" simply outputs

* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

And then a gigantic list of the help/man commands for adb.

As it is, without this I can't push the files to my phone to flash the rom. Any ideas/alternatives?
[Moto G Q&A, Help & Troubleshooting] forgotter:
That's pretty dear. You need to be in recovery mode on your phone to use adb. adb doesn't work in fastboot mode.
[Moto G Q&A, Help & Troubleshooting] jamiethomaswhite:
Drivers?

Recovery mode meaning booted into Philz recovery in my case? I've done that. I tried in fastboot first and then realised after reading a few guides my mistake. It still wont work, I even mounted the data partition and others from the recovery menu and it still didn't work.

I'm currently installing Koush's Universal ADB driver instead of the official Motorola Device Manager I was using to see if that helps.

EDIT:

I installed the Universal ADB driver and it worked on adb, I can now get an output from "adb devices" but had to mess around with the Motorola Device Manager to get fastboot drivers working again as the Universal drivers broke that >_<

So now both adb and fastboot are working but I think the issue lies in the directories. I don't think /sdcard/ or /data/media/0 exist.
[Moto G Q&A, Help & Troubleshooting] jamiethomaswhite:
It's aliiiiiive!!!

WE DID IT!!!

:highfive:

:laugh:

I am so happy! And more relieved than you can imagine!

Right now I'm going to get CM set up and customised but it's booted and up and running :victory:

I will post back on the exact steps needed, so that anyone coming here will see in one whole post.

But just to let you know quickly, it was the syntax (?) of the adb command that was stopping me. I googled around and fiddled with some adb commands and it turns out the actual command I needed was:

adb push CM.zip /data/media/0/CM.zip

The CM.zip on the end was essential!

Furthermore I suspect I didn't even need the 0 after media as there is no external storage for the Moto G and it ended up creating a random 0 folder on the storage.

Thank you so, so much forgotter. If there is any way in which I can repay you please let me know. I will at least be going through and thanking each individual post from you. You're a saint! :angel: Seriously, I cannot thank you enough for your help. This has kept me awake at night.

As I said, I will post a full guide for what I did when I've tinkered with my "new" device :cool: and gotten some sleep -_-
[Moto G Q&A, Help & Troubleshooting] forgotter:
[MENTION=5721595]jamiethomaswhite[/MENTION] : I'm happy for you and your device. Do make a backup now and then enjoy. And also have a peaceful sleep.

You said that adb push command didn't worked for you , may be because you were on Philz recovery. I am on TWRP(2.7) and this command works for me and using opposite of the same command , I helped a guy to get back his data from his sdcard (of a bricked moto g) to his PC.

And remember that it's the bootloader with which one should not mess up, rest all the things can be messed up as no. of times required until you get the desired results.

Have fun and enjoy for now.
[Moto G Q&A, Help & Troubleshooting] newpbc:
Hi guys am wondering can you help tried all the options here have used fastboot to load stock recovery, cw recovery and twrp recovery non of them work no mater which one I write recover doesn't load

With clockwork and stock when I select recovery I just go to a black screen

With twrp I got a teamview logo that just loops on and off

Jamie what exactly did you do to be able to get back into recovery if you remember
[Moto G Q&A, Help & Troubleshooting] cinges:
hello.. please, please help me, im totally desperate..

I tried to do everything as you write, but without any success.. First i had problem with push files to my moto g.. i thing i have driver installed correctly..

fastboot devices - seem ok TA9290DT40

fastboot erase userdata - ok - OKAY [ 2.384s] finished. total time: 2.384s

fastboot erase cache - ok - OKAY [ 0.319s] finished. total time: 0.319s

fastboot push C:/adb\system /system/ - not ok.. fastboot system /system/

Im doing it whole day, I flash twrp to 2.7.0.0. (i had 2.6.3.0 before)and it is working, but after that i cant push CM.zip to my moto.. for the first time i put to adb bad code, fastboot push C:/adb\CM.zip /data/media/0/ is not working, but with adb push CM.zip /data/media/0/ seems to ok, but it sais error: device not found .. So I tried to fix that problem with

adb stop-server
adb start-server
adb devices

and i thing it goes everything wrong, becasue if i enter adb devices, it says now "List of devices attached" but nothing more.. before that it says something with TA9290DT40 ..

I still can erase userdata, cache, etc. but nothing more.. I can mount system, but data and cache can not..I have this phone for 1 day and i dont believe that i am so stupid..:( Is there any way to reset everything? unfortunatelly i dont have other computer..
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
our problem look same. just wait brilliant member help us to solve our problem :crying:
[Moto G Q&A, Help & Troubleshooting] forgotter:
Boot your phone to fastboot mode. Enter in recovery mode. For this on TWRP, go to wipe-advanced wipe-tick all and then swipe to to wipe. For those on Philz go wipe /data and sdcard.

Next reboot your phone to fastboot mode, go to recovery again, connect your phone to PC in recovery mode. In adb type the command "adb push C:/adb/CM.zip /data/media/0/" or "C:/adb/CM.zip /data/media/0/CM.zip" . For this command to work, you must have adb in C drive such that address of adb folder is C:/adb and you also need to have CM rom in adb folder which is renamed as CM.zip

P.S. Sorry if the post is too confusing, I'll make it simple later.
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
Still cannot enter recovery :crying:

Btw. What different GPE than retail stockrom?
[Moto G Q&A, Help & Troubleshooting] forgotter:
Read the thread throughout and post all logs.

Can you post the logs (required) with screen shots(optional) only then I may help you further.

BTW difference between Stock ROM and GPE is that stock ROM contains Motorola bloatware/feature such as Moto camera, Moto Boot, Moto assist and others while GPE is a pure android without all these.
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
What logs? On fastboot, phone or PC?
[Moto G Q&A, Help & Troubleshooting] forgotter:
Type the following command without quotes in adb in PC after connecting you're phone in fastboot mode with PC.

"fastboot devices"

"fastboot -w"

"fastboot flash recovery recovery.img"

"fastboot reboot recovery"
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
this my latest log. cannot use "fastboot reboot recovery" on cmd. cannot boot to recovery with normal method
[Moto G Q&A, Help & Troubleshooting] forgotter:
I see that, the problem with your phone is that your phone is unable to mount partitions. So it doesn't boot.

Download the philz recovery , rename it to "recovery.img" without quotes. copy it in the same folder i.e. in adb folder. Connect phone in fastboot mode to PC. In adb type "fastboot flash recovery recovery.img". After flashing finishes, immediately boot your phone to recovery. To boot in to recovery, you can type "fastboot reboot-recovery" in adb. In recovery wipe all partitions including sdcard. And post all the logs you see on your phone on next post.

Flash the stock firmware.
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
here is my logs after flash recovery.img. cannot send "fastboot reboot-recovery" command
[Moto G Q&A, Help & Troubleshooting] forgotter:
Repeat the same commands and this time instead of "fastboot flash recovery recovery.img" , after flashing recovery, on your phone scroll to recovery by pressing volume down key and then press volume up key until phone vibrates.

P.S. There's nothing wing with your device. You should have got it working by now.
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
i was trying that operation. after i scroll to recovery and press volume up my phone just looping in boot logo and not showing recovery

btw can i have your social media account like facebook etc. I think it can help me to solve my problem quickly
[Moto G Q&A, Help & Troubleshooting] forgotter:
[/COLOR]

http://xdaforums.com/showthread.php?t=2700502 Go to this forum and follow steps to revert back to stock firmware.

I don't use Facebook.
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
Still cannot boot into rom. Now my phone just looping at motorola "M" logo

i am not sure what happen with my phone?

How about corrupted bootloader?
[Moto G Q&A, Help & Troubleshooting] forgotter:
You mean to say that you can see the default Motorola boot I.e. earth with M written on it and get stuck on a watery earth logo(I guess). Try booting into recovery now and wipe data from there (you can boot now in stock recovery). And yes also try re flashing the stock firmware. And please post the logs too.

P.S. I'm waiting for your reply.
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
yeah. how must i do and where must i start?

ive been trying this. how abaout this?
[Moto G Q&A, Help & Troubleshooting] forgotter:
Go to fastboot on your phone and try booting into recovery. After that reboot into bootloader and flash the custom recovery through fastboot( I suggest TWRP by dhacker). Then reboot to recovery on your phone then in adb type the command

adb push C:/adb/CM.zip /data/media/0/

. For this to work you must have CM ROM renamed as CM.zip and adb folder in C drive such that address of adb folder is C:/adb and address of CM ROM is C:/adb/CM.zip. This will push cm ROM to your sdcard. Then boot to recovery, Mount all partitions, wipe all partitions and then flash the ROM and reboot.
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
here is my latest log

after reboot to recovery just looping at TWRP logo
[Moto G Q&A, Help & Troubleshooting] forgotter:
If you read your log, you'll find that your system and days partitions are formatted to raw for system so your phone can't boot. Keep reflashing the stock firmware through mfastboot or by running Retail_AS.bat youdownloaded above and try to boot into stock firmware. Keep adb at side for sometime being and also try reinstalling your phone driver. And do post logs.
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
Okay. I'll do it. I will try reflash GPE edition too, because before my phone die i try converting my rom to GPE using motoAIOtool.

And what driver must i have? Can you give me link to download tool should i have.
[Moto G Q&A, Help & Troubleshooting] forgotter:
Keep reflashing stock firmware from the link I mentioned above (I am using the same to revert to stock). You also have motto AIO tool , tinker with it for your device may start working.
[Moto G Q&A, Help & Troubleshooting] sinkadorable:
how it does'nt matter flash XT-1033 on XT-1032?
[Moto G Q&A, Help & Troubleshooting] LoPirata:
Dude, thank you very much!

I think that my moto g was bricked an then hav to spend some bucks to buy another.

Your hint worked like a charm!

Is my first post here just to say THANK YOU!
[Moto G Q&A, Help & Troubleshooting] Minervamc:
me too.But I Reinstaled my device and back to default setting. :laugh:
[Moto G Q&A, Help & Troubleshooting] forgotter:
You're always welcome, if you want answer for any of your question (that makes sense, of course. lol)

Congrats on being a member of xda. Feel proud to be a member of such a great group. And yeah, next time instead of posting thanks , you can press thanks button (on left towards bottom) it will save your time.

---------- Post added at 05:45 PM ---------- Previous post was at 05:37 PM ----------

You can flash xt1032 rom on xt1033 but you'll have to suffer baseband issue then (you won't be able to call or use 2G/3G ). You can fix it later (I don't know how to, search the forum).

P.S. Sorry for the late reply ( I am suffering from data crisis). I know you'd have recovered your phone till you read this post. Anyway I posted just to answer your query, and don't reply for I wing be having any data connecting for next one month, so I won't be able to reply to you.
[Moto G Q&A, Help & Troubleshooting] vardhanram:
i have same problem with my moto g ...

i followed ur procedure

i tried to instal CM11 ROM by using philz recovery on my moto g but field...

in philz recovery detect my pen drive By OTG cable

---------- Post added at 09:29 PM ---------- Previous post was at 08:47 PM ----------

I am not a developer

i have problem with my moto g...

my problem is like this...........

i have unlocked bootloader and installed CM11 on it, thats working fine....

after that i have restored backup stock firmware 4.4.2, it is working fine for few days...

mean while i observed that no sensors working tested with calling and CPU-Z

then i power off and try to restart it got struck at unlock bootlader warning logo ....

after that so many times i tried to flash stock firmware, each cmd saying its "OKEY"

but after that again its struck at unlock bootlader warning logo... and its was also unable to enter in to recovery mode.

i tried so many possible ways to rectify that problem but i am not succeeded...

then i finally taken to motorola servicing center, they tested and told that 'we tried to instal original OS on ur Phone but is not accepting it, we need to change motherboard and it cost 80% of the mobile price...

i dont know what to do, so plz give me good suggestion to rectify that problem
[Moto G Q&A, Help & Troubleshooting] vardhanram:
unable to instal with philz recovery also

:crying:

i am also facing same problem with moto g

philz recovery opened successfully

after flashing stock rom same thing happened again .... stuck in bootloop

i tried to install CM11 by using Philz recovery but no useful...

plz give me good suggestion
[Moto G Q&A, Help & Troubleshooting] forgotter:
Well if philz recovery opened on your phone , means that your phone is well fine at least to successfully boot a Rom.

Now follow the below procedure.

1. Boot into philz recovery. See the logs the sites on screen and post it. (It'd be something like /system mounted...)

2. Go to option wipe and wipe all partitions including internal memory. (You'll lose all your content on your phone)

Post the logs of this too.

3.Reboot into recovery. See the logs and post this too.

4. Sideload any ROMs zip file and flash it.

If you've any problem then flash the TWRP-2.7.0.0.IMG by dhacker. (This recovery is simple and easy to use) And repeat the process.

If further help needed reply to me asap.
[Moto G Q&A, Help & Troubleshooting] riesa:
Dear all,

I'm really stucked into a bootloop.

My problems are basically two:

1. Can't enter in recovery mode. I have tried wit CWM, TWRP, Philz, but nothing works

2. Can't copy files on device through ADB Push, because ADB does'nt see my device...but correctly sees my device: ADB Devices doesn't work. Fastboot devices works.

Have you got some suggestions?
[Moto G Q&A, Help & Troubleshooting] forgotter:
why don't you flash the stock firmware using fastboot.

you can even try to factory reset your device, 2-3 times and then retry to install recovery and boot into recovery to by long pressing volume up key till the phone vibrates and adb would start working once you're in recovery. Sideload any ROMs zip and then flash it via recovery.
[Moto G Q&A, Help & Troubleshooting] riesa:
Really thanks for your prompt reply. I try to flash many roms including sotcks, but without results. The only thing a managed to no now is to have adb working. TWRP can't boot but gives me a flickering screen with the logo, but when I am in this flickering screen i can use ADB command. So i copied the cm.zip onto the device. Now what shallI do? I can't use any command form the recovery. Can i use ADB Install?
[Moto G Q&A, Help & Troubleshooting] tech-worm:
Has the method for fixing the booting of roms been posted in step-by-step instructions yet? I followed the directions that worked for [MENTION=5721595]jamiethomaswhite[/MENTION] and it fixed my problem. However it took me awhile to figure out exactly what to do. So I would be happy to post a step-by-step guide in a new thread to fix this if that hasn't been done already.
[Moto G Q&A, Help & Troubleshooting] eg0097:
Here are two unbricking guides:

http://xdaforums.com/moto-g/general/unbrick-method-t2794271 (Mine)

http://xdaforums.com/showthread.php?t=2542219
[Moto G Q&A, Help & Troubleshooting] forgotter:
Install TWRP-2.7.*.*. (Latest TWRP for moto g) via fastboot. (It will get installed) and then boot into recovery. Go to mount- and tick on all. Next, go to wipe-advance wipe-check system and click on change partition format and then format it to f2fs. Repeat the same steps for /data partition too and lastly for /cache.

Flash the stock firmware via fastboot .
[Moto G Q&A, Help & Troubleshooting] hansdepaula:
C:\androidsdk\sdk\platform-tools>fastboot flash recovery twrp2.711.img

target reported max download size of 536870912 bytes

sending 'recovery' (7692 KB)...

OKAY [ 0.272s]

writing 'recovery'...

OKAY [ 0.150s]

finished. total time: 0.423s

C:\androidsdk\sdk\platform-tools>

it say ok, but on try go on recovert i stuck on black screen a

and every click on screen return a vibration for me.

i need long click (10seg) on power button to go away

and try again another version's.

:/

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

same on 2.7.0.0:

C:\androidsdk\sdk\platform-tools>fastboot flash recovery twrp2.70.img

target reported max download size of 536870912 bytes

sending 'recovery' (7912 KB)...

OKAY [ 0.284s]

writing 'recovery'...

OKAY [ 0.154s]

finished. total time: 0.440s

black screen and every click on screen return a vibration.

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

same on 2.6.3.3

C:\androidsdk\sdk\platform-tools>fastboot flash recovery twrp2.63.img

target reported max download size of 536870912 bytes

sending 'recovery' (8678 KB)...

OKAY [ 0.307s]

writing 'recovery'...

OKAY [ 0.197s]

finished. total time: 0.506s

black screen and every click on screen return a vibration.

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

See:

C:\androidsdk\sdk\platform-tools>fastboot format recovery

Formatting is not supported for filesystem with type 'raw'.

i really think fastboot dont write anything on my device..

bootlogo.img and recovery.img

dont change and i flash it 1000x with OK report.
[Moto G Q&A, Help & Troubleshooting] forgotter:
Repeat the same at least thrice.

If it doesn't work, try philz recovery and wipe data and sdcard. It will format your sdcard too.
[Moto G Q&A, Help & Troubleshooting] hansdepaula:
See:

C:\androidsdk\sdk\platform-tools>fastboot format recovery

Formatting is not supported for filesystem with type 'raw'.

i get a pink msg "mismatched partition size"

after fastboot recovery

and i try again, again, again, again..

i really think fastboot dont write anything on my device..

bootlogo.img and recovery.img

dont change and i flash it 1000x with OK report.

:\

i kill my device
[Moto G Q&A, Help & Troubleshooting] Clarkiieh:
Mismatch partition size is okay.. Its not a error when flashing a recovery :)
[Moto G Q&A, Help & Troubleshooting] Smiff2:
got a problem here.. motog won't boot any rom.

i had bootloops on stock rom so decided, perhaps stupidly, to unlock the bootloader, installer CWM and try wiping userdata or another rom. (i didn't know at this point about the "hold both volume buttons" factory reset option).

if i try to boot normally now the phone:

1) shows the Unlocked Bootloader Warning screen

2) buzzes

3) boots straight into CWM (Philz).

sometimes while on the Unlock warning screen it flashes (some blue screen?) very quickly, not sure what this is?

adb and fastboot work perfectly, both stock recovery and phils work perfectly, and i've got rid of all errors on starting Philz (partitions seem ok).

any suggestions please? going to bed now will read tomorrow! thanks.

should probably have just returned phone.. worst case i will try to relock bootloader and return.

edit:

my next step will be to try flashing stock (which? how?) but am reluctant to do this when i have Philz working fine.
[Moto G Q&A, Help & Troubleshooting] forgotter:
Flash the stock ROM through fastboot. Search this thread and you'll get the link to flash the stock ROM. The phone would be back to normal without much hassle.

Your phones /system partition might have got formatted, this may be one of the reasons.
[Moto G Q&A, Help & Troubleshooting] Smiff2:
thanks, is there any way to fix this in Philz? i'm happy using adb commands etc.

in case it means anything: the other 3 recoveries i tried before didn't work at all (wouldnt load), had to keep flashing from stock recovery until i found Philz works.

when you say flash stock with fastboot, is this guide correct? does it matter if relock bl or not? can i just flash the system and leave the rest out?

http://carlos-spitzer.com/2014/04/12/how-to-flash-motorola-moto-g-factory-image/

sorry lots of questions but phone brand new and i possibly just voided warranty :p
[Moto G Q&A, Help & Troubleshooting] forgotter:
I never had any problem with any recoveries at all.

Download any ROM.zip file and Sideload it on your phone and flash it through recovery. The instructions are given the previous posts, read them.
[Moto G Q&A, Help & Troubleshooting] Smiff2:
i have tried several different CM builds sideloading and flashing, they flash ok but none boot.

you suggest flashing stock using fastboot line by line like that guide above?

either my hardware is faulty, or CWM doesn't do something "deep" enough, or i'm not using it right!

i will try manually restoring stock with fastboot tomorrow thanks.