expand storage on a raspberry pi
at 2016-10-31 00:38:00.
fdisk /dev/mmcblk0
p
d
2 (where linux is ext4) #you can also d, 3 to delete swap partition too
n
p
2
type the start number
press enter to select the last sector
w
the reboot
resize2fs /dev/mmcblk0p2
reboot
df -h # will show you the partitions to make sure it worked