Wink Saville’s Blog

November 11, 2007

Reduce disk activity

Filed under: linux — wink @ 6:30 pm

Many times my laptop is continuously accessing the hard disk. The cause appears to be two fold. First updatedb is run by the daily cron job. Since I don’t use locate very often and I turn of my computer everyday everytime I turn on the computer updatedb is run and it hammers the disk drive.

To disable updatedb I made /etc/cron.daily/slocate non executable

sudo chmod -x /etc/cron.daily/slocate

The second is an apparent bug in hard disk drives that have smart control, see here, here, and here. An easy solution for me was to just create/add to /sbin/setup.sh:

#!/bin/sh
smartctl -s on /dev/hda
hdparm -B 255 /dev/hda

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress