Sdcard imaging

From gr0x0rd
Jump to navigation Jump to search

To create an image of your sdcard, insert the card into an appropriate card reader attached to your system.

On most (linux) systems, the card will show up as /dev/sdX. But on some systems such as ubuntu, it will be /dev/mmcblkX.

To create a backup image of the sdcard and compress on the fly, use the following example:

$ sudo dd if=/dev/sdX bs=4M | gzip > /path/to/your/file/sdcard-backup.img.gz

To push this image onto a different sdcard, use this example:

$ gunzip -c /path/to/your/file/sdcard-backup.img.gz | sudo dd of=/dev/sdX