On Linux:
1.) Check on which node your SD-card gets mounted on your Linux machine. You can do that via
sudo dmesg -w and then inserting SD card or by using e.g. 'Disks' (gnome-disks) or by using any other tool where your disks are listed. My USB card readers gets
/dev/sdd, so I need to use
/dev/sdd for the following commands.
2.) Backup disk to a file:
# sudo dd_rescue /dev/sdX ~/Backup/A600GS.img
3.) Write backup-image to new card:
# sudo dd_rescue ~/Backup/A600GS.img /dev/sdX
4.) Start 'gparted', select /dev/sdX. Enlarge your data partition to desired size.
For the used directories and filenames you can choose whatever you like.
~/ stands for my home directory, the image file
A600GS.img will be placed in the
Backup directory lying in my home folder, As such I use
~/Backup/A600GS.img for the complete path.
or
You can use disk/partition cloning tools like
https://clonezilla.org/ if you don't like typing CLI commands. But be aware the Clonezilla interface is text-based too.
