From owner-freebsd-questions@FreeBSD.ORG Wed Jul 13 13:52:18 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 14FB816A41C for ; Wed, 13 Jul 2005 13:52:18 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 951B743D48 for ; Wed, 13 Jul 2005 13:52:16 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.37.55] ([82.41.37.55]) by smtp-out4.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Wed, 13 Jul 2005 14:52:59 +0100 Message-ID: <42D51C8F.4020107@dial.pipex.com> Date: Wed, 13 Jul 2005 14:52:15 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.8) Gecko/20050530 X-Accept-Language: en, en-us, pl MIME-Version: 1.0 To: Richard Jones References: <20050713094940.GA17855@dogstar.jonze.com> In-Reply-To: <20050713094940.GA17855@dogstar.jonze.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Jul 2005 13:52:59.0507 (UTC) FILETIME=[2DF7CC30:01C587B2] Cc: freebsd-questions@freebsd.org Subject: Re: Disk repair 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, 13 Jul 2005 13:52:18 -0000 Richard Jones wrote: >I have a disk which seems to have developed some faults or bad sectors. >fsck yields the following: > > >>THE FOLLOWING DISK SECTORS COULD NOT BE READ: 50795409, >> >> > >etc. there's about 4 sectors/blocks that can't be read. Now I know I >should go and buy a new disk, but I just need this one to keep limping >along for a month or so more. > >So my question is, how can I get the OS/BIOS to recognize the disk >sectors as bad, and get over it? > > I believe that if it could get over it, it would already have done so. In fact, the disk may already have mapped out other bad sectors and run out of room to map any more. What does SMART say? (sysutils/smartmontools). You could try badsect(8), though I've never done it and it could be obsolete for all I know. Try to keep running for another month if you like, but back up your data if you can and expect to lose the disk any time. Show us the SMART info and maybe we could run a sweepstake ;-) >And yes, I know I shouldn't be running non-Sun disks in a Sun box, but, >well, it works most of the time :-) > > I've seen more than one sun disk die in a sun box. A bad disk is just a bad disk, not a moral judgment :-) --Alex