Skip to content

Instantly share code, notes, and snippets.

@joshenders
Created December 21, 2014 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshenders/f5ab16fd96c5ff7ed85d to your computer and use it in GitHub Desktop.
Save joshenders/f5ab16fd96c5ff7ed85d to your computer and use it in GitHub Desktop.
/etc/default/hdparm
# To set the same options for a block of harddisks, do so with something
# like the following example options:
# harddisks="/dev/hda /dev/hdb"
# hdparm_opts="-d1 -X66"
# This is run before the configuration in hdparm.conf. Do not use
# this arrangement if you need modules loaded for your hard disks,
# or need udev to create the nodes, or have some other local quirk
# These are better addressed with the options in /etc/hdparm.conf
#
# 2014-12-14 -- generate this list with:
# \ls -1 /dev/disk/by-id/scsi-SATA_ST3000DM001-* | grep -v part
harddisks="$(ls -1 /dev/disk/by-id/scsi-SATA_ST3000DM001-* | grep -v part)"
# 2014-07-18 - Disable power saving features that cause obnoxious chirping noise
hdparm_opts="-B 255"
# By default, hdparm will refuse to set harddisk options on any drive
# if the system has software RAID running, and one or more disk arrays
# are in the process of resynchronisation.
# With this variable set to 'yes', /etc/init.d/hdparm will suspend the
# RAID resynchronisation process before setting harddisk options, and
# will resume it after setting is done.
RAID_WORKAROUND=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment