[G 2014 Q&A, Help & Troubleshooting] totalnoob34:
Can I format a partition from fastboot? I believe that is the problem. In the toolkit, while running, it says that /system and /cache are in 'raw data format', so I think they should be formatted, not erased.

EDIT: Yea, the problem's definitely some unpartitioned space. Posting the toolkit's output:

erasing 'userdata'...

OKAY [ 0.443s]

formatting 'userdata' partition...

Erase successful, but not automatically formatting

File system type raw not supported.

OKAY [ 0.019s]

erasing 'cache'...

OKAY [ 0.129s]

formatting 'cache' partition...

Erase successful, but not automatically formatting

File system type raw not supported.

OKAY [ 0.017s]

finished. total time: 0.624s

FLASHING PARTITIONS.

target max-sparse-size: 256MB

sending 'partition' (32 KB)...

OKAY [ 0.059s]

writing 'partition'...

OKAY [ 0.327s]

finished. total time: 0.397s

FLASHING BOOT LOADER..

target max-sparse-size: 256MB

sending 'motoboot' (2184 KB)...

OKAY [ 0.140s]

writing 'motoboot'...

(bootloader) flashing tz ...

(bootloader) flashing rpm ...

(bootloader) flashing sdi ...

(bootloader) flashing aboot ...

(bootloader) flashing sbl1 ...

OKAY [ 1.076s]

finished. total time: 1.224s

FLASHING LOGO...

target max-sparse-size: 256MB

sending 'logo' (697 KB)...

OKAY [ 0.103s]

writing 'logo'...

OKAY [ 0.111s]

finished. total time: 0.224s

FLASHING BOOT....

target max-sparse-size: 256MB

sending 'boot' (10200 KB)...

OKAY [ 0.421s]

writing 'boot'...

OKAY [ 0.805s]

finished. total time: 1.234s

FLASHING RECOVERY.....

target max-sparse-size: 256MB

sending 'recovery' (10280 KB)...

OKAY [ 0.431s]

writing 'recovery'...

OKAY [ 0.812s]

finished. total time: 1.250s

FLASHING SYSTEM IMAGE IN MULTIPLE SECTIONS......

target max-sparse-size: 256MB

sending 'system' (258868 KB)...

OKAY [ 8.588s]

writing 'system'...

OKAY [ 13.357s]

finished. total time: 21.954s

target max-sparse-size: 256MB

sending 'system' (254994 KB)...

OKAY [ 8.472s]

writing 'system'...

OKAY [ 13.080s]

finished. total time: 21.557s

target max-sparse-size: 256MB

sending 'system' (260623 KB)...

OKAY [ 8.635s]

writing 'system'...

OKAY [ 12.768s]

finished. total time: 21.412s

target max-sparse-size: 256MB

sending 'system' (255649 KB)...

OKAY [ 8.473s]

writing 'system'...

OKAY [ 12.729s]

finished. total time: 21.210s

target max-sparse-size: 256MB

sending 'system' (32272 KB)...

OKAY [ 1.111s]

writing 'system'...

OKAY [ 1.531s]

finished. total time: 2.644s

FLASHING MODEM.......

target max-sparse-size: 256MB

sending 'modem' (49364 KB)...

OKAY [ 1.667s]

writing 'modem'...

OKAY [ 1.761s]

finished. total time: 3.434s

erasing 'modemst1'...

OKAY [ 0.024s]

finished. total time: 0.026s

erasing 'modemst2'...

OKAY [ 0.037s]

finished. total time: 0.042s

target max-sparse-size: 256MB

sending 'fsg' (651 KB)...

OKAY [ 0.082s]

writing 'fsg'...

OKAY [ 0.099s]

finished. total time: 0.191s

ERASING CACHE ......

erasing 'cache'...

OKAY [ 0.125s]

finished. total time: 0.129s

ERASING USERDATA.......

erasing 'userdata'...

OKAY [ 0.481s]

finished. total time: 0.486s

cat /proc/mounts outout:

rootfs / rootfs ro,relatime 0 0

tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,size=447036k,nr_inodes=111759,mode=755 0 0

devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0

proc /proc proc rw,relatime 0 0

sysfs /sys sysfs rw,seclabel,relatime 0 0

selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0

debugfs /sys/kernel/debug debugfs rw,relatime 0 0

none /acct cgroup rw,relatime,cpuacct 0 0

none /sys/fs/cgroup tmpfs rw,seclabel,relatime,size=447036k,nr_inodes=111759,mode=750,gid=1000 0 0

none /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0

tmpfs /mnt/asec tmpfs rw,seclabel,relatime,size=447036k,nr_inodes=111759,mode=755,gid=1000 0 0

tmpfs /mnt/obb tmpfs rw,seclabel,relatime,size=447036k,nr_inodes=111759,mode=755,gid=1000 0 0

none /dev/memcg cgroup rw,relatime,memory 0 0

none /dev/cpuctl cgroup rw,relatime,cpu 0 0

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0

/dev/block/platform/msm_sdcc.1/by-name/userdata /data f2fs rw,seclabel,nosuid,nodev,noatime,nodiratime,background_gc=on,discard,user_xattr,inline_xattr,acl,inline_data,nobarrier,active_logs=6 0 0

/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,nodiratime,data=ordered 0 0

/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0

/dev/block/platform/msm_sdcc.1/by-name/modem /firmware ext4 ro,context=u:object_r:firmware_file:s0,nosuid,nodev,relatime,data=ordered 0 0

/dev/block/platform/msm_sdcc.1/by-name/pds /pds ext4 rw,defcontext=u:object_r:pds_file:s0,seclabel,nosuid,nodev,noatime,nodiratime,errors=remount-ro,data=ordered 0 0

/dev/block/platform/msm_sdcc.1/by-name/fsg /fsg ext4 ro,context=u:object_r:fsg_file:s0,nosuid,nodev,relatime 0 0

/data/media /mnt/shell/emulated esdfs rw,relatime,upper=0:1028:660:771,derive=legacy,nosplit 0 0

/data/media /storage/emulated/legacy esdfs rw,relatime,upper=0:1028:660:771,derive=legacy,nosplit 0 0

df output:

Filesystem Size Used Free Blksize

/dev 436.6M 60.0K 436.5M 4096

/sys/fs/cgroup 436.6M 0.0K 436.6M 4096

/sys/fs/cgroup/memory: Permission denied

/mnt/asec 436.6M 0.0K 436.6M 4096

/mnt/obb 436.6M 0.0K 436.6M 4096

/system 1.1G 1.0G 27.5M 4096

/data 5.5G 782.6M 4.7G 4096

/cache 525.7M 8.9M 516.8M 4096

/persist 4.9M 4.1M 796.0K 4096

/firmware 62.4M 46.5M 15.9M 4096

/pds 1.9M 1.0M 923.0K 1024

/fsg 638.0K 637.0K 1.0K 1024

/mnt/shell/emulated 5.5G 782.6M 4.7G 4096

/storage/emulated/legacy 5.5G 782.6M 4.7G 4096