From owner-freebsd-current@FreeBSD.ORG Sun Aug 20 07:21:07 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 210F616A4DD for ; Sun, 20 Aug 2006 07:21:07 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94F5543D46 for ; Sun, 20 Aug 2006 07:21:05 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 86B065DAE; Sun, 20 Aug 2006 11:21:04 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 66DAC5DA8; Sun, 20 Aug 2006 11:21:04 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.6/8.13.6) id k7K7L34S013834; Sun, 20 Aug 2006 11:21:03 +0400 (MSD) (envelope-from ru) Date: Sun, 20 Aug 2006 11:21:03 +0400 From: Ruslan Ermilov To: Nik Clayton Message-ID: <20060820072103.GC13513@rambler-co.ru> References: <44E77EF7.6070004@ngo.org.uk> <200608201227.34510.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jy6Sn24JjFx/iggw" Content-Disposition: inline In-Reply-To: <200608201227.34510.doconnor@gsoft.com.au> User-Agent: Mutt/1.5.12-2006-07-14 X-Virus-Scanned: No virus found Cc: freebsd-current@freebsd.org Subject: Re: Avoiding bad sectors? 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: Sun, 20 Aug 2006 07:21:07 -0000 --jy6Sn24JjFx/iggw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 20, 2006 at 12:27:26PM +0930, Daniel O'Connor wrote: > On Sunday 20 August 2006 06:43, Nik Clayton wrote: > > I realise that I need to replace the disk. However, while I'm waiting > > until I can schedule the downtime, is there a short term solution I can > > use to stop FreeBSD (I'm running current from a couple of months ago) > > from trying to use this block? >=20 > Reboot into single user mode so swap is not being used and then try > dd if=3D/dev/zero of=3D/dev/XXX bs=3D64k >=20 > (where XXX is your swapdev) >=20 > The disk should remap the sector, if it refuses to write to the sector be= cause=20 > it's out of remappable sectors then you could try splitting your swap int= o 2=20 > partitions around the dead sector and then using them both (should be no= =20 > appreciable speed decrease) >=20 I can confirm using this technique. You can also confirm with smartctl(8) that it was indeed relocated (I assume your disk is modern enough to support SMART). Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --jy6Sn24JjFx/iggw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE6A1fqRfpzJluFF4RAndSAJ4ncjeTAsVRSIZwEjOj/yWdWRKD1gCff7eT l2dixkPtr23yY7LyyLs1Zc8= =9d4M -----END PGP SIGNATURE----- --jy6Sn24JjFx/iggw--