Automation/RaspberryPi: Difference between revisions

From Medien Wiki
Line 170: Line 170:
   
   
[https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=59520 source]
[https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=59520 source]
==SD Card corruption issues==
It's a common problem when working with the Raspberry that the SD Card is getting corrupted and a boot fails. This is caused by not properly shutting down but cutting the power instead. When the raspberry is writing files to the scdard while the power is cut, the risk of SD Card corruption is high.
===How to minimize the risk of SD Card corruption==
* Make sure it is a proven, compatible and non-fake SD Card
* A faster card may be more stable (shorter time to write - less times when it is dangerous when a power loss happens
* Never plug the cable, leave Raspberry always on
* Always shut down properly
* Equip Raspberry with a battery pack
* Use a read only file system
* Consider AlpineLinux instead of Raspbian


==Backup and copy==
==Backup and copy==