A tool for remapping bad sectors in CURRENT?

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Mar 8 10:51:24 UTC 2010


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.


More information about the freebsd-current mailing list