Re: Avoiding bad sectors?

From: Oliver Fromme <olli_at_lurza.secnetix.de>
Date: Mon, 21 Aug 2006 13:39:54 +0200 (CEST)
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
Received on Mon Aug 21 2006 - 09:40:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:59 UTC