Make your own image
When you have made modifications to an image and want to create your own image, you can follow the steps below on Linux to create a minimal image.
-
Firstly, use the
gparted
software to open the SD card of the image you want to create. Usegparted
to partition the unused space and set it as unallocated. This ensures that this portion of empty space without any valid content is not included in the image creation. -
Next, use the
fdisk
command to view the size of the available space, as shown in the following image, which is 10151935. -
Then, use the
dd
command to write to an empty img file. Set thecount
value to be greater than the size of the volume end obtained fromfdisk
by at least 1.
touch blikvm-armbian-v4-20230623.img
sudo dd if=/dev/sdb of=./blikvm-armbian-v4-20230623.img bs=512 count=10151936
- Wait for the
dd
command to finish executing.
Last update:
August 15, 2024
Created: November 13, 2022
Created: November 13, 2022