Daemon for stopping HD Load Cycling on macOS systems
Some Mac hard disks do not respond to hdapm - A Mac utility for setting the power management (APM) level on SATA hard drives, and in this case the only possibility to prevent excessive load cycling of the startup disk of a Mac and by this beating it to death, is to frequently write-flush a small amount of data to it. I put my C code for the small lccguard daemon on GitHub.
$ lccguard -h usage: lccguard [-p file] [-f] [-n] [-h] -p file the path to the pid file [default: /var/run/lccguard.pid] -f foreground mode, don't fork off as a daemon. -n no console, don't fork off as a daemon - started/managed by launchd. -t idle time in seconds, [default: 4 s]. -h shows these usage instructions.
Installation and First Start - this needs a working Xcode Installation
From now on, the
Keywords: Load-Cycle-Count, macOS, SATA-hard-drive
Copyright © Dr. Rolf Jansen - 2017-01-01 14:02:44
Discussion on Twitter: 1082810802678190080