SV: Re: Clone SD card -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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    ricks@xxxxxxxxxxxxxx -
- 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
users@xxxxxxxxxxxxxxxxxxxxxxx
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
users@xxxxxxxxxxxxxxxxxxxxxxx
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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux