Please use parted
command for GPT partition, on rock960, we use GPT partitions.
parted /dev/mmcblk1
p
lists of partitions on eMMC
Number Start End Size File system Name Flags
1 32.8kB 4129kB 4096kB loader1
2 8389kB 12.6MB 4194kB loader2
3 12.6MB 16.8MB 4194kB trust
4 16.8MB 134MB 117MB fat16 boot boot, esp
5 134MB 31.3GB 31.1GB ext4 rootfs
(parted)
resize the rootfs part
(parted) resizepart 5
End?
input -34s reserve 34 sectors by the end of the disk, mind the minus sign. 34 sector is for the GPT backup at the end of the disk.
check the new partition now
(parted) p
the rootfs should be like below:
5 134MB 31.3GB 31.1GB ext4 rootfs
Now quit
(parted) quit
extend the filesystem:
root@linaro-alip:~# resize2fs /dev/mmcblk1p5
Done.