[Moto G Q&A, Help & Troubleshooting] thatRAHULfellow:
My phone was unlocked earlier, then i had a brick. Then it was brought to kitkat and i updated to lollipop via OTA. It was bricked again.

My device details today:

41.1A(*)

Battery OK(charging)

Device is LOCKED. Status code:0.

Fastboot Reason: Failed to initialize partition table.

USB connected.

My phone is now recognized as "Motorola ADB interface" under "Android device".

It was only once recognized as "qhsusb_user' and then i followed steps and recognized as "Qualcomm Qualcomm HS-USB QLoader 9008". So then i flashed the blank_flash and it worked. but then i plugged my phone out without flashing the rom or so. When i now try doing the same, it doesn't work.

When i now plug it in via USB, it is only shown as "Motorola ADB interface" under "Android device".

So, i flashed 5.1 bat. and it shows the following:

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.000s]

finished. total time: -0.000s

E:\NEWNEWNEW>pause

E:\NEWNEWNEW>pause

Press any key to continue . . .

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 flash logo logo.bin

target max-sparse-size: 256MB

sending 'logo' (1060 KB)...

OKAY [ 0.062s]

writing 'logo'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.078s

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

target max-sparse-size: 256MB

sending 'boot' (10240 KB)...

OKAY [ 0.359s]

writing 'boot'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.359s

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

target max-sparse-size: 256MB

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

E:\NEWNEWNEW>mfastboot.exe flash system system.img_sparsechunk.0

target max-sparse-size: 256MB

error: cannot load 'system.img_sparsechunk.0': No error

E:\NEWNEWNEW>mfastboot.exe flash system system.img_sparsechunk.1

target max-sparse-size: 256MB

error: cannot load 'system.img_sparsechunk.1': No error

E:\NEWNEWNEW>mfastboot.exe flash system system.img_sparsechunk.2

target max-sparse-size: 256MB

error: cannot load 'system.img_sparsechunk.2': No error

E:\NEWNEWNEW>mfastboot.exe flash system system.img_sparsechunk.3

target max-sparse-size: 256MB

error: cannot load 'system.img_sparsechunk.3': No error

E:\NEWNEWNEW>mfastboot.exe flash modem NON-HLOS.bin

target max-sparse-size: 256MB

error: cannot load 'NON-HLOS.bin': No error

E:\NEWNEWNEW>mfastboot.exe erase modemst1

erasing 'modemst1'...

(bootloader) Invalid partition name modemst1

FAILED (remote failure)

finished. total time: 0.062s

E:\NEWNEWNEW>mfastboot.exe erase modemst2

erasing 'modemst2'...

(bootloader) Invalid partition name modemst2

FAILED (remote failure)

finished. total time: 0.008s

E:\NEWNEWNEW>mfastboot.exe flash fsg fsg.mbn

target max-sparse-size: 256MB

error: cannot load 'fsg.mbn': No error

E:\NEWNEWNEW>mfastboot.exe erase cache

erasing 'cache'...

(bootloader) Invalid partition name cache

FAILED (remote failure)

finished. total time: 0.047s

E:\NEWNEWNEW>mfastboot.exe erase userdata

erasing 'userdata'...

(bootloader) Invalid partition name userdata

FAILED (remote failure)

finished. total time: 0.031s

E:\NEWNEWNEW>mfastboot.exe oem fb_mode_clear

...

OKAY [ -0.000s]

finished. total time: -0.000s

E:\NEWNEWNEW>mfastboot.exe reboot-bootloader

rebooting into bootloader...

OKAY [ 0.031s]

finished. total time: 0.031s

E:\NEWNEWNEW>pause

Press any key to continue . . .

PLEASE HELP GUYS, I NEED MY PHONE BACK.