Hello,
I have some trouble to resize my overlay partition for eMMC on my R4.
I have flashed an SD card with bananapi_bpi-r4-sdcard.img.gz , then I have flash the NAND, reboot on NAND and then flash the eMMC.
After booting in NAND to resize my eMMC I tried to execute the following command, like for the r3
parted /dev/mmcblk0 -- mkpart f2fs 768MiB -34s resizepart 5 768MiB resizepart 4 67.1M resizepart 3 12.6M
But the partition of type f2fs
/dev/mmcblk0p66 does not exist. And when I boot on eMMC the /overlay
come from /dev/fitrw
and not from mmcblk0
What am I missing ?
Thnak you.
frank-w
(Frank W.)
May 25, 2024, 6:30am
2
I guess you need to build your image yourself
extroot is a possible generic way, but the most easy way on this hardware is to simply modify the partition size of the production partition. This can either be done at runtime when booting into the recovery system and using a partition editor like fdisk or parted. If using this method the change will only have an effect after the next sysupgrade or when otherwise wiping and re-creating, or manually resizing the rootfs_overlay filesystem.
Or it can be done when building the image from source by…
@dangowrt or is there a way after flashing? Maybe default size can be increased to have more space in the prebuilt snapshots?
Thank you for the link, I managed to get the right size without building an image myself. Maybe there is something easier to do it but I do the following steps:
Flash an sdcard
Install on NAND
Boot on NAND
Flash eMMC from NAND
From NAND run parted liked before to extend production to 100%
Boot on eMMC
Download sysupgrade
Flash sysupgrade
On reboot the overlay is 7.0G
By the way if there is something easier I’ll take it.
norman
(norman)
August 2, 2024, 1:55am
4
could you pls explain more in details?
i followed your steps, but no luck.
norman
(norman)
August 2, 2024, 7:23am
6
i made it, thank you so much