From owner-freebsd-questions Sun Oct 15 04:04:09 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id EAA21321 for questions-outgoing; Sun, 15 Oct 1995 04:04:09 -0700 Received: from hda.com (hda.com [199.232.40.182]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id EAA21315 for ; Sun, 15 Oct 1995 04:04:06 -0700 Received: (from dufault@localhost) by hda.com (8.6.11/8.6.9) id DAA11480; Sun, 15 Oct 1995 03:07:13 -0400 From: Peter Dufault Message-Id: <199510150707.DAA11480@hda.com> Subject: Re: possible to block out bad media on a partition? To: scanner@apricot.com (Scanner) Date: Sun, 15 Oct 1995 03:07:13 -0400 (EDT) Cc: questions@freebsd.org In-Reply-To: <199510150524.BAA02603@apricot.com> from "Scanner" at Oct 15, 95 01:24:54 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 956 Sender: owner-questions@freebsd.org Precedence: bulk > 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