Hello dear community,
Recently I was install Openwrt on my "BananaPI BPI-R4" with 8GB of eMMC flash. Openwrt partition "mmcblk0p5" take only 448MB.
I can't figure out how can I resize fs for this partition on whole 8GB available space.
"mmcblk0p5" is mount like this "/dev/fitrw 429.7M 66.2M 363.5M 15% /overlay".
Everetime I try to use command "resize.f2fs" I get this error:
resize.f2fs /dev/mmcblk0p5: Error: In use by the system!
Is there any solution how to extend it ? Thank you for any advice.
standard roots size is ~100MB, are you running native OpenWRT ?
If you resize the rootfs partition after installing OpenWrt, then realize that every sysupgrade will change it back to default and cause to redo the work all over again.
If you are actually running out of space, then you can use https://openwrt.org/docs/guide-user/installation/sysupgrade.owut#expanding_root_file_system to build images with rootfs increased it to 1G. (Or create your own customizations with imagebuilder.)
Hello,
Thank you all for quick reply. I just give more detailed description.
I was download openwrt.img here.
I wa copy the .img to the SD card. Boot device and from u-boot I choose the "Install bootloader, recovery and production to eMMC"
REboot and openwrt boot up and running. Problem is if I check the "eMMC" storage no of any partition dos not use full eMMC size which is 8GB.
Here is the "lsblk"
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mtdblock0 31:0 0 2M 1 disk
mtdblock1 31:1 0 126M 0 disk
mmcblk0 179:0 0 7.3G 0 disk
├─mmcblk0p1 179:1 0 512K 0 part
├─mmcblk0p2 179:2 0 2M 0 part
├─mmcblk0p3 179:3 0 4M 0 part
├─mmcblk0p4 179:4 0 32M 0 part
├─mmcblk0p5 179:5 0 448M 0 part
└─mmcblk0p128 259:0 0 4M 0 part
mmcblk0boot0 179:8 0 4M 1 disk
mmcblk0boot1 179:16 0 4M 1 disk
ubiblock0_4 254:0 0 16.3M 0 disk
fit0 259:1 0 10.8M 1 disk /rom
fitrw 259:2 0 431.7M 0 disk /overlay
I think the partition "fitrw 259:2 0 431.7M 0 disk /overlay" should be resize to full space of 8GB.