Re: HOWTO: Decrease disk activity
Originally Posted by
PeterBBB
It also works after reboot if the settings are placed in /etc/hdparm.conf , but the settings do not survive a resume.
Does anyone know how to get hdparm settings to survive a suspend/resume?
PB.
Yes. Something like this should work:
Code:
#!/bin/bash
. /usr/lib/pm-utils/functions
case "$1" in
thaw|resume)
# Your hdparm settings here
;;
esac
exit
Name the file like 99hdparm and install it with:
Code:
sudo install 99hdparm /etc/pm/sleep.d
That will run via pm-utils every time you resume.
Edit:
This is for Hardy only
Don't try to make something "fast" until you are able to quantify "slow".
Bookmarks