From owner-freebsd-questions Fri Jan 31 16:23: 5 2003 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 3A7F137B401 for ; Fri, 31 Jan 2003 16:23:04 -0800 (PST) Received: from voo.doo.net (voo.doo.net [81.17.45.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C41043F43 for ; Fri, 31 Jan 2003 16:23:02 -0800 (PST) (envelope-from marc@schneiders.org) Received: from localhost (localhost [127.0.0.1]) by voo.doo.net (8.12.6/8.12.6) with ESMTP id h110Mr6Z051525 for ; Sat, 1 Feb 2003 01:22:55 +0100 (CET) (envelope-from marc@schneiders.org) Date: Sat, 1 Feb 2003 01:22:53 +0100 (CET) From: Marc Schneiders X-X-Sender: To: Subject: How to map bad sectors on IDE? Message-ID: <20030201005939.G51460-100000@voo.doo.net> X-Preferred-email-to: marc@schneiders.org X-Other-email-to: marc@venster.nl X-Organization: Venster (Zeist - NL) X-URL: http://www.bijt.net/ X-SOA: A.ROOT-SERVERS.ORSC. X-OS: FreeBSD: The Power to Serve MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Recently a cvsup failed because of an input/output error in the directory /usr/src/contrib/perl5/h2pl. I tried deleting the content of the directory, and found out there were hardware problems with the disk. For it says: ls: eg: Input/output error And in the console messages: Feb 1 00:50:10 zeist /kernel: ad0s1h: hard error reading fsbn 99107103 of 27000944-27000959 (ad0s1 bn 99107103; cn 6169 tn 33 sn 39) status=59 error=40 Similar messages appear for this physical address and another one when the filesystem is checked daily at 03:00 h. This is happening for some time now (since January 18), but did not give any problems. Jan 30 03:05:54 zeist /kernel: ad0s1h: hard error reading fsbn 99107103 of 27000944-27000959 (ad0s1 bn 9 9107103; cn 6169 tn 33 sn 39) status=59 error=40 Jan 30 03:06:01 zeist /kernel: ad0s1h: hard error reading fsbn 83247423 of 19071104-19071119 (ad0s1 bn 8 3247423; cn 5181 tn 232 sn 42) status=59 error=40 I have searched Google to find a solution to mark off these two blocks/inodes (or however I should call them), so that they will not be used anymore. All I found is that this is not possible on IDE. Advise: Throw away the disk. Now this I find a bit radical :-) Esp. since the disk is about 3 years old. Any advise other than throw away the disk (or claim a new one)? Is there really no way to tell FreeBSD to discard these sectors? One more detail: Last time the machine booted it thought this of the drive: Jan 8 12:28:58 zeist /kernel: ad0: 39083MB [79408/16/63] at ata0-master UDMA100 Thanks! -- [14] I am not a lawyer. http://logoff.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message