How to Clone Your Raspberry Pi SD Card for Super Easy Reinstallations

Google+ Pinterest LinkedIn Tumblr +

If you have ever turned a Raspberry Pi right into a media center or retro gaming station, you understand how irritating it may be when it crashes and corrupts your SD card. Here’s a little bit trick to creating that rather less painful.

The Raspberry Pi is a finicky little gadget. There was a time period the place my Raspberry Pi media heart had loads of hassle—each as soon as in awhile, it could freeze or crash, requiring me to unplug it to get it going once more, which might corrupt the SD card. While the issue was attributable to a nasty energy provide, it took me awhile to diagnose, and it was actually annoying to must arrange the Pi from scratch each time this occurred.

So, I got here up with an thought: After putting in XBMC and getting everything set up just the way I want it, I might clone my SD card. That manner, if and when it crashed subsequent, I might simply copy my all-set-up picture again to the SD card, put it within the Pi, and be up and operating once more in minutes as an alternative of hours. I extremely advocate everybody do that to the SD card for his or her Pi, it doesn’t matter what you are utilizing it for. It’ll make your life loads simpler.

Cloning the SD card is easy. Just comply with these steps:

  1. Get the whole lot arrange simply the way in which you need it in your Raspberry Pi, no matter you are utilizing it for. Then shut down the Pi and take away the SD card. Insert the SD card into your laptop.
  2. Start up Win32DiskImager, a program that you just most likely have from when you first set up your Pi. (If you are on OS X or Linux, you may must use the dd command as described here as an alternative of those steps).
  3. In the “Image File” field, enter the trail of your soon-to-be picture file. For instance, I put mine in C:UsersWhitsonimagesmyraspbmc.img
  4. Under the “Device” field, choose your SD card.
  5. Click the “Read” button to create the picture file out of your card.
  6. When it is achieved creating the picture file, you possibly can eject your SD card and put it again in your Raspberry Pi. Keep that IMG file in a secure place.

Now, if something ever goes incorrect along with your Pi, you possibly can restore your fully-set-up picture utilizing the reverse directions:

  1. Insert the SD card again into your laptop.
  2. Head to the beginning menu or display screen and sort “disk administration.” Open the disk administration program and discover your SD card within the record.
  3. Right-click and delete all of the partitions in your SD card. When it is empty, right-click on it and format it (it does not matter what filesystem you format it to, your laptop simply wants to acknowledge it).
  4. Open Win32DiskImager once more and browse in your picture file. Select your gadget from the Device dropdown simply as you probably did earlier than.
  5. This time, click on “Write” to write down the picture to the SD card.
  6. When it finishes, eject the SD card and re-insert it into your Raspberry Pi. When you boot it up, it must be in the very same state it was in while you first cloned the SD card.

Once you have achieved this, organising your Pi from scratch shall be a complete lot easier!

Photo by derkamener1984.

Read more


Leave a Reply

%d bloggers like this: