Clone SD card -

Rick Stevens ricks at alldigital.com
Mon Jun 8 17:06:25 UTC 2015


On 06/08/2015 09:59 AM, Bob Goodwin - Zuni, Virginia, USA wrote:
> Can someone tell me the proper command to clone an SD card?
>
> I am working with the RPI 2B and I would like to store a backup on my
> hard drive and be able to write it back to another SD card. I may not be
> asking Google the right things but it hasn't helped ...

You could use something like Clonezilla. On the flip side, to get an
EXACT image, as root:

	# dd if=/dev/sdX of=/place/to/save/image.img bs=1M

where "/dev/sdX" is the raw device of the WHOLE SD card (NOT a partition
such as "/dev/sda3").

To put on a new, identical SD card, as root:

	# dd if=/place/to/save/image.img of=/dev/sdaX bs=1M

again where "/dev/sdX" is the raw device of the WHOLE SD card. "dd" is
your friend.

BTW, this should be virtually identical to the way you created the
bootable SD card in the beginning, not so? :-)
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks at alldigital.com -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-     Blessed be the peacekeepers, for they shall be shot at from    -
-                            both sides.                             -
-                                            -- A.M. Greeley         -
----------------------------------------------------------------------


More information about the users mailing list