[Moto G Q&A, Help & Troubleshooting] Chivamarco:
Hi, today my Falcon got Bootlooped on Stock Flashable Zip Optimized v1 after severals week of working without problems.

Then i tried to Factory Reset using TRWP, but it failed.

After that i enter recovery mode and used mtp usb to copy the Zip to install it tru recovery, but after getting 44Mb of the zip file on my phone then a message appeared saying that y disconnected the cable, i cancelled the process.

On my second try i could copy anything on my phone, seems like the filesystem gone broke, all the folders appeared but they dont show files inside.

Then i tried, to flash Stock Brazilian 5.0.2 Using fastboot but always get the CANT ERASE PARTITION - CANT FLASH PARTITION.

But i can Flash Recoveries, i flashed CWM and tried to wipe without success, tried the special recovery from phill without success.

I think the problem is the partition table. al the partitions are there, i can see them, twrp says they are present, and everyone has filesize.

But i cant flash, erase partitions, cant sideload.

Please help me.

DETAILS:

MOTO G XT1032

LAST ROM: STOCK OPTIMIZED 5.1 v1b

BOOTLOADER: 41.18

RECOVERY: TRWP

LAST TRY OF RESTORING STOCK ROM:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery cwm.img

target reported max download size of 536870912 bytes

sending 'recovery' (7878 KB)...

OKAY [ 0.320s]

writing 'recovery'...

OKAY [ 0.310s]

finished. total time: 0.630s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash partition gpt.bi

n

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.043s]

writing 'partition'...

(bootloader) This may take a few seconds, if a

(bootloader) different partition table is being

(bootloader) flashed since we need to backup

(bootloader) and restore a few partitions

(bootloader) Flashing primary GPT image...

(bootloader) Flashing backup GPT image...

OKAY [ 0.337s]

finished. total time: 0.410s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash motoboot motoboo

t.img

target max-sparse-size: 256MB

sending 'motoboot' (1953 KB)...

OKAY [ 0.100s]

writing 'motoboot'...

(bootloader) flashing tz ...

(bootloader) flashing rpm ...

(bootloader) Failed to erase partition

(bootloader) Failed to flash rpm

FAILED (remote failure)

finished. total time: 10.948s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash motoboot motoboo

t.img

target max-sparse-size: 256MB

sending 'motoboot' (1953 KB)...

OKAY [ 5.079s]

writing 'motoboot'...

(bootloader) flashing tz ...

(bootloader) Failed to erase partition

(bootloader) Failed to flash tz

FAILED (remote failure)

finished. total time: 10.919s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash logo logo.img

target max-sparse-size: 256MB

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

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash boot boot.img

target max-sparse-size: 256MB

sending 'boot' (10240 KB)...

OKAY [ 5.370s]

writing 'boot'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition boot

FAILED (remote failure)

finished. total time: 10.784s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot fkasg system system.i

mg_sparsechunk.0

usage: fastboot [ <option> ] <command>

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash system system.im

g_sparsechunk.0

target max-sparse-size: 256MB

sending 'system' (257883 KB)...

OKAY [ 14.002s]

writing 'system'...

(bootloader) Failed to erase partition

FAILED (remote failure)

finished. total time: 22.464s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash system system.im

g_sparsechunk.1

target max-sparse-size: 256MB

sending 'system' (256754 KB)...

OKAY [ 13.999s]

writing 'system'...

(bootloader) Failed to flash sparse image

FAILED (remote failure)

finished. total time: 22.469s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash system system.im

g_sparsechunk.2

target max-sparse-size: 256MB

sending 'system' (260090 KB)...

OKAY [ 14.094s]

writing 'system'...

(bootloader) Failed to flash sparse image

FAILED (remote failure)

finished. total time: 22.612s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash modem NON-HLOS.b

in

target max-sparse-size: 256MB

sending 'modem' (49356 KB)...

OKAY [ 6.734s]

writing 'modem'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition modem

FAILED (remote failure)

finished. total time: 11.772s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot erase modemst1

erasing 'modemst1'...

(bootloader) Failed to erase partition

FAILED (remote failure)

finished. total time: 10.023s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot erase modemst2

erasing 'modemst2'...

(bootloader) Failed to erase partition

FAILED (remote failure)

finished. total time: 10.012s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash fsg fsg.mbn

target max-sparse-size: 256MB

sending 'fsg' (102 KB)...

OKAY [ 5.039s]

writing 'fsg'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition fsg

FAILED (remote failure)

finished. total time: 10.080s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot erase cache

erasing 'cache'...

(bootloader) Failed to erase partition

FAILED (remote failure)

finished. total time: 9.994s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot erase userdata

erasing 'userdata'...

(bootloader) Failed to erase partition

FAILED (remote failure)

finished. total time: 10.000s

C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

error: device '(null)' not found

C:\Program Files (x86)\Minimal ADB and Fastboot>