GPT PMBR size mismatch!

Hello,

I recently bought a ROCK960 Model B, I installed ubuntu16.04 in emmc, but I only could use a little bit storage. This problem make me can’t install enough software I need. I also tried using SD card to reinstall the system, but the same question came out again. I have spent all day to deal with the problem…orz

Can anybody help out ?

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.

2 Likes

thank you so much, I had finished the problem.