I have installed Kali Linux on my Orange Pi board from the official website and made some configuration changes on top of the default installation. I was wondering if I can create a new image, a kind of savepoint, here so that I can directly install it on the memory card in case something went wrong with the installation in the future.
What I came up was to dump the entire memory of the flash card, bit-by-bit, using the
dd utility but the problem with it is that it'll dump the entire 64 GBs even though the OS is barely over 3GB.
Now first off, if I use
dd the way I mentioned and dump it back on the card, would it work? And how do I create the image of the proper size?