Ubuntu Smartmontools Check Bad Sector

Environment
  • Ubuntu 8.04 Desktop x64
  • WD 640G Hard Disk
Procedures
First, install Smartmontools
#apt-get install smartmontools
Run a test of Smartmontools. It will show the estimation of needed time
#smartctl -t long /dev/sda
After the test is completed
#smartactl -l selftext /dev/sda
Also can run
#smartactl -A /dev/sda