Check partition name
$ sudo fdisk -l
Print partition information and Check first sector of second partition
$ sudo fdisk -c /dev/mmcblk0
input “p”
Delete target partition and Create partition based on before partition information
input “d” – input “2” – input “n” – Input “p” – input “p” – input “2” – input “first sector” – input “enter”
Reboot
$ sudo shutdown -r now
Resize file system
$ sudo resize2fs /dev/mmcblk0p2
$ df -h
Done.