Extend rootfs partition#
Overview#
The rootfs partition is created with 5.2GB, but the size is too short to run docker container. So we have to extend rootfs partition, or create new partition and assign the whole docker folder to the new partition.
Here is the instruction how to extend rootfs partition
Extend rootfs#
-
Run
gparted.You may get the following warning when you run
gparted.Press
Fix.
Contents of storage after we flashed yocto image to M.2 SSD.

-
Unmount partitions.
To manipulate partitions, you need to unmount
rootanddatapartition.Right click
rootpartition, then clickUnmount.
Unmount
datapartition as well. -
Move
datapartition to the end of storage.Right click
datapartition, then clickResize/Move.
Drag the square to the right end.

Then, click
Resize/Move.
Click
OK.
-
Extend rootfs partition to the end of disk.
Right click
rootpartition, then clickResize/Move.
Extend the square to the right end.

Then, click
Resize/Move.
-
Apply changes.
Click check mark icon.

Click
Apply.
You can get rootfs as follows.
