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.
Sendt fra min Sony Xperia™-smarttelefon ---- Rick Stevens skrev ---- >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 [email protected] - >- AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - >- - >- Blessed be the peacekeepers, for they shall be shot at from - >- both sides. - >- -- A.M. Greeley - >---------------------------------------------------------------------- >-- >users mailing list >[email protected] >To unsubscribe or change subscription options: >https://admin.fedoraproject.org/mailman/listinfo/users >Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct >Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines >Have a question? Ask away: http://ask.fedoraproject.org
-- users mailing list [email protected] To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
