From owner-freebsd-questions Sun May 19 3:57:33 2002 Delivered-To: freebsd-questions@freebsd.org Received: from axel.truedestiny.net (a185066.upc-a.chello.nl [62.163.185.66]) by hub.freebsd.org (Postfix) with ESMTP id CFE3637B406 for ; Sun, 19 May 2002 03:57:26 -0700 (PDT) Received: by axel.truedestiny.net (Postfix, from userid 1000) id BCACD49AB2; Sun, 19 May 2002 12:57:27 +0200 (CEST) Date: Sun, 19 May 2002 12:57:27 +0200 From: Axel Scheepers To: "Philip J. Koenig" Cc: questions@FreeBSD.ORG Subject: Re: Disk bad sector question Message-ID: <20020519125727.B64761@mars.thuis> Reply-To: Axel Scheepers References: <20020519030538086.AAA385@empty1.ekahuna.com@pc02.ekahuna.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020519030538086.AAA385@empty1.ekahuna.com@pc02.ekahuna.com>; from pjklist@ekahuna.com on Sat, May 18, 2002 at 08:05:38PM -0700 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 Sat, May 18, 2002 at 08:05:38PM -0700, Philip J. Koenig wrote: > Recently I started getting some read errors on some sectors on a SCSI > disk running 4.6-PRE. > > Indeed the host adapter BIOS utility shows some bad sectors, but > before I remap them I'd like to know what file(s) are using these > sectors. Is there an easy way to do this? I tried using dd to copy > the sectors and look at them but the data wasn't recognizable to me. > (it's in the /var filesystem) > > Thx, > > Phil Hi Philip, Normally the data will be mapped to another partion of the disk and the defective sectors will be added to the defective grow list. You might take a look at 'man camcontrol' to get some more control about your scsi devices, and to check those bad sector tables. Be very carefull using that, though, inproper usage can destroy your data. Gr, -- Axel Scheepers UNIX System Administrator email: axel@axel.truedestiny.net a.scheepers@iae.nl http://axel.truedestiny.net/~axel ------------------------------------------ The rhino is a homely beast, For human eyes he's not a feast. Farewell, farewell, you old rhinoceros, I'll stare at something less prepoceros. -- Ogden Nash ------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message