Hello,
I'm trying to expand rootfs on my Raspberry Pi 3B+ with this guide: Expanding root partition and filesystem
I followed the Automated Pre 25.12 instruction because my Openwrt version is 24.10.4. At first, install needed packages with opkg and download the script with wget went well, no error. However, problem started with the step to execute the expand-root.sh.
I tried to execute, it output failed to execute /usr/libexec/login.. I thought it was something wrong with my device, reboot it and try again, same error.
Then I tried downloaded the script on the browser, it return snippet.txt with file size of 37 bytes. I opened it, inside only have one line: failed to execute /usr/libexec/login.
Also the url to download the script after remove ?codeblock=0 point to 404 Not Found
Put it in another Pi (or, boot into that one) and fdisk it in the GUI...
You just drag it but the permission needs to be changed.
I'll need to search; because it is different in the Pi and it has been a while..
Maybe @KSofen will show up and remind us all the ways to do it.
While we wait:
Ensure you have the latest bootloader.
Nevermind me
I just follow the manual instruction on that guide and expand my rootfs successfully 
The odd thing is that https://openwrt.org/_export/code/docs/guide-user/advanced/expand_root?codeblock=0 still point to a file named snippet.txt (37 bytes)
File content (not an error, the content itself):
$ cat snippet.txt
failed to execute /usr/libexec/login.
Maybe someone with wiki account can help ?
The RPi firmware has some charachter.
If you want it clean, after you have previously installed OpenWrt, you need to install something else, and then flash OpenWrt, again.
That is the last ditch, "I'm done; I can't brick a Pi" epiphany,.
I guess this is an issue with openwrt backend at the moment.
For anyone having this issue, replace that # Download expand-root.sh step with this:
- Step 1: Expand the
Instructions (manual) on the docs page
- Step 2: Copy the script content
- Step 3: Going to your openwrt device ssh terminal, use vim to create a new file:
vim expand-root.sh
- Step 4: Press
i on your keyboard to enter edit mode
- Step 5: Paste the script content you have copied from step 2
- Step 6: Press
esc on your keyboard to exit edit mode, follow with :wq to save and close the file
- Step 7: Make the script executable with
chmod +x ./expand-root.sh
And then you can continue with the remaining steps on the docs page.
PS. I'm sure there's a better way to do this, but I'll stick with what works on my device.
I have updated the wiki to point to codeblock=1 instead of codeblock=0. This should solve the issue.