0

I understand that killing power to a running pi without first shutting down can damage the SD card.

Can Killing power at the GDM3 login screen also damage my SD card or do I need to run the GDM3 shutdown function before killing power.

Thanks

0

Short Answer: Just as likely as pulling the plug on an idle system at any other time. This risk is lower than when the device is actively using the SD card. Whether that risk is acceptable is up to you.


The likelihood of physically damaging an SD card from hard power off is rather low and usually requires additional extenuating circumstances.

What tends to happen is file system corruption if the power is pulled during an interaction with the card.

Most file system operations are buffered by the kernel. The kernel schedules synchronization at convenient time, so there is a small chance of an ongoing file system operation at any time.

When you are at the GDM boot screen, the system is completely booted, any services you are using are already running, there is no logged in user, but most of the system functions are operating the same way they are at any other time.

  • Much Thanks. So there is risk. I am using a custom overlay such that the pi will shutdown gracefully when gpio-5 is shorted to gpio-6. Then a second overlay (gpio-poweroff) lets my UPS know it is safe to remove power. Config.txt calls the overlays. This is all initiated by a button. The button works great except if the user doesn't log in. In that case it seems the overlays are not loaded until after login. So the button just kills power. Is there a way to make the overlays load before the user logs in? Or is there another way to use a button to initiate a software shutdown at the GDM3 login? – John Shearing Oct 7 '17 at 1:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.