Hi, cloning an eMMC or SD card to a smaller SD card is not possible. Hence, I tried to use rockpi-backup.sh to back up mmcblk2 on a Rock Pi 4c with a minimal bullseye version (https://sd-card-images.johang.se/boards/rock_pi_4c.html).
apt install resize-helper did not work, because the package was not found, so I installed it manually.
./rockpi-backup.sh -o /mnt/sda1/backups/
seems to have only created an image of /dev/mmcblk2p2 instead of the whole eMMC card.
Running
./rockpi-backup.sh -t expand
warned me that it found only an MBR, but continued anyway to overwrite a GPT on /dev/mmcblk2.
Rebooting was not possible anymore after that action.
Should rockpi-backup.sh work properly on a Rock Pi 4c (with bullseye)?
Is there anything that needs to be changed in the script (or e.g. resize-helper)?
Is there a straight forward way to copy the whole content (all partitions) of the eMMC card to a smaller eMMC or SD card?