What is the best way to harden a linux system to power cycling? I often came upon systems used in shops, public, exhibitions, by several people where no one is responsible for. Usually those systems are shut down by loosing power if the main switch is turned off every evening or so.
With Linux, some annyoing problems arise:
- GRUB shows a boot menu after power fail on most distributions. I was able to circumvent that by
GRUB_RECORDFAIL_TIMEOUT=0at /etc/default/grub. However I still wonder how long this setting is kept if packages get updated etc.
- File system checks run after boot, sometimes failing or asking questions. While the checks can be disabled by
/etc/fstab, this sometimes forces a read only mount of root, which leads to several problems as most applications, including vanilla X setups, are not aware running on read only filesystems. So I kept the check, but this slows down every boot by some minutes, depending on disk size and usage. Also I am not sure if the check guarantees a read write mount. So I replace
errors=continuetoo, just by guess.
Is there any best practice to achieve maximum reliability? What are your thoughts?