Re: A tool for remapping bad sectors in CURRENT?

From: Eugene Dzhurinsky <bofh_at_redwerk.com>
Date: Mon, 8 Mar 2010 13:09:19 +0200
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.

Thanks a lot!

-- 
Eugene N Dzhurinsky

Received on Mon Mar 08 2010 - 10:09:21 UTC

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