Extend partition

Hello, Recently I was install latest “Openwrt” stable image on my BPI-R4. Everything work from scratch except only thing. I was install Openwrt to eMMC 8GB flash memery from SD card. If I check lsblk command, the system use only 429MB for /overlay. Is there any possibility to extend the partition to whole 8GB eMMC? Here I attach the lsblk command:

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

Thank you in advanced.

You’ll get a much faster response if you had asked on OpenWrt forum for stock OpenWrt question.

Also, your question had been answered a hundred times on OpenWrt forum. So make good use of google search.

Cheers

Thank you for advice. Could you link me to post where is my question aswered hundred times ?

This link applies to BPI-R3, so I don’t know if the R4 design is similar, but this link shows how I solved it installing OpenWrt 24.

Hope you know what you’re doing. Not follow steps that you just copy and paste.

Cheers.

Some sample links of “hundred times”:

I did it successfully on the R4 with OpenWRT 24.10.x by those steps: (be aware that tools like fsck, parted or resize have to be installed before)

  1. Boot from eMMC in failsafe mode
  2. Run parted and resize partition 5(!) to 100%
  3. mount -t f2fs -o rw /dev/fitrw /mnt && umount /mnt
  4. fsck.f2fs -f /dev/fitrw && resize.f2fs /dev/fitrw
  5. reboot

If you are not knowing how to do those steps, now you can use the search/google/chatgpt cause you’ll find all answers around :slight_smile:

And for all those links which are nice (i looked at them too), first only two links are not before 2023 and only one link is from this year. OpenWRT 24.10.x was created this year, so if you are lucky it is the same way like on earlier OpenWRT versions (p.s.: you are not lucky :wink: ).

The way i did it for R3 on OpenWRT 23.05.x was not the same like i did here for R4 with OWRT 24.10.x :slight_smile:

So i know always the “try the search” thing in boards, but sometimes people tried the search and all the links but still do have the “same” question :wink:

And to be honest, the partition layout is not the same for every board for OWRT, so asking here is not as wrong as you are telling :slight_smile: i think this is a half/half thing (50% bpi / 50% owrt) so maybe asking in both boards would bring much faster responses (or results) :smiley: