How to detect hard disk failure ?
Andy Farkas
andyf at speednet.com.au
Thu May 15 16:34:11 PDT 2003
On 15 May 2003, Lowell Gilbert wrote:
> > Is there a way to detect hard disk failures using either a shell script
> > or C program ? So that I can take appropriate action in case of a hard
> > disk failure.
>
> You can keep watch the logs for errors accessing the disks...
You can do a "dd if=/dev/ad0 of=/dev/null bs=64k" to read the entire disk
surface - if there are bad blocks, read errors will show up on the
console.
--
:{ andyf at speednet.com.au
Andy Farkas
System Administrator
Speednet Communications
http://www.speednet.com.au/
More information about the freebsd-questions
mailing list