#39462
morias
Participant

dd is a command line tool for unix to backup disks. It can be dangerous so be careful.

From memory I run the following:

df to see what disks are mounted.
umount /dev/sdb1 if my sd card is device sdb
sudo dd bs=4M if=/dev/sdb of=filename.img

To copy that to the new sd I unmount it and run:
sudo dd bs=4M if=filename.img of=/dev/sdb

You might want to google some other pages about backing up a sdcard using dd before doing it for the first time. Obviously you need another linux computer to do it as you can’t do it whilst it is mounted.