Copy SD-Card with all partitions

To copy a SD-Card to another one including all partitions yo can take the following steps:

  1. Find out the device name (f.e.: /dev/mmcblk0):
  2. Copy the whole card to an imagefile (Backup):
    $> sudo dd if=/dev/mmcblk0 of=backup_pi.img bs=4M
  3. Restore the backup image to the other card:
    $> sudo dd of=/dev/mmcblk0 if=backup_pi.img bs=4M

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.