Edge computer changing partition layout

Hi,

In Edge computer the file system is structured like this :

  • Boot files (540MB),
  • Rootfs1 (10GB),
  • Rootfs2 (10GB),
  • SWAP (4GB)
  • Docker (Rest of hard disc size, e.g. of 752-940x is 37GB)

I’d like to have a bigger rootfs partition.
Do you know how I can properly shrink the Docker partition in order to give more space to rootfs1 ?

Since rootfs2(backup partition ?) is placed between rootfs1 and docker partition, I don’t know how to do it.

I wish there was an option maybe in the Clonezilla image…

Thanks for your help.

I think I found a way, using gparted.

First stop Docker service.
Then unmount /dev/sda4.

Then you can move shrink docker partition and move it to the “end” of volume.
You can then extend rootfs2 and set it to end where docker partition starts.
Extend rootfs1 as well.
Make sure rootfs1 and rootfs2 are the same size.