Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Oct 1995 03:07:13 -0400 (EDT)
From:      Peter Dufault <dufault@hda.com>
To:        scanner@apricot.com (Scanner)
Cc:        questions@freebsd.org
Subject:   Re: possible to block out bad media on a partition?
Message-ID:  <199510150707.DAA11480@hda.com>
In-Reply-To: <199510150524.BAA02603@apricot.com> from "Scanner" at Oct 15, 95 01:24:54 am

next in thread | previous in thread | raw e-mail | index | archive | help
> Luckily the partition was only /var (yeah, I like having /var be
> its own partition.. ), and also luckily I do daily backups.  So,
> after poking around a little bit I made a /usr/var and symlinked
> /var to /usr/var, and restored /var off of tape.
> 
> Now, I have this 32 meg partition for /var that is unreferenced
> (commented out of fstab), and has a media error on it. Is there 
> anyway I can format or otherwise re-do just _that one_ partition
> to see if I can get it back online?

Ensure you have automatic write reallocation enabled in the disk's
error recovery page (page 1; check it with "scsi -f /dev/rsd?.ctl
-m 1" and do "man 8 scsi" to see how to permanently change it).
You usually want auto read reallocation enabled also.  Then dd from
/dev/zero to the partition.

--
Peter Dufault               Real Time Machine Control and Simulation
HD Associates, Inc.         Voice: 508 433 6936
dufault@hda.com             Fax:   508 433 5267



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