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
root
anddata
partition.Right click
root
partition, then clickUnmount
.Unmount
data
partition as well. -
Move
data
partition to the end of storage.Right click
data
partition, 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
root
partition, 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.