Re: Fedora May Be Killing Your Laptop's Hard Drive?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Mark C. Allman wrote:
I set up a loop to print the last value of the "193 Load_Cycle_Count"
line from command "smartctl -d ata -a /dev/sda" once a minute this
morning.  I let it run all day, and after eight hours it never changed
from 328146.  I shutdown (hibernated) the system and resumed a bit later
in my home office.  The loop (which just resumed right along with
everything else) now prints a constant value of 328150 once a minute.

FWIW, the loop looks like:

  for whoCares in /usr/bin/*; do   # easy way to loop for a few days
    sudo smartctl -d ata -a /dev/sda | egrep '^[ \t]*193' | awk '{print
$NF;}'; sleep 60; done
The pedants are in:-)

# Thos loops for ever
while :
 do sudo smartctl -d ata -a /dev/sda | egrep '^[ \t]*193' \
	| awk '{print $NF;}';
 sleep 1m

The grep and awk can be combined more elegantly too, but I'll leave that for the next pedant:-)
And sudo could be relocated to advantage....



-- spambait
[email protected]  [email protected]
-- Advice

Please do not reply off-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux