Difference between revisions of "Sdcard imaging"
Jump to navigation
Jump to search
| (One intermediate revision by the same user not shown) | |||
| Line 6: | Line 6: | ||
$ sudo dd if=/dev/sdX bs=4M | gzip > /path/to/your/file/sdcard-backup.img.gz | $ 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: | 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 |
Latest revision as of 14:58, 9 July 2017
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