Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2003 09:30:03 +1000 (EST)
From:      Andy Farkas <andyf@speednet.com.au>
To:        Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
Cc:        questions@freebsd.org
Subject:   Re: How to detect hard disk failure ?
Message-ID:  <20030516092757.A77647-100000@hewey.af.speednet.com.au>
In-Reply-To: <444r3v6hfl.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@speednet.com.au

        Andy Farkas
    System Administrator
   Speednet Communications
 http://www.speednet.com.au/





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030516092757.A77647-100000>