Cant expand space on SD card OpenWrt 24.10.0

Hello There,

I'm using an Raspberry pi 4B and was using Openwrt for long time.

However with this new version OpenWrt 24.10.0 i just dont seem to be able to expand the memory? The image is EXT4.

I always used the automated method that's on the official documentation:

opkg update
opkg install parted losetup resize2fs

Now you can download and execute a helper script :

wget -U "" -O expand-root.sh "https://openwrt.org/_export/code/docs/guide-user/advanced/expand_root?codeblock=0"
. ./expand-root.sh


The script runs BUT after reboot the system doesnt come up anymore.

I also tried the manual steps on : https://openwrt.org/docs/guide-user/installation/installation_methods/sd_card

And also tried expanding rootfs with Gparted..

All options above make it unbootable and i have no clue why, i already did erase and burn the image on the card again 10 times and still could not figure out what's happening.

Is there any known bug with this new version? Any good tips? Thank you

1 Like

Found the solution after many hours trying.....

Edit the cmdline.txt to say root=/dev/mmcblk0p2 instead of root=PARTUUID=661a1cf7-02. The resize script should work fine afterwards.

This should be on the wiki to help more people...Thanks,

@frolic would you be so kind and add that to the wiki:? https://openwrt.org/docs/guide-user/advanced/expand_root#automated

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.