From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 16:31:12 2003 Return-Path: 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 A783437B401 for ; Thu, 24 Jul 2003 16:31:12 -0700 (PDT) Received: from franky.speednet.com.au (franky.speednet.com.au [203.57.65.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98EC543F3F for ; Thu, 24 Jul 2003 16:31:11 -0700 (PDT) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [203.38.96.242])h6ONV9Ds060336; Fri, 25 Jul 2003 09:31:10 +1000 (EST) (envelope-from andyf@speednet.com.au) Received: from hewey.af.speednet.com.au (hewey.af.speednet.com.au [172.22.2.1])h6ONV8XY093155; Fri, 25 Jul 2003 09:31:09 +1000 (EST) (envelope-from andyf@speednet.com.au) Date: Fri, 25 Jul 2003 09:31:07 +1000 (EST) From: Andy Farkas X-X-Sender: andyf@hewey.af.speednet.com.au To: Alfonso Romero In-Reply-To: <002501c35218$51d7dd60$0100a8c0@ibacsoft.dynu.com> Message-ID: <20030725092138.W92896-100000@hewey.af.speednet.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-questions Subject: Re: marking bad blocks on a hard disk drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 23:31:13 -0000 Alfonso Romero wrote: > I=B4m installing FreeBSD 4.8 on a 8GB HDD, but it has some bad sectors. > How can I tell FreeBSD not to use these bad sectors? Like others have said, your disk is dying and is untrustworthy for holding critical data. But no one has answered your question yet, so I will :) I also have a 8gig drive with bad blocks on it. I only use it on a scratch box for testing -current. I don't trust it at all, and will toss it in the bin as soon as it plays up again. After running various formatters and scanners, I identifyied where the bad sectors were on the disk, around the 6gig mark on mine. The bad section was about 20-30MB long. Knowing this, I can now setup partitions around the bad bit. I created a 5.5 gig partition 1, a 1 gig partition 2 (the bad bits), and 1.5 gig partition 3. Hope that helps. -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/