NoPaste

/etc/hdparm.conf

von Anonymous

SNIPPET_TEXT:
  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
  33. quiet
  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. /dev/sda {
  42. apm = 255
  43. }
  44. # -c enable (E)IDE 32-bit I/O support - can be any of 0,1,3
  45. #io32_support = 1
  46. # -d disable/enable the "using_dma" flag for this drive
  47. #dma = off
  48. # -D enable/disable the on-drive defect management
  49. #defect_mana = off
  50. # -E cdrom speed
  51. #cd_speed = 16
  52. # -k disable/enable the "keep_settings_over_reset" flag for this drive
  53. #keep_settings_over_reset = off
  54. # -K disable/enable the drive's "keep_features_over_reset" flag
  55. #keep_features_over_reset = on
  56. # -m sector count for multiple sector I/O
  57. #mult_sect_io = 32
  58. # -P maximum sector count for the drive's internal prefetch mechanism
  59. #prefetch_sect = 12
  60. # -r read-only flag for device
  61. #read_only = off
  62. # -s Turn on/off power on in standby mode
  63. #poweron_standby = off
  64. # -S standby (spindown) timeout for the drive
  65. #spindown_time = 24
  66. # -u interrupt-unmask flag for the drive
  67. #interrupt_unmask = on
  68. # -W Disable/enable the IDE drive's write-caching feature
  69. #write_cache = off
  70. # -X IDE transfer mode for newer (E)IDE/ATA2 drives
  71. #transfer_mode = 34
  72. # -y force to immediately enter the standby mode
  73. #standby
  74. # -Y force to immediately enter the sleep mode
  75. #sleep
  76. # -Z Disable the power-saving function of certain Seagate drives
  77. #disable_seagate
  78. # -M Set the acoustic management properties of a drive
  79. #acoustic_management
  80. # -p Set the chipset PIO mode
  81. # chipset_pio_mode
  82. # --security-freeze Freeze the drive's security status
  83. # security_freeze
  84. # --security-unlock Unlock the drive's security
  85. # security_unlock = PWD
  86. # --security-set-pass Set security password
  87. # security_pass = password
  88. # --security-disable Disable drive locking
  89. # security_disable
  90. # --user-master Select password to use
  91. # user-master = u
  92. # --security-mode Set the security mode
  93. # security_mode = h
  94.  
  95. # Root file systems.  Please see README.Debian for details
  96. # ROOTFS = /dev/hda
  97.  
  98. ## New note - you can use straight hdparm commands in this config file
  99. ## as well - the set up is ugly, but it keeps backwards compatibility
  100. ## Additionally, it should be noted that any blocks that begin with
  101. ## the keyword 'command_line' are not run until after the root filesystem
  102. ## is mounted.  This is done to avoid running blocks twice.  If you need
  103. ## to run hdparm to set parameters for your root disk, please use the
  104. ## standard format.
  105.  
  106. #Samples follow:
  107. #First three are good for devfs systems, fourth one for systems that do
  108. #not use devfs.  The fifth example uses straight hdparm command line
  109. #syntax.  Any of the blocks that use command line syntax must begin with
  110. #the keyword 'command_line', and no attempt is made to validate syntax.  
  111. #It is provided for those more comfortable with hdparm syntax.
  112.  
  113. #/dev/discs/disc0/disc {
  114. #       mult_sect_io = 16
  115. #       write_cache = off
  116. #       spindown_time = 240
  117. #}
  118.  
  119. #/dev/discs/disc1/disc {
  120. #       mult_sect_io = 32
  121. #       spindown_time = 36
  122. #       write_cache = off
  123. #}
  124.  
  125. #/dev/cdroms/cdrom0 {
  126. #       dma = on                   
  127. #       interrupt_unmask = on
  128. #       io32_support = 0
  129. #}
  130.  
  131. #/dev/hda {
  132. #       mult_sect_io = 16
  133. #       write_cache = off
  134. #       dma = on
  135. #}
  136.  
  137. #command_line {
  138. #       hdparm -q -m16 -q -W0 -q -d1 /dev/hda
  139. #}

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN