on other devices I have to run . ./expand-root.sh and then sh /etc/uci-defaults/70-rootpt-resize, at which point the devices reboot with the root expanded.
I have also tried using GParted on another ubuntu machine.
Both result in the pi not booting.
Has anyone successfully expanded the root fs on the rpi5?
I have not done this with a 5 but I find gparted in cli tedious.
and there is the issue of making a mistake on an SD card (or anything ,really) not being overwritten; so they persist re-flashing.
I suggest you scrub the memory device (SD card?) with a RPi OS flash, flash it again with the OpenWrt firmware selector and then use the GUI gparted in your ubuntu machine; unmount the memory device in the drop-down and then, using the GUI, expand.
I don't know Linux well enough to discriminate GUI vs CLI; just seems more consistent
So right...
I just switched to an Industrial grade card because the controller wear-leveling is OS independent and there is more over-provisioning; among other things.
Why expand the root partition? It's only used to boot. Flash an ext4 image and before you put try to use the Pi, on a separate computer mount the sd card
run: lsblk and note the first sector of the small overlay partition.
run: fdisk /dev/sdb
p, d, 2, n, p, 2, n, w (be sure to start the large partition at the same point the smaller one as detected above with lsblk - it will automatically select the endpoint and fill the available space.)
I would suggest you to build your own rpi5 image if you are planning to use docker, manually expanding the fs and installing all packages from the openwrt snapshot is tedious. easiest method is use the imagebuilder on your ubuntu machine
1- Install the imagebuilder perquisites https://openwrt.org/docs/guide-user/additional-software/imagebuilder
2- Build the the firmware with the folowing commands or paste all on the console
3- Flash the image to the SD card and boot
4- Create a new primary partition with cfdisk on the free space mmcblk0p3 cfdisk /dev/mmcblk0
5- Format the mmcblk0p3 partition mkfs.btrfs /dev/mmcblk0p3
6- Mount the new partition on the overlay or as an external storage mount /dev/mmcblk0p3 /overlay or mount /dev/mmcblk0p3 /sd1
also change the docker directory /overlay/opt/docker/ or /sd1/opt/docker/
Okay...
Umm.
That would be spectacular.!
Almost, incredible.
If you really did that, just to help a snapshot...
...no really...
...I'm, practically, speechless.
Well done...
We haven't gotten into building it ourselves. We are developing an embedded product and we would prefer to not have to build it but instead use the releases from openwrt.
I realize the rpi5 is still in snapshot territory and not supported at the time of this post. We wouldn't use a snapshot in production. We are just anxious to test the rpi5 we just got.
Seems to fail to expand the FS after expanding the partition, when it works for other (admittedly full release) platforms.
I don't expect a snapshot to be fully usable and stable, but the script above 1) works on other platforms and 2) the description is written in such a way that leads me to believe it should work. So if the info in the wiki link is incorrect, I'd be happy to commit changes if we can identify them together.
dont do that man. whats wrong?
Are you upset forum users are testing snapshots and posting in https://forum.openwrt.org/c/general/6? sorry to have triggered you, but im not even completely clear how i was rude. i learned a lot from this thread, @KSofen's instructions work well. and i might go to try building it myself now with my new knowledge.
Im working through the process of understanding what isnt working so we can contribute to an improvement. where would you prefer i do that?
My instructions were very shortcut because I assumed you were already familiar with Linux since you were using gparted. I should probably write it out in more detail with some screen images.