From owner-freebsd-current@FreeBSD.ORG Sun Aug 20 02:57:45 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 DE93016A4DD; Sun, 20 Aug 2006 02:57:45 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 492BA43D53; Sun, 20 Aug 2006 02:57:44 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp219-48.lns1.adl2.internode.on.net [203.122.219.48]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id k7K2vbKp068876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 20 Aug 2006 12:27:38 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-current@freebsd.org Date: Sun, 20 Aug 2006 12:27:26 +0930 User-Agent: KMail/1.9.3 References: <44E77EF7.6070004@ngo.org.uk> In-Reply-To: <44E77EF7.6070004@ngo.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1407416.P8Yqx4vqRb"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200608201227.34510.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.56 on 203.31.81.10 Cc: current@freebsd.org, Nik Clayton 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 02:57:46 -0000 --nextPart1407416.P8Yqx4vqRb Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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? 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 (where XXX is your swapdev) The disk should remap the sector, if it refuses to write to the sector beca= use=20 it's out of remappable sectors then you could try splitting your swap into = 2=20 partitions around the dead sector and then using them both (should be no=20 appreciable speed decrease) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1407416.P8Yqx4vqRb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQBE58+e5ZPcIHs/zowRAqgRAJ9rMWJTUOvI8G/riphDLbS1jOin7wCfYdJb YTWZsZ0E5OJcEaeD4NwA8Pk= =zWu9 -----END PGP SIGNATURE----- --nextPart1407416.P8Yqx4vqRb--