My Raspberry Pi, on which I host a Minecraft server, suddenly froze. I cannot not SSH in, nor can I join the Minecraft server. I ran the Minecraft server in Docker, via itzg/docker-minecraft-server. I turned off the Raspberry Pi, took out its microsd and plugged it into my PC, to at least attempt to run the Minecraft server from my PC to see if I still have the data. I tried to copy it with cp
, but I got an input-output error. Could this be the filesystem’s fault? And how can I fix this? If you need any additional info about this crash, please do not hesitate to ask.
“He’s dead Jim”
MicroSD cards aren’t designed for a lot of writes. Your card it probably dead. If you must use a RPI with a SD card you should get an enterprise grade MicroSD
I think “endurance” cards are where you get something reasonably non-self-destructive, for a modest premium.
The enterprise cards are pricey but the can take a beating and have a large write capacity
I’ll get an M.2 HAT and an ssd
While I haven’t personally tried it, I’ve heard people have issues with cooling when using the M.2 hat, especially when using their Pi for intensive applications (like hosting a Minecraft server). I’d honestly recommend just getting a 2.5" USB drive enclosure and an SSD. Costs about the same amount of money without the drawback of poor cooling. You can use it with any case, since it just connects via USB. I have been running my Pi this way for years (in fact I have never used an SD card in it).
That works although its not all that cost effective
If it’s running off an SD card then it’s very likely the SD card is broken. It’s better to run a pi off a USB SSD drive. Hope you have backups. Good luck either way.
Edit (more context):
https://hackaday.com/2019/04/08/give-your-raspberry-pi-sd-card-a-break-log-to-ram/
https://hackaday.com/2022/03/09/raspberry-pi-and-the-story-of-sd-card-corruption/
I’ll second that: every single issue I’ve had with any of the Pis that are around here have all been bad sd cards.
They’re useful if you’re using an OS that doesn’t ever write to them, but as soon as you’re using a full Linux distro or running software that is writing logs or data, they’re going to fail and probably sooner than later and, of course, at the most annoying time possible because it’s a computer and that’s their thing.
tldr Sudden Death card