Skip to content

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#

  1. Run gparted.

    You may get the following warning when you run gparted.

    Press Fix.

    Warning

    Contents of storage after we flashed yocto image to M.2 SSD. Contents of storage

  2. Unmount partitions.

    To manipulate partitions, you need to unmount root and data partition.

    Right click root partition, then click Unmount. Unmount root

    Unmount data partition as well.

  3. Move data partition to the end of storage.

    Right click data partition, then click Resize/Move. Move data

    Drag the square to the right end.

    Drag data Data moved

    Then, click Resize/Move.

    Data moved

    Click OK.

    Data moved

  4. Extend rootfs partition to the end of disk.

    Right click root partition, then click Resize/Move. Move data

    Extend the square to the right end.

    Extend root Root extended

    Then, click Resize/Move.

    Extend square

  5. Apply changes.

    Click check mark icon.

    Apply changes

    Click Apply.

    Apply changes

    You can get rootfs as follows.

    Apply changes