Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2006 13:39:54 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-current@FreeBSD.ORG, doconnor@gsoft.com.au, nik@ngo.org.uk
Subject:   Re: Avoiding bad sectors?
Message-ID:  <200608211139.k7LBdskN027603@lurza.secnetix.de>
In-Reply-To: <freebsd-current.200608201227.34510.doconnor@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608211139.k7LBdskN027603>