On Fri, Mar 20, 2009 at 02:33:22PM -0600, Xavier Callejas wrote:
Hi,
How can I be sure that my hard disk has badblocks? How can I test all
Dr. Werner Fink wrote: the
entire disk if it has badblocks?
I'm getting this in my '/var/log/messages':
... ar 20 14:27:18 xavier kernel: sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed Mar 20 14:27:18 xavier kernel: end_request: I/O error, dev sda, sector 171206258 Mar 20 14:27:18 xavier kernel: Buffer I/O error on device sda9, logical block 4843970
As Carlos suggested, I would examine it with smartctl - this is in the smartmontools package. Query the drive SMART attributes with #smartctl -a /dev/sdx and look in particular and the reallocated sector and pending sector count. Any non zero value is bad. To run a smart test on the drive use #smartctl -t [short/long] /dev/sdx and again view the log where you will see completed tests listed. Pete -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org