0

I need to "clone" my Raspberry's SD card, so I can send it to a friend. I need the project to work in any raspberry.

Seeing a lot of posts about how to do this, I decided to use Win32 Disk Imager. When I create the image and try to open the image to see if everything is okay, I get the following message: "The disk image file is corrupted".

I ignored that just to see if my raspberry worked with that SD card, but it didn't.

I was afraid that my original SD card was corrupted, but everything works fine with the original.

I ran the Disk Imager in compatibility mode with windows 7 (I have windows 10), but I get the same results.

Also, the original SD card is 8Gb and I am making the copy in a 16Gb card. I really don't care about the wasted space right now, I just want my project to work on any raspberry with the cloned SD card.

What am I doing wrong?

Luz A
  • 57
  • 3
  • 15

2 Answers2

1

I'm going to assume that your real question is "I need to "clone" my Raspberry's SD card, so I can send it to a friend.", rather than difficulties with a specific way of doing it, ie. Win 32 Disk Imager and "What am I doing wrong?".

I found that Win32 Disk Imager was unreliable: I had 2 micro SD cards, both 16GB, same make and model and even bought at the same time, but the image of one was slightly bigger by a few bytes than from the other, and so it could not be restored to the slightly smaller card. Also, just because you have taken an image, you need to restore it in order to see that it works. I had also occasionally found that images would not restore, even onto a smaller card.

So instead I turned to rpi-clone, which I believe would be a solidly reliable answer for you. So I'm suggesting my answer to "What am I doing wrong?" is, "You're using an inferior method".

I've been using rpi-clone every day for a few weeks to clone my running RPi3 running Raspian Jessie. It takes about 10 minutes to clone to a second Micro SD card. I then switch off, take out both cards, store the original and boot using the clone. Hence I know that the backup works. I rotate 3 cards in this way, so that I always have a safe card. It works for me ;-)

The only thing I would say is that I don't believe you should be expecting a backup from one version of Raspberry Pi to work in a different version.

Geoff
  • 194
  • 6
  • I just tried using the rpi-clone, and I got this error when I boot the raspberry: "Kernel Panic : VFS :Unable to mount root fs on unknown-block". I used my original 8Gb SD card and another 8Gb SD card. – Luz A May 02 '16 at 19:11
  • What command line did you use? For instance '-f' ? Could you provide more info? – Geoff May 02 '16 at 19:24
  • A quick Google of your error message makes me wonder: how are you powering your Pi? While the clone is running you should avoid using your Pi. What could be running on your Pi while the clone is running? – Geoff May 02 '16 at 19:27
  • I'm powering my Pi with a 5V adapter. In my project I'm using WebIOPi, could this be an issue? – Luz A May 02 '16 at 20:23
  • For the 10 minutes it will take to create a copy for your friend, and bearing in mind that other methods would involve taking the SD card out (and you will want to test it anyway), I suggest shutting down any processes you have started. – Geoff May 03 '16 at 06:40
  • ps. Did you use -f? You should the first time at least. – Geoff May 03 '16 at 06:40
  • Hi @LuzA, wondering how you got on with your cloning? – Geoff May 14 '16 at 06:34
  • Hi @Geoff, I tried with rpi-clone, but it didn't work either. I borrowed a mac and it worked, but the problem with that is that it took 12 hours. I don't think that's right. I will try to install everything in another SD card to see what happens if I clone that one. – Luz A May 15 '16 at 16:02
  • Hi @Luz, any joy? rpi-clone takes 10 minutes on a new SD card (because it has to copy everything), and perhaps 2 if the card has been used to clone that system before... I'm now working with a set of 6 SD cards, great for changing your mind if the chosen path isn't working :-) – Geoff May 25 '16 at 16:53
  • Hi @Geoff there was no joy in the cloning of that SD card, rpi-clone didn't work because I installed Raspbian through NOOBS and according to the Read me file of it, it doesn't work in that case. However, I reinstalled everything I had in another SD card and I was able to clone that one. Not really sure if there was something wrong with the other SD card. Thank you for your answers and your patience. – Luz A Sep 08 '16 at 19:44
  • I will mark your answer as correct because it was the closest thing to an answer. – Luz A Sep 08 '16 at 19:46
1

It is normal for windows to say that the image is corrupted because the file system is EXT4 and FAT and windows is not used to having 2 partitions in the same image. To see the files in the image, use 7-zip (https://www.7-zip.org/a/7z1801.exe).

Aurora0001
  • 6,308
  • 3
  • 23
  • 38