From owner-freebsd-questions Thu Apr 4 11: 2:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailb.telia.com (mailb.telia.com [194.22.194.6]) by hub.freebsd.org (Postfix) with ESMTP id 8296D37B423 for ; Thu, 4 Apr 2002 11:02:50 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailb.telia.com (8.11.6/8.11.6) with ESMTP id g34J2mb01421 for ; Thu, 4 Apr 2002 21:02:48 +0200 (CEST) Received: from falcon.midgard.homeip.net (h68n2fls20o913.telia.com [212.181.163.68]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id VAA07705 for ; Thu, 4 Apr 2002 21:02:47 +0200 (CEST) Received: (qmail 82890 invoked by uid 1001); 4 Apr 2002 19:02:42 -0000 Date: Thu, 4 Apr 2002 21:02:42 +0200 From: Erik Trulsson To: Conrado Vardanega Cc: freebsd-questions@freebsd.org Subject: Re: Bad blocks Message-ID: <20020404190241.GA82863@student.uu.se> Mail-Followup-To: Conrado Vardanega , freebsd-questions@freebsd.org References: <005c01c1dc04$db10b650$0503a8c0@conrado> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <005c01c1dc04$db10b650$0503a8c0@conrado> User-Agent: Mutt/1.3.28i 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 On Thu, Apr 04, 2002 at 03:16:32PM -0300, Conrado Vardanega wrote: > Hi there. > > My hard disk had one or some bad blocks today. The following line appears in > /var/log/messages when trying to read from the defective area. > > Apr 2 18:54:20 rock /kernel: ad2s1e: hard error reading fsbn 2917127 of > 1458496-1458735 (ad2s1 bn 2917127; cn 181 tn 148 sn 38) status=59 error=40 > > My questions are: > > -- how do I check for bad blocks on my disk? (Better if doesn't requires > to shutdown or format partitions/disks) You look for messages like the one you quote. (Such a message might of course be due to a bad cable or a bad controller instead, but if it is always the same block(s) indicated then it is probably the disk.) > > -- what's the actually best way to mark bad blocks unusable? I've read > something about bad144 but it seems to be obsolete in 4.0 line. Should I use > manufacturers utility to mark them? Should I create brand new partitions > after that or can I just keep data there? You don't. Modern disks automatically detect bad blocks themselves and transparently remap them. They have some extra blocks in reserve just for that. By the time bad blocks start to show up at the OS level this usually means that the disk is in fairly bad shape and should probably be backed up and replaced ASAP. -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message