[Moto G Q&A, Help & Troubleshooting] mazzy89:
I have the same problem. I am not able to install recovery.img. it gives me this error:

sending 'recovery' (7880 KB)...

OKAY [ 0.266s]

writing 'recovery'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition recovery

FAILED (remote failure)

finished. total time: 10.239s

and mismatched partion size. How can I recovery it?

---------- Post added at 05:53 PM ---------- Previous post was at 05:12 PM ----------

Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Program Files (x86)\Minimal ADB and Fastboot>"Step 2_1.bat"

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

target max-sparse-size: 256MB

sending 'boot' (10240 KB)...

OKAY [ 0.359s]

writing 'boot'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition boot

FAILED (remote failure)

finished. total time: 10.702s

C:\Program Files (x86)\Minimal ADB and Fastboot>mfastboot flash recovery recover

y.img

target max-sparse-size: 256MB

sending 'recovery' (10240 KB)...

OKAY [ 5.320s]

writing 'recovery'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition recovery

FAILED (remote failure)

finished. total time: 10.718s

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

g_sparsechunk.0

target max-sparse-size: 256MB

sending 'system' (255843 KB)...

OKAY [ 13.119s]

writing 'system'...

(bootloader) Failed to erase partition

FAILED (remote failure)

finished. total time: 22.057s

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

g_sparsechunk.1

target max-sparse-size: 256MB

sending 'system' (245954 KB)...

OKAY [ 12.853s]

writing 'system'...

(bootloader) Failed to flash sparse image

FAILED (remote failure)

finished. total time: 21.089s

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

g_sparsechunk.2

target max-sparse-size: 256MB

sending 'system' (235703 KB)...

OKAY [ 12.494s]

writing 'system'...

(bootloader) Failed to flash sparse image

FAILED (remote failure)

finished. total time: 24.256s

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

in

target max-sparse-size: 256MB

sending 'modem' (47152 KB)...

OKAY [ 6.520s]

writing 'modem'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition modem

FAILED (remote failure)

finished. total time: 11.559s

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

erasing 'modemst1'...

(bootloader) Failed to erase partition

FAILED (remote failure)

finished. total time: 9.999s

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

erasing 'modemst2'...

(bootloader) Failed to erase partition

FAILED (remote failure)

finished. total time: 9.999s

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

target max-sparse-size: 256MB

sending 'fsg' (717 KB)...

OKAY [ 5.085s]

writing 'fsg'...

(bootloader) Failed to erase partition

(bootloader) Failed to flash partition fsg

FAILED (remote failure)

finished. total time: 10.108s

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.999s

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

erasing 'userdata'...

(bootloader) Failed to erase partition

FAILED (remote failure)

finished. total time: 9.983s

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

rebooting...

finished. total time: 0.000s

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