Rory Jaffe's blog

Enabling Error Recovery Control in RAID Drives

Consumer hard drives typically make many attempts to read a bad sector, causing hangs in RAID arrays. A quick way to solve the issue without having to buy more expensive “RAID-compatible” drives is to enable error recovery control, setting a time limit on the retries. Some drives support this; others do not. What follows is a simple one-liner that, when added to the system crontab, sets error recovery control to 7 seconds in all the drives in the array that support ERC.

Adobe Lightroom Keyword Library for Birds

The International Ornithologist’s Union produces and regularly updates a taxonomy of world birds and recommended English names. This list is provided in several different formats, including XML. Since XML is easy to transform into different file formats, I have produced a keyword list for lightroom with all the birds of the world, by order and family. And, for those preferring a listing by family only, I generated that too.

Bash script for updating Drupal Core

Updating Drupal core always makes me a bit nervous, as it involves ripping out the old version and inserting a new. Not having access to Drush, I decided to make a shell script that would automate the steps, eliminating the usual risk of human error. The following is the script. It’s heavily commented, so I’ll keep extra remarks to a minimum.


Subscribe to RSS - Rory Jaffe's blog