From owner-freebsd-current@FreeBSD.ORG Thu Mar 11 13:47:26 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6C1A1065673 for ; Thu, 11 Mar 2010 13:47:26 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (acme.spoerlein.net [IPv6:2001:470:9a47::1]) by mx1.freebsd.org (Postfix) with ESMTP id 93F648FC19 for ; Thu, 11 Mar 2010 13:47:26 +0000 (UTC) Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1]) by acme.spoerlein.net (Postfix) with ESMTPS id E307F5CA8 for ; Thu, 11 Mar 2010 14:47:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spoerlein.net; s=dkim200908; t=1268315246; bh=7WLqooqLLJSctiE5z8Hg4eE0AfIU1e4qCqWjxu+0n98=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=JwHKiFuvXxMKwHVdxIVsSNyabUjaVZJqsYz1TyoEZwq+ZXHqD4tzpdXFr7rjDWEB2 EFIcgNYTbGjgyIyPbF1wcqkAfTIJ7alx26FCtwgZlmKDyxiJwA0u8swOdMlazJ1vNp pmLOYQ5uNO4NsmuODlK1iLHWGQZ2BcRNXjhNsG0w= Received: (from uqs@localhost) by acme.spoerlein.net (8.14.4/8.14.4/Submit) id o2BDlPfH050862 for freebsd-current@freebsd.org; Thu, 11 Mar 2010 14:47:25 +0100 (CET) (envelope-from uqs@spoerlein.net) Date: Thu, 11 Mar 2010 14:47:25 +0100 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: freebsd-current@freebsd.org Message-ID: <20100311134725.GU12229@acme.spoerlein.net> Mail-Followup-To: freebsd-current@freebsd.org References: <4B94D1FC.1050407@FreeBSD.org> <20100308105243.GA31468@office.redwerk.com> <20100308110919.GA31573@office.redwerk.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100308110919.GA31573@office.redwerk.com> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: A tool for remapping bad sectors in CURRENT? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2010 13:47:26 -0000 On Mon, 08.03.2010 at 13:09:19 +0200, Eugene Dzhurinsky wrote: > On Mon, Mar 08, 2010 at 12:52:43PM +0200, Eugene Dzhurinsky wrote: > > dd if=/dev/ad4 of=/dev/null skip=222342559 bs=512 count=1 > > dd: /dev/ad4: Input/output error > > 0+0 records in > > 0+0 records out > > 0 bytes transferred in 2.351940 secs (0 bytes/sec) > > > > dd if=/dev/zero of=/dev/ad4 seek=222342559 bs=512 count=1 > > dd: /dev/ad4: Operation not permitted > > > > Should I do it in single mode? > > sysctl kern.geom.debugflags=0x10 > > Did the trick, I was able to write directly to the sector, and now it seems to > work well. No remaps recorded thus, but no errors so far. It's too late now, but you really should have gone with something like # recoverdisk /dev/ad4 /dev/ad4 this will re-write all blocks on the disk, it may fail at reading block 222342559, but there's a chance that the disk error correction gets it right after a couple of times. Regards, Uli