Resize the disk (Linux调整磁盘分区大小)
Resize the partition. Run parted: $ parted
Show the partition list: (parted) print
There should be two partitions; 1 should be a boot partition, about 64MB; the second should be the main partition, about 3.6G
Some Disk Commands of Linux, that you should know:
df -h Display the FileSystem that you mounted
fdisk -l Show your disk information that is unmounted or un-parted
Sonictl: Here I didn't see two partitions by print command. but fdisk -l showed me that.
Resize the second partition to use the whole disk: (parted) resizepart 2 32GB
Sonictl: Here you may meet error: "Unrecognized disk label", useselect command to chang the device from "/dev/mmcblk1boot0" to "/dev/mmcble0", then try again.
Close parted: (parted) quit
Reboot to load the updated partition table: $ reboot
Log in as root again, resize the filesystem: $ resize2fs /dev/mmcblk0p2
Now you should have the full capacity of your microSD card available.