From owner-freebsd-current@FreeBSD.ORG Mon Mar 8 10:51:24 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 3ED10106566B for ; Mon, 8 Mar 2010 10:51:24 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 032B88FC12 for ; Mon, 8 Mar 2010 10:51:23 +0000 (UTC) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 8CE716415; Mon, 8 Mar 2010 10:51:22 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.3/8.14.3) with ESMTP id o28ApMbQ049423; Mon, 8 Mar 2010 10:51:22 GMT (envelope-from phk@critter.freebsd.dk) To: Eugeny N Dzhurinsky From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 08 Mar 2010 12:29:18 +0200." <20100308102918.GA5485@localhost> Date: Mon, 08 Mar 2010 10:51:22 +0000 Message-ID: <49422.1268045482@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-current@freebsd.org 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: Mon, 08 Mar 2010 10:51:24 -0000 In message <20100308102918.GA5485@localhost>, Eugeny N Dzhurinsky writes: >Now can I find out which file owns the LBAs 222342557 and 222342559 ? >How do I force remapping of these sectors? I assume that I have to write >something directly to the sectors? I would suggest you boot single-user and run mdmfs -s 1m md /tmp recoverdisk -w /tmp/_.wl /dev/ad4 /dev/ad4 That will find out how many bad sectors you have and try to recover the contents of them if possible, leave it running as long as you care for. If you interrupt it, the /tmp/_.wl file will contain a list of areas not yet successfully read/written. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.