Posts: 13
Joined: Thu May 31, 2012 10:12 am

Copying SD Cards

Thu Jun 07, 2012 3:24 pm

I'm trying to make a back-up image of my Arch SD card. I used the Disk Utility tool on a Mac and the instructions here: ... ur+SD+Card

to create the back-up image. I then followed the Disk Utility instructions when creating the new SD card.

My first card works fine but when I load the image I created onto another SD card and run it in my RPi I get a kernel panic. Does anyone have any idea where I'm going wrong? It seemed a little too simple of a solution to work anyway.

Many thanks in advance.

Posts: 3
Joined: Sat Jun 02, 2012 3:08 am

Re: Copying SD Cards

Fri Jun 08, 2012 4:01 am

I just use dd - something like

dd if=/dev/mmcblk0 of=/mnt/yuyuko/nix/nazrin/images/backup_080612.img

backs up the whole of my sdcard to the house nfs server - check the man pages/google, just make sure you get 'if' and 'of' or it can get messy.

looking at this ... 1216314856 it seems the dmg image might be quite an exact image copy, which would lead to the problems your seeing - mind you that article is a bit dated.

Posts: 13
Joined: Thu May 31, 2012 10:12 am

Re: Copying SD Cards

Fri Jun 08, 2012 9:29 am

Yeah, my first card (The one that worked) developed the same problem so I've been trying to use the back-up image all day. I've tried using the method in the link you posted but it gives the same error leading me to think it's a problem with the image itself and not the copying process. I'll use dd from now on.

I'm now in the process of rebuilding the first card. What do you think caused the first card to develop the kernel error? Is it just from turning it off without correctly shutting it down?

Posts: 8
Joined: Sat May 19, 2012 8:38 pm

Re: Copying SD Cards

Fri Jun 08, 2012 8:33 pm

You can even make backup over net without stopping raspberry. All you need is netcat and (not necessery but very useful) pipeviewer (pv). examples:

# on normal pc
nc -l -p 5556 | pv | dd of=raspberry_pi_bak_2012_06_01.img.gz

# on raspberry
sudo dd if=/dev/mmcblk0 | gzip -9 | ncat 5556

Return to “Arch”