From owner-freebsd-current@FreeBSD.ORG Mon Mar 8 11:09:21 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 EE4B11065687 for ; Mon, 8 Mar 2010 11:09:21 +0000 (UTC) (envelope-from bofh@redwerk.com) Received: from redwerk.com (redwerk.com [89.105.196.9]) by mx1.freebsd.org (Postfix) with ESMTP id ACED18FC08 for ; Mon, 8 Mar 2010 11:09:21 +0000 (UTC) Received: from [192.168.250.5] (helo=office.redwerk.com) by redwerk.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.71) (envelope-from ) id 1Noaps-0004Gu-CT for freebsd-current@freebsd.org; Mon, 08 Mar 2010 12:09:20 +0100 Received: from bofh by office.redwerk.com with local (Exim 4.71 (FreeBSD)) (envelope-from ) id 1Noapr-0008Ed-Nf for freebsd-current@freebsd.org; Mon, 08 Mar 2010 13:09:19 +0200 Date: Mon, 8 Mar 2010 13:09:19 +0200 From: Eugene Dzhurinsky To: freebsd-current@freebsd.org Message-ID: <20100308110919.GA31573@office.redwerk.com> Mail-Followup-To: freebsd-current@freebsd.org References: <4B94D1FC.1050407@FreeBSD.org> <20100308105243.GA31468@office.redwerk.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline In-Reply-To: <20100308105243.GA31468@office.redwerk.com> 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 11:09:22 -0000 --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 08, 2010 at 12:52:43PM +0200, Eugene Dzhurinsky wrote: > dd if=3D/dev/ad4 of=3D/dev/null skip=3D222342559 bs=3D512 count=3D1 > dd: /dev/ad4: Input/output error > 0+0 records in > 0+0 records out > 0 bytes transferred in 2.351940 secs (0 bytes/sec) >=20 > dd if=3D/dev/zero of=3D/dev/ad4 seek=3D222342559 bs=3D512 count=3D1 > dd: /dev/ad4: Operation not permitted >=20 > Should I do it in single mode? sysctl kern.geom.debugflags=3D0x10 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! --=20 Eugene N Dzhurinsky --M9NhX3UHpAaciwkO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkuU2t4ACgkQy/i/DoZLbHx5cQCePP0nFs1PcYXZ3x90VqcRyXD+ UkgAnjaifz6wNJGKMuGwnQYUR6qRyXJJ =WBic -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO--