I'm not the most knowledgeable person here, but I know from experience that the following instructions will return you to factory state with all partitions restored.
You will lose all your data. In fact, it won't properly reboot unless you wipe /userdata, but this should save you. You don't have to type all the commands. When you download the zip, there is a flashall batch file that will issue all the commands, but it does not include the commad to erase /userdata so make sure you issue that command first.
When done, you will be on the factory stock Android from last October. Th