I have a problem with mint 12 that has reported for ubuntu a long time age
https://bugs.launchpad.net/ubuntu/+sour ... +bug/59695
I think this problem must have fixed but it doesn't in mint 12
after installing smartmontools run this command as root
# smartctl -a /dev/sda | grep Load_Cycle_Count
it showed me 53773 Cycle Count
in 10 minutes I run the same command. the output shock me. It has been increasing so fast.
After many searches I found that this command would help me and disable APM
# hdparm -B 255 /dev/sda
But When I restart the machine everything goes back.
So I wrote a script like this
Code: Select all
#!/bin/sh
hdparm -B 255 /dev/sda
Edit /etc/init.d/rc.local and add the following line to the end of it
Code: Select all
/etc/init.d/disable-APM.sh
I added hdparm -B 255 /dev/sda to the above file but ...
But it didn't affect the system and never run the script as root at start up
How can I run this script on system start up as root?
I already run chmod a+x /etc/init.d/disable-APM.sh and it is executable