this is obsolete doc -- see instead

Monitoring disk health 



On NetBSD 

cd ~/
mkdir -p bin/
cd bin/
chmod +x smart.ksh
crontab -e
0       *       *       *       *       /root/bin/smart.ksh


On any other systems 

Make sure smartmontools and e2fsprogs are installed. 

smartctl -a /dev/sda
badlocks -sv /dev/sda


smartctl -t short /dev/rwd4d
smartctl -l selftest /dev/rwd4d


Recovering bad sectors 

Low format the HDD with vendor provided format tool, and see if some bad sectors have been recovered, 

badblocks -wsv /dev/sda