How to resizing the rootFS on R2S using gparted (the easy way)

Hello all.
I would like to show you how you can use the gparted utility to modify the rootfs partition. This method is not in the OpenWRT documentation, but it is much clearer and simpler! Below you will see screenshots of the actions.

$ lsblk

openwrt_gparted

$ su

# gparted  /dev/sdc

Right-click on this bar and select "Resize"

Swipe right and click "Resize/Move"

Click "Ok"

Click on the green check mark to apply the selected actions

Click "Apply"

you can check how the change went, go through SSH or look in the LuCI web interface

And how are you going to upgrade it afterwards?

Why should I upgrade?

Erm, to get the security fixes and new features?

And what prevents you from doing this?

I thought that sysupgrade overwrites the rootfs. Is that not the case?

Maybe you're right, I'll check it one of these days...

My suggestion would to create another partition that you can use for whatever bigger data, and leave rootfs just for the OS and extra packages.

Good idea, thanks, but I created a post to show between this method https://openwrt.org/docs/guide-user/advanced/expand_root in which there will be the same result with two sections, only use the script, which is not always convenient for those who are just starting their journey.

Just for other's reference:

1 Like