I am trying to backup my raspberry pi sdcard (raspbmc img) while it's running
#1
I am trying to backup my raspberry pi sdcard (raspbmc img) while it's running.

I tried dd if=/dev/mmcblk0 of=/home/pi/networkdrive/my.img bs=1M
to copy the img to a nfs (the entire sdcard, both boot and the second partition). but after i dd the img to a new sdcard. it fails to boot up. What's the reason for its failure? anyway to fix?

I also find this link http://cagewebdev.com/index.php/raspberr...s-running/, it tells you to backup only partition 2 instead of entire disk. but how can I restore it to a rpi sdcard with two partitions?
Reply
#2
I'm not surprised it fails - trying to make an image of a 'disk' which has 2 filesystems, and they are both in use, will result in inconsistencies.

I wouldn't, either, like to try the process in that link while raspbmc or openelec was running.
I suggest you find posts which tell you how to backup the configured parts of the system, and then restore these - that is the only reliable way, apart from doing a complete standalone image from another system.
Derek
Reply

Logout Mark Read Team Forum Stats Members Help
I am trying to backup my raspberry pi sdcard (raspbmc img) while it's running0