[Moto G Q&A, Help & Troubleshooting] thatRAHULfellow:
So this is what happening to me:

I flashed wrong files on my moto g. I think the files i flashed on my moto g were of Moto G3 or something. So my phone was stuck in bootloader rebooting.

I gave it to a shop and he got it back to kitkat with a flickering screen. Then i got the OTA and i was updating it to lollipop via OTA. It then went off., i dont know what happened but it would not even turn on by pressing power button. Then i connected it to a charger and notification light was blinking. Eventually, i got here and tried the procedure. So my mobile was recognised as qhsusb_bulk and then i followed the procedure further and then it was also recognised as qualcomm 9008 etc.

I flashed the blankflash and my bootloader screen showed up with a bootloader of 41.1A(*). Device is locked. Status code:0.

so when it comes in fastboot it shows:

Fastboot reason:Failed to initialize partition table

USB connected.

Now i tried to flash stock rom

mfastboot flash boot boot.img

fastboot flash reocovery recovery.img

mfastboot flash system system.img_sparsechunk.0

mfastboot flash system system.img_sparsechunk.1

mfastboot flash system system.img_sparsechunk.2

mfastboot flash system system.img_sparsechunk.3

mfastboot flash modem NON-HLOS.bin

mfastboot erase modemst1

mfastboot erase modemst2

mfastboot flash fsg fsg.mbn

mfastboot erase cache

mfastboot erase userdata

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot flash boot boot.img

target max-sparse-size: 256MB

sending 'boot' (10240 KB)...

OKAY [ 0.395s]

writing 'boot'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.414s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot flash reocovery recovery.i

mg

target max-sparse-size: 256MB

sending 'reocovery' (10240 KB)...

OKAY [ 0.359s]

writing 'reocovery'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.384s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot flash system system.img_sp

arsechunk.0

target max-sparse-size: 256MB

sending 'system' (257883 KB)...

OKAY [ 8.497s]

writing 'system'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 8.500s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot flash system system.img_sp

arsechunk.1

target max-sparse-size: 256MB

sending 'system' (256782 KB)...

OKAY [ 8.439s]

writing 'system'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 8.459s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot flash system system.img_sp

arsechunk.2

target max-sparse-size: 256MB

sending 'system' (260098 KB)...

OKAY [ 8.633s]

writing 'system'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 8.648s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot flash system system.img_sp

arsechunk.3

target max-sparse-size: 256MB

sending 'system' (160376 KB)...

OKAY [ 5.360s]

writing 'system'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 5.395s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot flash modem NON-HLOS.bin

target max-sparse-size: 256MB

sending 'modem' (49356 KB)...

OKAY [ 1.653s]

writing 'modem'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 1.666s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot erase modemst1

erasing 'modemst1'...

(bootloader) Invalid partition name modemst1

FAILED (remote failure)

finished. total time: 0.016s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot erase modemst2

erasing 'modemst2'...

(bootloader) Invalid partition name modemst2

FAILED (remote failure)

finished. total time: 0.024s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot flash fsg fsg.mbn

target max-sparse-size: 256MB

sending 'fsg' (102 KB)...

OKAY [ 0.067s]

writing 'fsg'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.105s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot erase cache

erasing 'cache'...

(bootloader) Invalid partition name cache

FAILED (remote failure)

finished. total time: 0.058s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot erase userdata

erasing 'userdata'...

(bootloader) Invalid partition name userdata

FAILED (remote failure)

finished. total time: 0.011s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>mfastboot reboot

rebooting...

finished. total time: 0.003s

E:\MOTO G ROOT\MOTO G LOLLIPOP 5.0.2 NOV 15>

WHAT DO I DO NOW? PLEASE HELP.

(I KNOW I MADE A SPELLING MISTAKE IN FLASHING RECOVERY, BUT ANYWAYS WHEN I DO IT RIGHT, THE PHONE WOULD NOT WORK, ONLY BOOTS IN BOOTLOAER)

---------- Post added at 06:33 AM ---------- Previous post was at 05:58 AM ----------

When i flash the 5.1 bat flle, it gives the following error.

E:\NEWNEWNEW>mfastboot.exe flash partition gpt.bin

target max-sparse-size: 256MB

error: cannot load 'gpt.bin': No error

E:\NEWNEWNEW>mfastboot.exe flash motoboot motoboot.img

target max-sparse-size: 256MB

error: cannot load 'motoboot.img': No error

E:\NEWNEWNEW>mfastboot.exe reboot-bootloader

rebooting into bootloader...

OKAY [ 0.002s]

finished. total time: 0.003s