Avoiding bad sectors?
olli at lurza.secnetix.de
Mon Aug 21 11:40:10 UTC 2006
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.
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
More information about the freebsd-current