Re: A tool for remapping bad sectors in CURRENT?

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Mon, 08 Mar 2010 10:51:22 +0000
In message <20100308102918.GA5485_at_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_at_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.
Received on Mon Mar 08 2010 - 09:51:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:01 UTC