laurentppol Posted October 19, 2020 Posted October 19, 2020 Hi there, I want to migrate system on OPi PC+ from 32GB uSD card to 16GB card. System is small enough to fit on 16GB, but too large for 8GB eMMC (amazingly fast according dd). How to do it? My idea is: - copy (raw, using dd) first 8192 sectors from 32GB to 16GB, - then remove partition (32GB) and recreate it with 16GB size, format using same EXT filesystem, - copy (on another computer, or "simple" Armbian installed on eMMC) partition contents using rsync. Will it work? Will there be no issue with different UUID of new partition?
Solution xwiggen Posted October 19, 2020 Solution Posted October 19, 2020 On a computer where the SD is not the root filesystem, shrink the ext4 filesystem, resize the partition to match the new size, (check if it runs to be sure), dump the SD card and hen write the image to the new SD card. This should work without any modifications to the image itself.
laurentppol Posted October 20, 2020 Author Posted October 20, 2020 Looks it worked this way, thanks. Not tested thouroughly but system starts and looks like it should.
Recommended Posts