I downloaded official Raspbian image, did expand_rootfs
, updated everything, installed needed packages, removed unneeded packages. So, now after everything is setup fine, I wanted to backup this image to an .img
file again to save time if I ever need to re-setup this or another Pi.
I'm flashing and backing up the card in Windows with Win32 Disk Imager. But the problem is: now that I did expand_rootfs
it backs up the full mainly empty 32 GB of my card. But I want a backup only of the actually used ~500 MB space (just like one only downloads an image that is just the size of the non-zero space).
How can I create a minimal image file for backup out of the expanded SD card under Windows?