Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Because I had some problems with my server I want to check it's hard drives for defects (the drives not the file system) which tool can I use for this in ubuntu?

I know for my hard drives there is a CD from Western Digital (Data Lifeguard) but I can't get it to run via usb CD drive. So are there any native alternatives?

System Information:

  • Acer easyStore h341
  • Intel Atom D410 1.66GHz
  • 2x 1TB Western Digital Caviar Green (WD10EADS-00P6B0)
  • 2x 1TB Western Digital Caviar Green (WD10EADS-22M2B0)
  • RAM 2GB
share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

If disks support SMART, you can try smartctl (from package smartmontools).

sudo smartctl -d <ata,scsi, etc... > -H /dev/sd*

In addition to (not instead of) smartctl, or in the unlikely event that the disks do not support SMART, you can test the drive for physical/magnetic damage using the badblocks utility.

share|improve this answer
    
Does this really check the disk or just read the SMART status? Because the SMART status can be fine even though the drive isn't working properly. –  K. Hendrik Nov 16 '11 at 20:44
    
only smart tests will be done –  Bruno Pereira Nov 16 '11 at 20:49
1  
badblocks looks like the tool i was looking for thank you! –  K. Hendrik Nov 16 '11 at 21:00
    
the command above only reads the SMART status, but the tool can perform tests to hd too. Check its man page, specially the -t switch. –  Salem Nov 16 '11 at 21:03
    
Or you can use the gui disk utility to run the smart tests. –  psusi Nov 16 '11 at 21:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.