Question What software can copy SD card to an img file, so that the size of the img file = data size, not the whole SD capacity?

zzzhhh

Distinguished
May 13, 2018
98
3
18,535
I want to copy SD card to an img file, so that
1) I can use the img file to exactly restore SD card using Win32 Disk Imager,
2) the size of the img file is approximately the data size on SD card, not the whole SD capacity. For example, Assume I have a 64GB SD card having only 10GB data. I wish the img file copied out is approximately 10GB, not 64GB.

What software can do this? Windows or Ubuntu are ok. Thanks.
 
I want to copy SD card to an img file, so that
1) I can use the img file to exactly restore SD card using Win32 Disk Imager,
2) the size of the img file is approximately the data size on SD card, not the whole SD capacity. For example, Assume I have a 64GB SD card having only 10GB data. I wish the img file copied out is approximately 10GB, not 64GB.

What software can do this? Windows or Ubuntu are ok. Thanks.
You want to use <some software> to create the Image, but Win32Disk Imager to recover it?

No.
You create and recover with the same tool.


I expect Macrium Reflect can do this.

What is the actual use case behind this desire?
 
  • Like
Reactions: CountMike
You want to use <some software> to create the Image, but Win32Disk Imager to recover it?

No.
You create and recover with the same tool.


I expect Macrium Reflect can do this.

What is the actual use case behind this desire?
What do you mean by saying no first and then saying <some software> can do this?
Pursue an EE degree in college and you can find a lot of use cases behind this desire.
 
I want to copy SD card to an img file, so that
1) I can use the img file to exactly restore SD card using Win32 Disk Imager,
2) the size of the img file is approximately the data size on SD card, not the whole SD capacity. For example, Assume I have a 64GB SD card having only 10GB data. I wish the img file copied out is approximately 10GB, not 64GB.

What software can do this? Windows or Ubuntu are ok. Thanks.
Do what even the professionals do, take the image and then use 7zip or whatever to compress it, apps like balenaetcher can take compressed images and uncompress and restore them automatically.

If you want to use win32 exclusively then you can't do it since the program itself doesn't compress the image by itself, that's why usafret told you that you need to use another tool, one that can take the image while compressing it.
HDDrawcopy can do it, it saves in imgc (image compressed) by default, if you don't want compression then on the save dialog you change the file extension to simple img.