amishmm / wdsaver Goto Github PK
View Code? Open in Web Editor NEWPrevent hard drive from too frequent head parking
License: GNU General Public License v3.0
Prevent hard drive from too frequent head parking
License: GNU General Public License v3.0
Hello!
I apologise in advance for my poor English and for long (maybe too long)
message.
I've installed wdsaver 1.0 on ubuntu 10.04 on a netbook. It has a toshiba hard
disk, not a western digital ones, but I want to reduce his heads parking.
I've noticed an error (I think it's an error) on the readme file.
In lines 15 and 18 there is written wdparm, but the commands lines works for me
with wdsaver instead of wdparm.
However, I've noticed a thing that I don't understand: wdsaver works fine with
"wdparm -t 40 -v" or "wdparm -t 40 -v -l", but not with "wdparm -t 40 -v -b".
I've tested the head parking with a long command line:
sudo smartctl -a /dev/sda | grep Load_Cycle_Count && sleep 300 && sudo smartctl
-a /dev/sda | grep Load_Cycle_Count && sleep 300 && sudo smartctl -a /dev/sda |
grep Load_Cycle_Count && sleep 300 && sudo smartctl -a /dev/sda | grep
Load_Cycle_Count
it checkes the head parking every 5 minutes, for 4 times. I've checked the
value Load_Cycle_Count with this command line in many and different situation:
1) notebook working (web, editing files, listen music) without wdsaver -
doesn't change
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197721
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197721
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197721
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197721
2) notebook not working (leave alone :P ) without wdsaver - changes
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197728
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197729
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197730
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197731
3) notebook not working with wdsaver test - doesn't change
If I test wdsaver from shell with:
sudo ./wdparm -t 40 -v
and
sudo ./wdsaver -t 40 -v -l
it works fine, Load_Cycle_Count doesn't change:
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197745
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197745
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197745
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197745
4) notebook not working with wdsaver installed - changes
Ok, I follow again the readme file to install wdsaver:
sudo cp -i ./wdsaver /usr/bin
sudo chmod 700 /usr/bin/wdsaver
sudo leafpad /etc/rc.local
I've added in the rc.local file this line (before exit0):
/usr/bin/wdsaver -t 40 -l -b
and rebooted the notebook.
wdsaver is listed with the other processes.
it's seems to be all right, doesn't?
Instead, the heads of hard disk go parking:
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197765
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197766
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197767
193 Load_Cycle_Count 0x0032 081 081 000 Old_age Always
- 197768
Well, I could have the same results with wdsaver test and installed, but it's
not so.
With wdsaver test it's all ok. I install wdsaver and it's seems to be no
wdsaver running.
What do I mistake?
Thanks.
Original issue reported on code.google.com by [email protected]
on 5 May 2011 at 9:49
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.