No important data is on the SD card, only an external drive attached to the pi. I have had to turn the pi off to take the data off of the drive.
Raspberry Pi
Welcome to the programming.dev Raspberry Pi community!
Raspberry Pi is a series of small single-board computers. It is widely used in many areas because of its low cost, modularity, and open design. It is typically used by computer and electronic hobbyists.
Rules
Members of this community are expected to exhibit mature and respectful behavior.
Those who fail to uphold these standards may find their posts or comments removed, with repeat offenders potentially facing a permanent ban.
Please keep discussions in English so that they can be appropriately moderated.
Links
If it happens again and you're curious you could mount the root partition of the sd card and look at the logs and try to fix the issue
What power supply are you using?
The official one that came with the pi. It is plugged into a power bar but that hasn't ever been a problem, I've had it since december 2023
I used to get corrupted SD cards all the time when running Pis 24/7 (remote, outdoor, in an enclosure) so I finally switched to the white industrial SD cards and haven't had an issue since, so maybe that's worth a shot. I only use regular SD cards for temporary testing now.
(Edit: the ones I use are SanDisk industrial for reference)
Worthwhile to check temperatures and see if the PI is shutting off after overheating.
Possibly a short in that button. I had one of those, it kept doing that.