Issue with Resizing Rootfs Partition in OpenWRT x86 on KVM

Hi OpenWRT Community,

I’m currently facing an issue with resizing the rootfs partition on my OpenWRT x86 system running on KVM. I tried expanding the rootfs to 2GB, but after booting into the system, the storage didn't reflect this change. Instead, my system reports:

  • Disk Storage: 100MB
  • Temporary Storage: 1GB (this is despite the fact that I set 2GB of RAM in KVM)

Additionally, there is a /dev/vda partition which seems to be for boot purposes, and it's 16MB in size. I don't have any issues with this partition, as it seems correct for booting.

What I’ve Tried:

  1. Using the expanding for underling kvm tutorial:

  2. I also tried running the automated script for expanding rootfs from the official OpenWRT website, but it didn't seem to work either:

System Info:

  • KVM Setup: I set 2GB of RAM in my KVM configuration.
  • Disk Layout: I see /dev/vda as the boot partition (16MB), and the rootfs shows as only 100MB, despite my efforts to resize it.

My Question:

Could anyone please help me figure out what I might be doing wrong with the resizing process? Any advice on how to properly expand the rootfs to use the full 2GB that I’ve allocated would be greatly appreciated.

Thanks in advance for your help!

Best regards,
Muntadher