This question already has an answer here:
- Reverse the expand root FS 1 answer
I know how to backup system image, but what if I want to restore the image to a different size of SD card that does not match the one I backup from? Generally 2 cases: 1. The source SD card is 16G, but I just used like 3-4G, I would like restore it on a 8G SD card. 2. The source SD card is 16G, and I just need to enlarge the space by replace it with a 64GB card, how can I extend the space after write the image?