Skip to content

Instantly share code, notes, and snippets.

@p-blomberg
Created July 2, 2014 18:21
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 p-blomberg/6386e9667ac45168740f to your computer and use it in GitHub Desktop.
Save p-blomberg/6386e9667ac45168740f to your computer and use it in GitHub Desktop.
Western Digital, go f*ck yourselves
# hdparm.conf is missing a whole f*cking lot of options that
# hdparm has, so command_line is REALLY important.
#
# And of course, ubuntu has decided that command_line is bad, so I guess
# everything will be crap very soon.
#
# -- Sanfred 2014-07-01
# What I would like to do, but it isn't working ("Unknown option queue_depth"):
#/dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WMC1T2208312 {
# queue_depth = 1
#}
#/dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WMC1T3203213 {
# queue_depth = 1
#}
#/dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WMC4N2060368 {
# queue_depth = 1
#}
# WD RED has a very broken implementation of NCQ that hangs the SATA bus
# all the time. -Q 1 kills NCQ.
command_line {
hdparm -Q 1 /dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WMC1T3203213
}
command_line {
hdparm -Q 1 /dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WMC1T2208312
}
command_line {
hdparm -Q 1 /dev/disk/by-id/scsi-SATA_WDC_WD30EFRX-68_WD-WMC4N2060368
}
# More info about this problem:
# http://www.axelog.de/2010/05/9-sata-phyrdychg-exception/
# https://bugzilla.redhat.com/show_bug.cgi?id=404851
# https://bugzilla.kernel.org/show_bug.cgi?id=8627
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment