1## This is the default configuration for hdparm for Debian. It is a 2## rather simple script, so please follow the following guidelines :) 3## Any line that begins with a comment is ignored - add as many as you 4## like. Note that an in-line comment is not supported. If a line 5## consists of whitespace only (tabs, spaces, carriage return), it will be 6## ignored, so you can space control fields as you like. ANYTHING ELSE 7## IS PARSED!! This means that lines with stray characters or lines that 8## use non # comment characters will be interpreted by the initscript. 9## This has probably minor, but potentially serious, side effects for your 10## hard drives, so please follow the guidelines. Patches to improve 11## flexibilty welcome. Please read /usr/share/doc/hdparm/README.Debian for 12## notes about known issues, especially if you have an MD array. 13## 14## Note that if the init script causes boot problems, you can pass 'nohdparm' 15## on the kernel command line, and the script will not be run. 16## 17## Uncommenting the options below will cause them to be added to the DEFAULT 18## string which is prepended to options listed in the blocks below. 19## 20## If an option is listed twice, the second instance replaces the first. 21## 22## /sbin/hdparm is not run unless a block of the form: 23## DEV { 24## option 25## option 26## ... 27## } 28## exists. This blocks will cause /sbin/hdparm OPTIONS DEV to be run. 29## Where OPTIONS is the concatenation of all options previously defined 30## outside of a block and all options defined with in the block. 31 32# -q be quiet 33quiet 34# -a sector count for filesystem read-ahead 35#read_ahead_sect = 12 36# -A disable/enable the IDE drive's read-lookahead feature 37#lookahead = on 38# -b bus state 39#bus = on 40# -B apm setting 41#apm = 255 42# -c enable (E)IDE 32-bit I/O support - can be any of 0,1,3 43#io32_support = 1 44# -d disable/enable the "using_dma" flag for this drive 45#dma = off 46# -D enable/disable the on-drive defect management 47#defect_mana = off 48# -E cdrom speed 49#cd_speed = 16 50# -k disable/enable the "keep_settings_over_reset" flag for this drive 51#keep_settings_over_reset = off 52# -K disable/enable the drive's "keep_features_over_reset" flag 53#keep_features_over_reset = on 54# -m sector count for multiple sector I/O 55#mult_sect_io = 32 56# -P maximum sector count for the drive's internal prefetch mechanism 57#prefetch_sect = 12 58# -r read-only flag for device 59#read_only = off 60# -s Turn on/off power on in standby mode 61# poweron_standby = off 62# -S standby (spindown) timeout for the drive 63#spindown_time = 24 64# -u interrupt-unmask flag for the drive 65#interrupt_unmask = on 66# -W Disable/enable the IDE drive's write-caching feature 67#write_cache = off 68# -X IDE transfer mode for newer (E)IDE/ATA2 drives 69#transfer_mode = 34 70# -y force to immediately enter the standby mode 71#standby 72# -Y force to immediately enter the sleep mode 73#sleep 74# -Z Disable the power-saving function of certain Seagate drives 75#disable_seagate 76# -M Set the acoustic management properties of a drive 77#acoustic_management 78# -p Set the chipset PIO mode 79# chipset_pio_mode 80# --security-freeze Freeze the drive's security status 81# security_freeze 82# --security-unlock Unlock the drive's security 83# security_unlock = PWD 84# --security-set-pass Set security password 85# security_pass = password 86# --security-disable Disable drive locking 87# security_disable 88# --user-master Select password to use 89# user-master = u 90# --security-mode Set the security mode 91# security_mode = h 92 93 94# Root file systems. Please see README.Debian for details 95# ROOTFS = /dev/hda 96 97## New note - you can use straight hdparm commands in this config file 98## as well - the set up is ugly, but it keeps backwards compatibility 99## Additionally, it should be noted that any blocks that begin with 100## the keyword 'command_line' are not run until after the root filesystem 101## is mounted. This is done to avoid running blocks twice. If you need 102## to run hdparm to set parameters for your root disk, please use the 103## standard format. 104 105#Samples follow: 106#First three are good for devfs systems, fourth one for systems that do 107#not use devfs. The fifth example uses straight hdparm command line 108#syntax. Any of the blocks that use command line syntax must begin with 109#the keyword 'command_line', and no attempt is made to validate syntax. 110#It is provided for those more comfortable with hdparm syntax. 111 112#/dev/discs/disc0/disc { 113# mult_sect_io = 16 114# write_cache = off 115# spindown_time = 240 116#} 117 118#/dev/discs/disc1/disc { 119# mult_sect_io = 32 120# spindown_time = 36 121# write_cache = off 122#} 123 124#/dev/cdroms/cdrom0 { 125# dma = on 126# interrupt_unmask = on 127# io32_support = 0 128#} 129 130#/dev/hda { 131# mult_sect_io = 16 132# write_cache = off 133# dma = on 134#} 135 136#command_line { 137# hdparm -q -m16 -q -W0 -q -d1 /dev/hda 138#} 139