I'm trying to expand my root filesystem on OpenWRT 24.10.0 using the official script from the OpenWRT documentation: [Expand Root Filesystem Guide]
However, when I run the script on my Raspberry Pi 5, the system reboots and never recovers. After rebooting, I can’t access OpenWRT, and it seems like the system is completely unbootable.
Device Details:
Device: Raspberry Pi 5
OpenWRT Version: 24.10.0
Storage: 32GB MiroSD
Issue:
Ran the script as per the OpenWRT Wiki guide
Raspberry Pi reboots automatically
After reboot, OpenWRT does not start (no access via SSH or web UI)
Has anyone else faced this issue? Is there a fix or an alternative method to safely expand the root filesystem on OpenWRT 24.10.0?
Wonder what sets the root= to the partition id. I have this every time I sysupgrade, it reverts back after I changed it. I use the scripts too. I can't see where the script would update this.
Edit
1st and 6th result looks interesting.
Google suggests partuuid is based on the sector start/end so changes when you resize the partition. Could perhaps get the new partuuid and replace it in the cmdline.txt with something like
NEW_UUID=`blkid ${ROOT_DISK}p${ROOT_PART} | sed -n 's/.*PARTUUID="\([^"]*\)".*/\1/p'`
sed -i "s/PARTUUID=[^ ]*/PARTUUID=${NEW_UUID}/" /boot/cmdline.txt