Sometimes you get loop into recovery after flashing custom rom, there is a simple solution to this:
# msm_sdcc.1 partition could be different for you dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/fota dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc