Tuesday, November 9, 2010

Pregnant Dawn From Pokemon

Software team to monitor and verify state drives


Check HDD status
# aptitude install smartmontools

For readability can be run as follows smartctl to check the status of a hard drive (sda in this case ):
# smartctl-a / dev / sda
Power_Cycle_Count indicates the number of times the hard drive has started
Power_On_Half_Minutes indicates the total time worked hard disk


Reallocated_Sector_Ct indicates bad sectors More information in your manual:

# man smartctl

Repair damaged sectors
If some sectors are damaged can be repaired with the command badblocks:
# badblocks-s-v-n-f / dev/sdb1
parameters:-s
means that shows the scanning disc, displaying the fields and checked.

-v verbose mode-n

puts us in a non-destructive, this means that if bad sectors to recover information on the hard disk will not be damaged or deleted.
-f repair the damaged sectors.

An alternative to HDD Regenerator badblocks is that although there is free software works well.
Monitor hard disk status


Another tool called smart-notifier that sends a message when the hard disk is likely to fail. Even when the hard disk temperature changes and heat more than usual sends a message on screen. Installation is simple as all packages in Debian: # aptitude install smart-notifier
Once installed, it will run when you log into the graphical environment. To verify that you have to run in Gnome go to System menu
,
Preferences, Sessions . In the Startup Programs tab

will find the list of programs including "Smart Notifier." If that is not added and placed in command "smart-notifier".

Now we can verify that the smartmontools daemon running on system startup (easily done with the command rcconf).


0 comments:

Post a Comment