From owner-freebsd-current@FreeBSD.ORG Mon Aug 21 11:40:09 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 E193216A4DE for ; Mon, 21 Aug 2006 11:40:09 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFB3943D55 for ; Mon, 21 Aug 2006 11:40:08 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (sxeryj@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k7LBe0uK027615; Mon, 21 Aug 2006 13:40:05 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k7LBdskN027603; Mon, 21 Aug 2006 13:39:54 +0200 (CEST) (envelope-from olli) Date: Mon, 21 Aug 2006 13:39:54 +0200 (CEST) Message-Id: <200608211139.k7LBdskN027603@lurza.secnetix.de> From: Oliver Fromme To: freebsd-current@FreeBSD.ORG, doconnor@gsoft.com.au, nik@ngo.org.uk In-Reply-To: X-Newsgroups: list.freebsd-current User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 21 Aug 2006 13:40:07 +0200 (CEST) Cc: Subject: Re: Avoiding bad sectors? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-current@FreeBSD.ORG, doconnor@gsoft.com.au, nik@ngo.org.uk List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Aug 2006 11:40:10 -0000 Daniel O'Connor wrote: > 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=/dev/zero of=/dev/XXX bs=64k > > (where XXX is your swapdev) I recommend also adding "conv=noerror" to the dd command, so it won't stop if an error occurs. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Python is an experiment in how much freedom programmers need. Too much freedom and nobody can read another's code; too little and expressiveness is endangered." -- Guido van Rossum