Hello everyone,
I have been developing with the invaluable help from this community. I am currently using OpenWrt's ImageBuilder to create a custom image for the x86 architecture. The generated image, generic-ext4-combined-efi.img.gz, is installed on my nvme0n1, which has a capacity of 256GB.
However, the created image only utilizes 104MB of disk space. Here is the current disk layout:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 14.3G 0 disk
└─sda1 8:1 1 14.3G 0 part
nvme0n1 259:0 0 232.9G 0 disk
├─nvme0n1p1 259:1 0 16M 0 part /boot
│ /boot
├─nvme0n1p2 259:2 0 104M 0 part /
└─nvme0n1p128 259:3 0 1007K 0 part
I want to adjust the image to utilize the full capacity of the disk. In my search, I found that in the .config file of the ImageBuilder, I could modify the following properties:
- CONFIG_TARGET_KERNEL_PARTSIZE=...
- CONFIG_TARGET_ROOTFS_PARTSIZE=...
So, I tried modifying them to:
- CONFIG_TARGET_KERNEL_PARTSIZE=512
- CONFIG_TARGET_ROOTFS_PARTSIZE=237,568
However, when I attempt to create the image using the make command, an error occurs:
>
> 8931868 bytes (8.9 MB, 8.5 MiB) copied, 0.0142419 s, 627 MB/s
> dd: memory exhausted by input buffer of size 249108103168 bytes (232 GiB)
> make[3]: *** [Makefile:158: /home/ow-ib/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-22.03.5-x86-64-generic-squashfs-rootfs.img.gz] Error 1
> make[2]: *** [Makefile:189: build_image] Error 2
> make[1]: *** [Makefile:127: _call_image] Error 2
What am I doing wrong here? How can I create a custom image that utilizes all 232GB of the available space? I would greatly appreciate any insights or advice from the community.
Thank you in advance for your help.