(2018-02-24, 11:10 AM)affinite Wrote: Sorry for slight thread drift but ...
does anyone know of a way to restore a disc image to a smaller (than the original source card) sized SD card ?
I have built my OP system on a 32GB card which was all had around at the time but I'd now like to setup an off-the-boat clone of the working system and I would really prefer to run on a 16GB card.
When I use the Windows Win32diskimager app to image my SD card I get a 30GB disk image even though less than half of the card is actually used. That of course will not restore to a 16GB card.
Thanks
Steve
If running linux, you can install gparted and shrink the image.
assuming using raspbian or ubuntu pc to shrink micro sdcard fitted in a connected card reader
First install gparted
Code:
sudo apt-get update && sudo apt-get install gparted
When your microsd card containing youur old install is plugged into the system, start gparted
Code:
sudo gparted
When gparted have started, use the drop down menu in gparted in the upper right side of the gparted window, and choose your microsd card containing the partition to be shrinked. chose the partition to be shrinked by selecting the partition with your mouse. when selected go to the menu->partition and choose "rezize/move" choose the new size and be sure the size will fit on the new microsd card you want to use. when done, press change size. after the process is finished, you must press the green V apply all changes. After this operation, unmount your sd card and put it back. You can now use DD to copy the content to your new card