Difference between revisions of "Debian hdd spindown"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Install and configure HDParm)
(Added link to Hard Drive)
Line 1: Line 1:
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 !
+
If you're not using your Kurobox 24 hours a day, it could be good to allow the [[Hard Drive|hard drive]] to spin down and reduce noise and power usage. For this you'll need to install hdparm to tune the sleep delay, and configure syslog to prevent it from writing to the disk, causing it to wake up every 20 minutes!
  
== Install and configure HDParm ==
+
== Install & Configure ''hdparm'' ==
 
* Installation
 
* Installation
 
  apt-get install hdparm
 
  apt-get install hdparm
Line 10: Line 10:
 
between the brackets. 240 means 240*5 seconds = 20 minutes idle before spinning down ;)
 
between the brackets. 240 means 240*5 seconds = 20 minutes idle before spinning down ;)
  
== Configure syslogd ==
+
== Modify ''syslogd'' Configuration ==
 
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 :
 
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
 
edit /etc/init.d/sysklogd and set SYSLOGD to
 
  SYSLOGD="-m 0"
 
  SYSLOGD="-m 0"

Revision as of 08:55, 9 July 2006

If you're not using your Kurobox 24 hours a day, it could be good to allow the hard drive to spin down and reduce noise and power usage. For this you'll need to install hdparm to tune the sleep delay, and configure syslog to prevent it from writing to the disk, causing it to wake up every 20 minutes!

Install & 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 ;)

Modify syslogd Configuration

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"