on Linux/Unix, we have fsck which runs by default in the event of an incorrect shutdown. It can also be run manually.And in general, is there a way to make sure the OS and the file system is working as expected and nothing is corrupted, in the event that it does boot up after an unexpected shutdown? Windows has DISM, chkdsk and sfc that I run regularly, that can give me at least some assurance.
If you are not familiar, then as far as I'm aware, DISM and sfc check the local Windows system files against normal copies of system files to verify integrity, and chkdsk can check for logical (FS) errors and bad sectors.
https://www.man7.org/linux/man-pages/man8/fsck.8.html
Rf you want to keep more frequent updates you could always use rsync run from crontab to another SD card that you have attached, either directly or to another Pi on the network. Only you know whether the cost and time is justified in your case.
https://www.man7.org/linux/man-pages/man1/rsync.1.html
If you aren't familiar with crontab; thagrol of this manor has written an excellent guide...
https://github.com/thagrol/Guides/blob/main/cron.pdf
Statistics: Posted by kip_the_elder — Mon Oct 21, 2024 11:57 am