From owner-freebsd-questions@FreeBSD.ORG Thu May 15 16:34:10 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9BFC37B401 for ; Thu, 15 May 2003 16:34:10 -0700 (PDT) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id E226443F3F for ; Thu, 15 May 2003 16:34:08 -0700 (PDT) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242])h4FNU6Yr075303; Fri, 16 May 2003 09:33:52 +1000 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [172.22.2.1])h4FNU4Ym077824; Fri, 16 May 2003 09:30:05 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Fri, 16 May 2003 09:30:03 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: Lowell Gilbert In-Reply-To: <444r3v6hfl.fsf@be-well.ilk.org> Message-ID: <20030516092757.A77647-100000@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: questions@freebsd.org Subject: Re: How to detect hard disk failure ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 23:34:11 -0000 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/