From owner-freebsd-questions@FreeBSD.ORG Wed Feb 9 20:12:55 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE61D106566B for ; Wed, 9 Feb 2011 20:12:55 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout028.mac.com (asmtpout028.mac.com [17.148.16.103]) by mx1.freebsd.org (Postfix) with ESMTP id B61BB8FC26 for ; Wed, 9 Feb 2011 20:12:55 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp028.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LGD00GQS9GQDG20@asmtp028.mac.com> for freebsd-questions@freebsd.org; Wed, 09 Feb 2011 12:12:27 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-02-09_07:2011-02-09, 2011-02-09, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1102090131 From: Chuck Swiger In-reply-to: Date: Wed, 09 Feb 2011 12:12:26 -0800 Message-id: References: To: Daniel Zhelev X-Mailer: Apple Mail (2.1082) Cc: freebsd-questions@freebsd.org Subject: Re: Bad hard driver X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2011 20:12:56 -0000 On Feb 9, 2011, at 11:15 AM, Daniel Zhelev wrote: > The following warning/error was logged by the smartd daemon: > > Device: /dev/ad7, 3 Offline uncorrectable sectors It means that the drive has detected errors in three sectors, and is attempting to recover them without data loss to spare sectors, so far without success. It could also indicate that the drive has exhausted the spare sectors, in which case all future errors will cause additional data loss. >From the "SMART Self-test log", it seems like you are running short self-tests every 24 hours, and periodically running extended tests on some interval as well. The smartctl FAQ recommends doing so at weekly intervals; doing it daily is putting significant testing load onto the drive. > I know about the how to - > http://smartmontools.sourceforge.net/badblockhowto.html > > But how can I get the LBA? > And is there some diagnostic tool for WD in ports? Doing a "dd if=/dev/ad7 of=/dev/null bs=64k" will read-scan the entire drive, and ought to produce a warning in the logs indicating the LBA of the bad sectors. As for diagnostic tools, WD makes utilities for DOS and Windows, not FreeBSD. See: http://support.wdc.com/product/download.asp?groupid=613&lang=en ...for something which you can run off of a boot floppy, USB pendrive, etc. Regards, -- -Chuck