Package: hdparm
Version: 9.39-1+b1
Severity: normal
Tags: patch

hdparm 9.39 introduced support for the Write-Read-Verify feature on
some Seagate hard disks, using the -R option. See for example
http://www.altechnative.net/2011/04/06/enabling-write-read-verify-feature-on-disks/

However, apparently many disks reset this flag on reboot, and
/etc/init.d/hdparm does not have a way to enable it through
/etc/hdparm.conf (which is necessary if you want or need to do it on a
per-disk basis).

Attached is a patch for the init script on Wheezy which adds such
support, using the configuration keyword 'write_read_verify'.
--- /etc/init.d/hdparm.orig	2012-06-24 14:32:58.000000000 +0200
+++ /etc/init.d/hdparm	2013-09-10 22:32:36.000000000 +0200
@@ -234,6 +234,9 @@
             read_only) 
               eval_value $VALUE -r
               ;;
+            write_read_verify) 
+              set_option -R$VALUE
+              ;;
             spindown_time) 
               case "$VALUE" in
                 *[hms])

Reply via email to