I am running OpenWRT on a Raspberry Pi SD Card. After flashing the SD Card, the root partition shows a size of 102M
. However, my SD Card is 16GB
.
Often, I do a full backup of my SD card by first shrinking the root partition and then using ApplePiBaker to backup the SD card to a .img
file.
The problem is that when I reflash a backup image of OpenWRT to an SD card, the root partition is fully shrunk, so there is no capacity left on the SD card.
I tried using the automated expand script, in hopes that I could run it in a crontab, but the script only seems to work for x86.
My question is, how can I make OpenWRT automatically expand the root partition (if it needs expanding) to full capacity upon boot in the same way that Ubuntu does?
Any help is much appreciated!