Ubuntu, Dell laptop and hard disk power management
There has been some talk those days on laptop hard disk lifespan. See, for example, what Pascal says about it.
So, after some investigation, I saw that on my laptop (Dell Latitude D420) the BIOS doesn't handle an APM value of 255. By default the startup scripts execute hdparm -B 255 /dev/sda (or other devices) and that actually sets the APM value to 128 (as given by hdparm -I /dev/sda | grep Advanced). (I'm using Ubuntu 7.10 -- the script I'm talking about is /etc/acpi/power.sh.)
On the other hand, using -B 254 seems to disable APM. So here's a way to do it, by default, on every boot:
- Add those lines to /etc/hdparm.conf:
/dev/sda {
apm = 254
} - Make /etc/init.d/hdparm run at startup:
ln -s /etc/init.d/hdparm /etc/rcS.d/S07hdparm
And now the load cycle count reported by SMART remains stable. Which means that hopefully my hard disk will live longer.
Addendum: if you don't use SMART, you should. Install the smartmontools package, enable SMART on your disks with smartctl -s on, and read the smartctl(8) manpage. Optionally, enable the smartd monitoring daemon (via /etc/default/smartmontools).
21 comments:
The startup scripts *do not* alter any settings on your hard drives. 'power.sh' does nothing because LAPTOP_MODE is disabled. What you get is the default your BIOS provides and unfortunately that isn't good enough for Linux.
That's right -- I wanted to summarize, and I ended up writing innacuracies... The fact is I began to enable the laptop mode, and when seeing that the -B 255 didn't seem to be taken into account, with further investigation I found out that the BIOS wasn't understanding this value (and that -B 254 was needed to disable APM).
So, I disabled the laptop mode. But, for people who want to use the laptop mode, it's needed also to change the 255 by a 254 in /etc/acpi/power.sh.
Great posting. Thanks of shairing this post is useful and important.
Regard
http://www.higrade.com
I am also working in Ubuntu this post is really help for me. As now a days our whole data is stored in computer only we must know about how to get back data with the help of data recovery.
Excellent Toprol online pharmacy. Great pricing and secure delivery. Will place future orders. Highly recommend.
Thank you for excellent services items received carefully packed and sealed We will continue to take advantage of your excellent services and prices keep up the good work.For More Information About Valsartan .
This has been my second time ordering through Metformin, and both times I have had no problems in receiving my order on time. I have never been happier about an online drug store. I have tried many, and Metformin is by far the most affordable, and the best online drug store I have ever found. I will be buying my Type 2 Diabetes from Metformin from now on.
I am very happy to have found lasix 40mg- a genuine seller who can be trusted. I purchased lasix 40mg a generic product which has had excellent results. I will
be back for more. Thanks.
Your concepts were simple to understand that I wondered why I in no way looked at it prior to. Glad to know that there's a blogger out there that certainly understands what he's discussing. Great job!!!
Thanks for the informative post, i haven't been using "smart" on my hard disks at all. Good to know. Thanks.
Maria Sherperr
Dublin University
The First Years Wave Stroller
I enjoyed reading your post quite useful and informative.
Accurate Forex Indicators
The start-up scripts don't alter any settings on your hard drives.
Maria Sherperr
Dublin University
The First Years Wave Stroller
This was my first time ordering from and everything went like clock work. I got my medication in less time than I thought I would. The prices for medications was also reasonable. I will be ordering my medications from for now on.
Its really quite useful and easy to understand.
FX Trading Strategies
Hey You have done great job, really it's an very interesting blog found here.... Buy Clomid I enjoyed your post. keep posting. Thanks very much for sharing it.
Posh limo services in memphis tn takes great pride in servicing our clients. Best limousine
company in Memphis.Posh limo services in Memphis tn has never had any complaint's since we
opened in 2000. We are very proud of this.
I was interested know about it.
sex bondage videos
Wow.. that was really neat way of putting Excellent!! My compliments. Always wondered as to how this would really be. Buy Clomid Online. have really put across the point so well that you have made number of things quite clear. Of course will have to go through it properly a couple of times to actually gauge, but as of now I totally agree with your sentiment.
This was an amazing Blog that I had never seen it before. Thanks a lot for the information because Buy Prozac 60mg Online had liked it very much!
I like your style of writing. You break it down nicely. Very informative post. Keep up the good work.
Apple® - MacBook® Pro with Retina Display - 15.4" Display - 8GB Memory - 512GB Flash Storage (MC976LL/A)
Apple® - MacBook® Pro - 15.4" Display - 8GB Memory - 750GB Hard Drive
Post a Comment