<p dir="ltr">Remember that you cannot trust the size of sd cards. If you need to make a backup of a card and ensure the image will fit on a card of the same claimed size you should shrink the last partition on the device a bit before backing up. Otherwise you can end up with a damaged file system.</p>
<p dir="ltr">Sendt fra min Sony Xperia™-smarttelefon</p>
<br><br>---- Rick Stevens skrev ----<br><br>On 06/08/2015 09:59 AM, Bob Goodwin - Zuni, Virginia, USA wrote:<br>> Can someone tell me the proper command to clone an SD card?<br>><br>> I am working with the RPI 2B and I would like to store a backup on my<br>> hard drive and be able to write it back to another SD card. I may not be<br>> asking Google the right things but it hasn't helped ...<br><br>You could use something like Clonezilla. On the flip side, to get an<br>EXACT image, as root:<br><br>        # dd if=/dev/sdX of=/place/to/save/<a href="http://image.img">image.img</a> bs=1M<br><br>where "/dev/sdX" is the raw device of the WHOLE SD card (NOT a partition<br>such as "/dev/sda3").<br><br>To put on a new, identical SD card, as root:<br><br>        # dd if=/place/to/save/<a href="http://image.img">image.img</a> of=/dev/sdaX bs=1M<br><br>again where "/dev/sdX" is the raw device of the WHOLE SD card. "dd" is<br>your friend.<br><br>BTW, this should be virtually identical to the way you created the<br>bootable SD card in the beginning, not so? :-)<br>----------------------------------------------------------------------<br>- Rick Stevens, Systems Engineer, AllDigital <a href="mailto:ricks@alldigital.com">ricks@alldigital.com</a> -<br>- AIM/Skype: therps2 ICQ: <a href="tel:226437340">226437340</a> Yahoo: origrps2 -<br>- -<br>- Blessed be the peacekeepers, for they shall be shot at from -<br>- both sides. -<br>- -- A.M. Greeley -<br>----------------------------------------------------------------------<br>-- <br>users mailing list<br><a href="mailto:users@lists.fedoraproject.org">users@lists.fedoraproject.org</a><br>To unsubscribe or change subscription options:<br><a href="https://admin.fedoraproject.org/mailman/listinfo/users">https://admin.fedoraproject.org/mailman/listinfo/users</a><br>Fedora Code of Conduct: <a href="http://fedoraproject.org/code-of-conduct">http://fedoraproject.org/code-of-conduct</a><br>Guidelines: <a href="http://fedoraproject.org/wiki/Mailing_list_guidelines">http://fedoraproject.org/wiki/Mailing_list_guidelines</a><br>Have a question? Ask away: <a href="http://ask.fedoraproject.org">http://ask.fedoraproject.org</a><br>