fastboot erase boot
fastboot erase system
fastboot erase userdata
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
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?