Difference between revisions of "Debian hdd spindown"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Configure syslogd)
(Install and configure HDParm)
Line 5: Line 5:
 
  apt-get install hdparm
 
  apt-get install hdparm
 
* Configuration
 
* Configuration
  To be completed
+
  nano /etc/hdparm.conf
 +
and uncomment the lines about /dev/hda at the end of the file, then add
 +
spindown_time = 240
 +
between the brackets. 240 means 240*5 seconds = 20 minutes idle before spinning down ;)
  
 
== Configure syslogd ==
 
== Configure syslogd ==

Revision as of 17:30, 26 June 2006

If you're not using your Kurobox 24 hours a day, it could be good to allow the HDD to spin down (Will reduce noise and power usage). For this you'll need to install hdparm to tune the sleep delay, and to configure syslog to prevent it from logging a "MARK" every 20 minutes !

Install and configure HDParm

  • Installation
apt-get install hdparm
  • Configuration
nano /etc/hdparm.conf

and uncomment the lines about /dev/hda at the end of the file, then add

spindown_time = 240

between the brackets. 240 means 240*5 seconds = 20 minutes idle before spinning down ;)

Configure syslogd

If you do not do that, your HDD will be turned on every 20 minutes because syslog will log a "MARK" in /var/log/messages every 20 minutes. So we need to remove that marking : edit /etc/init.d/sysklogd and set SYSLOGD to

SYSLOGD="-m 0"