Tampepper
Posts: 4
Joined: Thu Jun 07, 2012 10:50 am

Clone sd card

Fri Jun 08, 2012 8:47 am

After succesfully getting HDMI and sound working on RasPi, I would like to make a clone of my SD card for back up in windows
Is there a piece of software to clone a sd card ?

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Clone sd card

Fri Jun 08, 2012 12:40 pm

Win32DiskImager

You can use this free program to either write to an SD card, or read from an SD card. I use it to take a snapshot before I do any major
work on the system.
Hope this helps,
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

markysoft
Posts: 9
Joined: Fri Sep 09, 2011 9:40 am

Re: Clone sd card

Fri Jun 08, 2012 12:43 pm

If you are on windows you can use the win32DiskImager.exe to read as well as write cards.

Choose a new file name from the dialogue, then click the 'read' button and it should back up the card to the file.

Edit: hah, 3 seconds too late!

texy
Forum Moderator
Forum Moderator
Posts: 5157
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Clone sd card

Fri Jun 08, 2012 1:03 pm

Lol. I'm always doing it. It took me 5 minutes to remember exactly which imager I was actually
talking about.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Tampepper
Posts: 4
Joined: Thu Jun 07, 2012 10:50 am

Re: Clone sd card

Fri Jun 08, 2012 1:28 pm

My card shows two images
Kernel.img and Kernel_Emergency.img

dtud2
Posts: 14
Joined: Thu May 31, 2012 10:02 pm

Re: Clone sd card

Fri Jun 08, 2012 2:12 pm

Tampepper wrote:My card shows two images
Kernel.img and Kernel_Emergency.img
I asked this question, apparently Kernel_Emergency.img is never used, its there for you to copy over the original kernel if you need to revert changes.
R Tape loading error, 0:1

User avatar
Ed Raket
Posts: 164
Joined: Mon Apr 30, 2012 4:28 pm

Re: Clone sd card

Fri Jun 08, 2012 2:50 pm

And what would be the Linux program to easely "clone" the SD card? (noob proof :) )

MarshallBanana
Posts: 24
Joined: Sat Jan 21, 2012 9:19 pm

Re: Clone sd card

Fri Jun 08, 2012 3:48 pm

Ed Raket wrote:And what would be the Linux program to easely "clone" the SD card? (noob proof :) )
under linux you can just use the dd command (yes, the same you probably used to write the image *g*)

command would be something like

Code: Select all

dd bs=1M if=/dev/sdb of=/home/username/backups/pi-backup.img
if= is the devicename of you sd-card-slot (will probably be different on your system, after inserting a card in the slot at the end of

Code: Select all

dmesg
should show you the name)
of= here goes the path to the filename where you wanna store the image...

easy peasy ;-)

User avatar
Ed Raket
Posts: 164
Joined: Mon Apr 30, 2012 4:28 pm

Re: Clone sd card

Fri Jun 08, 2012 5:36 pm

THX Marshall B, That sure looks easy enough! it looks like im returning to the "dos" day's, when i was really "in to" computing at the command line... Nice to be at it again! :)

Hronicaing
Posts: 1
Joined: Sat Jun 09, 2012 5:46 am
Contact: Website

Re: Clone sd card

Sat Jun 09, 2012 5:47 am

And what would be the Linux program to easely "clone" the SD card? (noob proof :) )

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Clone sd card

Sun Jun 10, 2012 10:01 am

Tampepper wrote:My card shows two images
Kernel.img and Kernel_Emergency.img
Those are "kernel images" which are something very different to "SD card images". It's just an unfortunate coincidence that they both share the .img extension.
(the kernel images are actually contained as part of the filesystem inside the SD card image)

Return to “General discussion”