It cant partition and cant format some neccesary partitions. Try
Format manually from mounts if it says cant mount then try the next things: some other recovery that can format it or some other rom csuse some roms causes the partition to get corrupt
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?