2

I have a raspberry Pi, Model B.

I installed Raspbian on the SD card and I would like to use it as a SVN server. The problem is that when it shuts down unexpectedly (i.e. there is a blackout, or DC power gets accidentally disconnected before shutting down the OS), it won't boot anymore. It hangs on a black screen and doesn't boot up. How can I fix this?

Jonas Stein
  • 173
  • 1
  • 11
BackSlash
  • 121
  • 6

2 Answers2

1

I had the same problem of a corrupted file system after an unexpected shutdown. I used a Linux system with an SD card reader and used the fsck(check and repair Linux filesystems) tool to "repair" the file system.

There are LiveCDs/LiveUSBs with Linux so you don't need to install the entire OS if you don't want to.

After that, I made a image of the working SD card, so I am able to simply rewrite the whole SD card in case something happens later.

Federico
  • 143
  • 1
  • 2
  • 7
Kuishi
  • 11
  • 2
0

Unfortunately, there's a known issue where if the Pi loses power; it can corrupt the SD card permanently. I've lost 2 so far. The best way to avoid this is to either use a UPS; or, as I do, keep it plugged into a cheap netbook with a 9 hour battery.

linuxgnuru
  • 625
  • 10
  • 21
  • Can you provide sources for this? Is there an explanation why SD cards get destroyed so often in the Raspberry PI, but not in other devices? – Jonas Stein Sep 22 '14 at 09:28
  • Other than personal experience there's this thread tells more; there are a lot of theries such as if the card is genuine, if you are overclocking the Pi, and even if it's class 4 vs 10: http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=36533 – linuxgnuru Sep 23 '14 at 10:55