On one nice spring evening, I was away from home and wanted to check some of my old photos. I have my photo library service hosted on my lan, which i

From Disaster to Efficiency: Automating My Raspberry Pi Setup After SD Card Failure

submited by
Style Pass
2023-05-24 16:30:08

On one nice spring evening, I was away from home and wanted to check some of my old photos. I have my photo library service hosted on my lan, which i access through WirGuard VPN when I’m away. As per usual I launched the WireGuard app on my phone, turned the VPN on, but to my surprise the photo service wasn’t reachable. Weird. I played with it for a while restarted my phone, nothing helped. Ultimately i didn’t think much of it and decided to investigate once I’m back home.

After a few days, I decided to take a look at what might be causing the issue on my raspberry pi. I tried accessing multiple services that were hosted on the pi, but sadly without any luck. I tried SSHing in the pi - nothing. I rebooted the pi with an HDMI cable plugged in, and noticed a bunch of errors related to storage drive failure. Turns out my SD card was toast, i was able to mount it on my laptop and back everything up, however it would no longer boot up even after formatting and rewriting the image.

The SD card failure didn’t really surprise me as it was running 24/7 for more than a year, however i didn’t want another card dying on me so i bought an SSD in hopes that it will be more reliable than SD card.

Leave a Comment