From owner-freebsd-questions@FreeBSD.ORG Tue Mar 15 13:52:52 2005 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 859A116A4CE for ; Tue, 15 Mar 2005 13:52:52 +0000 (GMT) Received: from mail26.sea5.speakeasy.net (mail26.sea5.speakeasy.net [69.17.117.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A24443D1D for ; Tue, 15 Mar 2005 13:52:52 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 24441 invoked from network); 15 Mar 2005 13:52:51 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail26.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 15 Mar 2005 13:52:51 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 9992A84; Tue, 15 Mar 2005 08:52:50 -0500 (EST) Sender: lowell@be-well.ilk.org To: =?iso-8859-1?q?P=E1sztor_Rich=E1rd?= References: <6.1.2.0.2.20050314004626.0270e450@mailbox.hu> From: Lowell Gilbert Date: 15 Mar 2005 08:52:50 -0500 In-Reply-To: <6.1.2.0.2.20050314004626.0270e450@mailbox.hu> Message-ID: <44hdjd818t.fsf@be-well.ilk.org> Lines: 36 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-questions@freebsd.org Subject: Re: Filesystem creation with integrated bad-block detection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 13:52:52 -0000 P=E1sztor Rich=E1rd writes: > I wonder if it would be possible to implement under freeebsd an > interesting feature > which can be found in linux: >=20 > mkfs.ext2(8) > ....... > -c > Check the device for bad blocks before creating the file system. If > this option is specified twice, then a slower, destructive, read-write > test is used instead of a fast read-only test. > ... FreeBSD has some tools in this area (see, for example, badsect(8)), but they have largely atrophied. > I searched the archive for this subject, and i found that simple > answer that modern hard drives have > the so called spare sectors, and if they cant do these reallocations > transparently because they > ran out of those reserved sectors -> throw the drive into the trash. > But what abou using freebsd on older machines with hard drives that > dont support spare sectors? > Having a few bad sectors doesnt mean that a 4-5 Gb driver is useless > because one isnt able to mark those > few sectors. If the disk is multiple gigabytes, then it's unlikely to be old enough to lack spare sector support. IDE has been standard for a *long* time now, and from my experience, pretty much *every* IDE drive *ever* has come with block remapping turned on by default. See the FAQ entry on the subject: What do I do when I have bad blocks on my hard drive? http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#AWRE