User Tools

Site Tools


doc:appunti:hardware:raspberrypi_nas_smart_hard_disk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:hardware:raspberrypi_nas_smart_hard_disk [2021/04/16 17:17] – [hdparm] niccolodoc:appunti:hardware:raspberrypi_nas_smart_hard_disk [2025/10/08 06:59] (current) – [hdparm] niccolo
Line 93: Line 93:
 ===== hdparm ===== ===== hdparm =====
  
-To set the **Advanced Power Management** level use the **%%-B%%** option, the maximum performance level which **permits spin-down** of the drive is 127:+To set the **Advanced Power Management** level use the **%%-B%%** option. A low value means aggressive power managementan high value means better performance. The maximum performance level which **permits spin-down** of the drive is 127:
  
 <code> <code>
Line 113: Line 113:
 </code> </code>
  
-Debian provides the file **/etc/hdparm.conf** which is handled by the **udev** on system start to set the required parameters. You can set something like this:+Debian provides the file **/etc/hdparm.conf** which is handled by the **udev** on **system start** to set the required parameters. You can set something like this:
  
 <file> <file>
Line 119: Line 119:
 # It is advisable to disable write cache in this case. # It is advisable to disable write cache in this case.
 # See man hdparm(8), -S and -W options. # See man hdparm(8), -S and -W options.
 +# The granularity of the spindown_time up to 20 minutes is 5
 +# seconds, above that threshold it is 30 minutes.
 /dev/sda { /dev/sda {
         write_cache = off         write_cache = off
Line 158: Line 160:
  
   * **updatedb** - Execute by the **/etc/cron.daily/mlocate** cronjob, will update the database of files stored on hard disk. Add the directory to be skipped into **/etc/updatedb.conf**.   * **updatedb** - Execute by the **/etc/cron.daily/mlocate** cronjob, will update the database of files stored on hard disk. Add the directory to be skipped into **/etc/updatedb.conf**.
-  * **smartctl** - Reading SMART attributes (e.g. disk temperature, errors log) awake the disk. Hou may have periodic checks executed by **snmpd**, etc.+  * **smartctl** - Reading SMART attributes (e.g. disk temperature, errors log) awake the disk. You may have periodic checks executed by **snmpd**, etc.
  
 ===== Web References ===== ===== Web References =====
doc/appunti/hardware/raspberrypi_nas_smart_hard_disk.1618586266.txt.gz · Last modified: by niccolo