Hi.
I am trying to compress my Image.img with xz. The Problem is etcher wont flash my compressed img.xz.
Are there any limitations or Rules to compress? What is required?
Thank you
I had the same problem for some time. Recently, I figured a way out. Now I can reliably generate .img files from microSD and USB drives and then convert it to .xz form by using 7-Zip. Such generated .xz files can be flashed back to the SD/USB media. After I using this approach, I have never had any failure.
The key is to generate the .img files using dd. For example:
dd if=/dev/sdc of=xyz.img bs=1KB status=progress
For Linux system, this is straightforward. For Windows systems, I found the most efficient way is use Cygwin. dd for Windows might also work but it seems much slower.
Since no one had given a solution for the original post, I thought it worthwhile to post my solution here. Please let me know your result after you try this.
Recently, I verified that the .img files generated by Win32DiskImager can also be compressed by 7-Zip to obtain flashable .img.xz files.