From owner-freebsd-questions@FreeBSD.ORG Sun Mar 13 23:56:30 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 6A16516A4CE for ; Sun, 13 Mar 2005 23:56:30 +0000 (GMT) Received: from brian.vpk.bme.hu (brian.vpk.bme.hu [152.66.236.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADE5843D5D for ; Sun, 13 Mar 2005 23:56:29 +0000 (GMT) (envelope-from ricsip@mailbox.hu) Received: from brian.vpk.bme.hu ([152.66.236.2] ident=root) by brian.vpk.bme.hu with smtp (Exim 3.35 #1 (Debian)) id 1DAcj3-0000cu-00 for ; Mon, 14 Mar 2005 00:42:25 +0100 Message-Id: <6.1.2.0.2.20050314004626.0270e450@mailbox.hu> X-Sender: ricsip@mailbox.hu (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Mon, 14 Mar 2005 00:56:30 +0100 To: freebsd-questions@freebsd.org From: =?iso-8859-1?Q?P=E1sztor?= =?iso-8859-1?Q?_Rich=E1rd?= Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Filesystem creation with integrated bad-block detection 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: Sun, 13 Mar 2005 23:56:30 -0000 I wonder if it would be possible to implement under freeebsd an interesting feature which can be found in linux: 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. ... 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. ricsip