[Nexus 7 Q&A, Help & Troubleshooting] JustinSB:
Exactly the same problem after 5.0.2 upgrade

Hi, I have a 16Gb nakasi/grouper Nexus 7 tablet & after I followed all of the steps in the flash-all.sh script to upgrade it to 5.0.2 my Nexus booted up running Lollipop fine. It's just that now I only have a total of 6.02Gb of space with 2.18Gb available. It's all completely stock & I haven't tried to do anything to it except let google re-download my apps again (& I don't have that many, honest). What can I do to get my 10Gb back? I don't even have enough space to do a nandroid backup any longer, or even to copy back over my Kitkat nandroid if I want to revert my tablet to a working ROM (as opposed to Lollipop, which has given me no end of grief, lags, crashes, factory resets & re-flashes, etc).

I downloaded nakasi 5.0.2 (LRX22G) from developers.google.com & following the popular FAILED (remote: (InvalidState)) problems that everyone seems to have with the 'bootloader-grouper-4.23.img' from the zip file, I downloaded a working copy from the XDA forums.

fastboot oem unlock

(bootloader) Bootloader is already unlocked

OKAY [ 0.020s]

fastboot erase boot

erasing 'boot'...

OKAY [ 0.032s]

fastboot erase cache

******** Did you mean to fastboot format this partition?

erasing 'cache'...

OKAY [ 0.193s]

fastboot erase recovery

erasing 'recovery'...

OKAY [ 0.032s]

fastboot erase system

******** Did you mean to fastboot format this partition?

erasing 'system'...

OKAY [ 0.401s]

fastboot erase userdata

******** Did you mean to fastboot format this partition?

erasing 'userdata'...

OKAY [ 7.577s]

(this is one of the good bootloaders that works from the XDA forums)

fastboot flash bootloader bootloader-grouper-4.23.img

sending 'bootloader' (2100 KB)...

OKAY [ 0.267s]

writing 'bootloader'...

OKAY [ 1.226s]

fastboot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.020s]

fastboot flash system system.img

erasing 'system'...

OKAY [ 0.108s]

sending 'system' (648819 KB)...

OKAY [ 78.230s]

writing 'system'...

OKAY [ 36.069s]

fastboot flash userdata userdata.img

erasing 'userdata'...

OKAY [ 4.931s]

sending 'userdata' (104289 KB)...

OKAY [ 12.558s]

writing 'userdata'...

OKAY [ 10.511s]

fastboot flash recovery recovery.img

sending 'recovery' (5688 KB)...

OKAY [ 0.706s]

writing 'recovery'...

OKAY [ 0.273s]

fastboot flash boot boot.img

sending 'boot' (5152 KB)...

OKAY [ 0.623s]

writing 'boot'...

OKAY [ 0.214s]

fastboot erase cache

******** Did you mean to fastboot format this partition?

erasing 'cache'...

OKAY [ 0.090s]

# Then I rooted it as normal, which all worked just as it normally does

fastboot boot CF-Auto-Root-grouper-nakasi-nexus7.img

downloading 'boot.img'...

OKAY [ 1.156s]

booting...

OKAY [ 0.015s]

# Then I flashed in the latest TWRP

fastboot flash recovery openrecovery-twrp-2.8.4.0-grouper.img

sending 'recovery' (8364 KB)...

OKAY [ 8.930s]

writing 'recovery'...

OKAY [ 0.413s]

It all boots & works (as well as can be expected from Lollipop on a Nexus 7 nakasi, ie it lags & crashes, but less than it did with 5.0), but now it is no longer a 16Gb machine, it only has 6Gb... How can I fix this? Thanks :)