I’m using FlightAware and FlightRadar24 with Raspberry Pi and before upgrade FlightAware I would like to create a clone of my SD card.
I have 2 cards with 8GB each but I think the image is larger than the second card’s capacity.
The SD card has 2 partitions, one with FAT12 and other with EXT4, and I did the image with this command:
sudo dd if=/dev/sdb of=/home/jorge/FR24.img status=progress
I install the image with this command:
sudo dd if=/home/jorge/FR24.img of=/dev/sdb status=progress
After complete the installation, the second partition cannot be mounted and whem I tryed to check the partition with gparted it gives this error:
“Can’t have a partition outside the disk!”
Do I need to add some options to dd?
Do you know other way to clone the SD card better than dd command?
The first partition has 512MB and the second has 6.92GB but only uses 1.52GB
Do you know how can I shrink the image?
EDIT: with fdisk -l command I can confirm the SD original has 7,4GB and the second has 7,2GB