12-06-2020, 09:49 AM
You can avoid using the space for the unzipped image if you pipe between the extraction and the dd, or just use a tool that can handle compressed images in the first place. Something like:
xzcat imagefile.img.xz | sudo dd of=/dev/mmcblk1 bs=1M status=progress conv=fsync
Or:
sudo bmaptool copy imagefile.img.xz /dev/mmcblk1
As has been said before you're overwriting entire disks/ssds/sd cards so double check you've got the right device, and that you know exactly what the command is going to do in case you or I have a typo or mistake in there.
xzcat imagefile.img.xz | sudo dd of=/dev/mmcblk1 bs=1M status=progress conv=fsync
Or:
sudo bmaptool copy imagefile.img.xz /dev/mmcblk1
As has been said before you're overwriting entire disks/ssds/sd cards so double check you've got the right device, and that you know exactly what the command is going to do in case you or I have a typo or mistake in there.