Originally Posted by omal
I've flashed the factory image for nexus 4 (Android 4.4), everything working fine.. but the storage shows only 5 GB for a 16 GB device. Can i get it back by erasing the system and boot. Does it wipe everything? Could you please help.
Yeah it's one of those issues with the internal storage only phones.
A full format through fastboot should work but you may need to flash a new bootloader as well.
And yes it will wipe all partitions so backup to a PC what you need. May as well start fresh though
fastboot erase boot
fastboot erase system -w
fastboot erase recovery
Now flash latest bootloader and recovery of choice
fastboot flash bootloader nameofbootloader.img
fastboot flash recovery nameofrecovery.img
Now boot to new recovery and flash ROM of choice
Let me know if you get stuck
Sent from my Nexus 4 using XDA Premium 4 mobile app