Resize EMMC OpenWrt 24.10

Hi. To resize EMMC partition on a BPI R3 I used:

opkg update
opkg install parted
parted /dev/mmcblk0
print
resizepart 5 7G
reboot
mount /dev/mmcblk0p66 /mnt
umount /dev/mmcblk0p66
resize.f2fs -s /dev/mmcblk0p66
poweroff

But in OpenWrt 24.10 there’s no /dev/mmcblk0p66.

What is the proper way to resize EMMC partition on OpenWrt 24.10? Thanks

Ok. I’m going to answer myself.

Flash NAND → Flash EMMC → Start on NAND → cfdisk /dev/mmcblk0 → Resize /dev/mmcblk0p5

Start on EMMC and everything is ok.

1 Like

This aproach I try without success. Everytime I get info “Cannoct do this on mounted FS”

You have to do it starting OpenWrt from NAND.

Thanks, I will try it. Thats a good point.

This was very usefull:

Flash NAND → Flash EMMC → Start on NAND → cfdisk /dev/mmcblk0 → Resize /dev/mmcblk0p5

On emmc I really see partition of 7.2GB:

mmcblk0      179:0    0   7.3G  0 disk 
├─mmcblk0p1  179:1    0     4M  0 part 
├─mmcblk0p2  179:2    0   512K  0 part 
├─mmcblk0p3  179:3    0     2M  0 part 
├─mmcblk0p4  179:4    0     4M  0 part 
├─mmcblk0p5  179:5    0    32M  0 part 
└─mmcblk0p6  179:6    0   7.2G  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:0    0  10.8M  1 disk /rom
fitrw        259:1    0   7.2G  0 disk /overlay

But when I log to Luci, it still show 429MB.

df -h:

Filesystem                Size      Used Available Use% Mounted on
/dev/root                11.0M     11.0M         0 100% /rom
tmpfs                     1.9G    288.0K      1.9G   0% /tmp
/dev/fitrw              429.7M     85.6M    344.1M  20% /overlay
overlayfs:/overlay      429.7M     85.6M    344.1M  20% /
tmpfs                   512.0K         0    512.0K   0% /dev

What could be wrong ? Thank you.

I guess,you resized partition but not the filesystem

The first time I tried, the same thing happened to me on BPI-R3. And it was because participation /dev/mmcblk0p5 must be increased before openwrt has ever started on Emmc.

So should I make fresh install of openwrt from SD card? Flash to - nand and then to emmc and then resize partition on emmc from NAND? And then finally boot from emmc ?

Yes, that’s right the way I did It for BPI-R3. Rebember you’ll need cfdisk package on your OpenWrt image.

Ok, thank you a lot. I will install all needed package on NAND. I will try it and let you know about my result.

Hello, I try it all possible working scenario. I even try delete the partition “5” and create it again with cfdisk at NAND mode. After switch to eMMC I was and with “initramfs” recovery mode. I think resize openwrt over full flash eMMC is currently impossible. I found many question on openwrt forum withou solution. Maybe something will change when they release opnwrt 25… Thank you all for helping me.

Example

Have you increased filesystem too? Not only partition…