Dietpi-imager - No drive with an ext4

Hello,

I am trying to make an image of the installed system (dietpi bookworm image) so that I can replicate it. I wanted to use dietpi-imager but it gives the following error:

root@mag-com-cm4:~# ./dietpi-imager
[  OK  ] DietPi-Imager | cd /root
[ INFO ] DietPi-Imager | Checking for required APT packages: parted fdisk zerofree xz-utils
[FAILED] DietPi-Imager | No drive with an ext4, F2FS or Btrfs formatted partition found, aborting...
[ INFO ] DietPi-Imager | NB: This is the list of available block devices:
/dev/mmcblk0      29.1G 179:0
├─/dev/mmcblk0p1   128M 179:1   vfat   /boot
└─/dev/mmcblk0p2    29G 179:2   ext4   /
/dev/mmcblk0boot0    4M 179:32
/dev/mmcblk0boot1    4M 179:64
Press any key to return to menu...

i have latest dietpi image on CM4
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=8
G_DIETPI_VERSION_RC=0
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’

The only thing that was done with the installation is that I installed the image, ran it, updated it and used dietpi-imager.

Thanks for your help.

The imager can not be executed on the same system that should be imaged.

ou :slight_smile: Thank you, I tried to find some documentation, but I couldn’t find anything.
So the best option is to connect the system I want to image via USB in Boot mode to another DietPi instalaltion and use dietpi-imager on the second PC
EDIT: Will there be a problem if I want to make an aarch64 installation image using the x86 version of dietpi?

Simply connect the SD card to another Linux based system. Doesn’t matter if it is x86 or arm

I always use a USB SD-card adapter like this:

That worked fine for me.