Saturday, 15 June 2013

Avoiding Problems With SD Cards

Guess what? My Raspberry Pi SD card got corrupted yesterday :(

I was faced with 2 options: Buy a new card with the Raspbian Wheezy operating system loaded; or re-build my own card.

So I decided to re-build my own.

The first step was to get an image of the most up to date copy of Raspbian onto my Windows netbook using this guide.

I then made a copy of the corrupted disk on my netbook because some of the files might stiil be useful (As it turned out, they was very useful).

Then I needed to download Win32DiskImager so that I could copy the image onto my SD card. The above guide explained all that too.

When I plugged the card back in the RPi and powered up, I got nothing on the PC monitor. So I copied over the config file from my copy of the original corrupted card. I found that it had all the settings I'd pieced together over the last few weeks! This saved me loads of time and got the PC monitor going.

Thankfully, my own blog helped me re-build my web server but I'd lost most of my prototype website. Bummer.

Of course, the way to avoid this kind of thing is to take regular back-ups of the SD card using Win32DiskImager or like this. Then, all you have to do, is copy your most recent back-up image onto the card. Simples.

No comments:

Post a Comment