Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#4037 - CONFIG_TARGET_ROOTFS_PARTSIZE is not changed when reflashing the same sdcard #9026

openwrt-bot opened this issue Sep 14, 2021 · 0 comments


Copy link

@openwrt-bot openwrt-bot commented Sep 14, 2021


Building for Nanopi R4s using sdcard flash on squashfs image

  1. set the CONFIG_TARGET_ROOTFS_PARTSIZE from the default 104mb to something say 500mb
  2. write to sdcard using dd or sysupgrade
  3. initially this will work as it will reformat from the default ext4 overlay to f2fs overlay (via libfstools common.c)
  4. clean build and change the CONFIG_TARGET_ROOTFS_PARTSIZE to 1024mb and reflash
  5. notice that in the flashed system the mount is still 500mb for overlay
  6. changing the CONFIG_TARGET_ROOTFS_PARTSIZE to 300mb also does not work and the mount is still 500mb (could this be dangerous?)


  1. inspect the sdcard and the partition is the correct size so the residual dirty data in the sdcard is causing the mount to think that its still 500mb
  2. if you zero the partition using dd and then reflash the sdcard, the system will see the new overlay size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant