Alright guys, I ran into this same issue on my Nexus 7 (2013). I tried a few tools to factory restore and they were failing and I was getting the same error messages in the custom recoveries that we see here. I looked at the .bat files used for these recoveries and noticed that it was always hanging on the system partition but that the other ones (like userdata and cache) hadn't been flashed yet, so I figured that their FAT (or equivalent) wasn't being created correctly. So here is how I fixed it:
I extracted the .img files out of the factory image and then, using the appropriate fastboot commands, I flashed userdata first, then cache, then boot,
THEN system, then my custom recovery (TWRP in this case). It worked!! Hopefully this will help someone else out.
---------- Post added at 03:16 PM ---------- Previous post was at 02:35 PM ----------
Alright guys, I ran into this same issue on my Nexus 7 (2013). I tried a few tools to factory restore and they were failing and I was getting the same error messages in the custom recoveries that we see here. I looked at the .bat files used for these recoveries and noticed that it was always hanging on the system partition but that the other ones (like userdata and cache) hadn't been flashed yet, so I figured that their FAT (or equivalent) wasn't being created correctly. So here is how I fixed it:
I extracted the .img files out of the factory image and then, using the appropriate fastboot commands, I flashed userdata first, then cache, then boot, THEN system, then my custom recovery (TWRP in this case). It worked!! Hopefully this will help someone else out.
So, that got it out of whatever weird loop was preventing the toolkit from flashing the /system partition. When I booted back up, I only had 16GB available out of my 32GB. My next step was to go back to the toolkit and get it to flash again. I guess the order that the partitions are flashed does matter, for some reason. The main problem I think we are experiencing is that it gets stuck on one particular partition during the flash process. The method I tried appears to get it 'un-stuck.'
Enjoy!