Software⏱️ 3 min read📅 2026-06-11

How to Fix: genimage: no free space error for new partition

Error in genimage configuration due to insufficient space for new partition.

Quick Answer: The issue arises from the default size of the rootfs partition not being sufficient for the additional 100M partition. Update the rootfs partition size or adjust the order of partitions to accommodate the new partition.

The 'genimage: no free space error' occurs when attempting to create a new partition using genimage, resulting in an error message indicating that there is not enough free space available. This issue affects users who are setting up their buildroot image with genimage.

This error can be frustrating, especially for those who have successfully set up their system before and are now encountering unexpected issues. However, the solution to this problem lies in understanding how genimage handles partitioning and allocating space.

💡 Why You Are Getting This Error

  • The primary reason for this error is that the new partition size exceeds the remaining free space on the rootfs partition. When creating a new partition, genimage attempts to allocate space from the existing rootfs partition, but if there is not enough free space available, it will result in an error.
  • An alternative reason could be that the new partition size is too large for the available space on the sdcard image. In this case, genimage may not have sufficient space to create the new partition, leading to the 'no free space' error.

✅ Best Solutions to Fix It

Increasing the rootfs partition size or adjusting the new partition size

  1. Step 1: Open the nconfig file and adjust the rootfs partition size to a value that allows for the creation of the new partition. This can be done by increasing the size of the rootfs partition or reducing the size of the new partition.
  2. Step 2: Alternatively, you can try adjusting the size of the new partition to match the available space on the sdcard image. This may require reconfiguring your buildroot image settings.
  3. Step 3: Save the changes to the nconfig file and restart the genimage process. If the issue persists, refer to alternative solutions.

Using a different image format or adjusting the partition layout

  1. Step 1: Consider using a different image format that allows for more flexible partitioning, such as a raw image instead of an sdcard image.
  2. Step 2: Alternatively, you can try adjusting the partition layout by reordering the partitions on the sdcard image. This may involve creating a new partition or removing existing ones.

✨ Wrapping Up

To resolve the 'genimage: no free space error' issue, it is essential to understand how genimage handles partitioning and allocate space. By adjusting the rootfs partition size or using an alternative solution, users can successfully create their buildroot image with genimage.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions