From owner-freebsd-hackers Wed Nov 22 12:21:35 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA08193 for hackers-outgoing; Wed, 22 Nov 1995 12:21:35 -0800 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA08188 for ; Wed, 22 Nov 1995 12:21:29 -0800 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA06631; Wed, 22 Nov 1995 13:17:44 -0700 From: Terry Lambert Message-Id: <199511222017.NAA06631@phaeton.artisoft.com> Subject: Re: Help! I got a bad block.... To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Wed, 22 Nov 1995 13:17:44 -0700 (MST) Cc: hasty@rah.star-gate.com, hackers@FreeBSD.org In-Reply-To: <199511220042.AAA23978@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Nov 22, 95 00:42:08 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1084 Sender: owner-hackers@FreeBSD.org Precedence: bulk > > My system disk is dying and I need to remove an inode -- all I got is > > the disk block number which fsck reports . > > > > BTW: Why can't fsck remove or mark bad scsi blocks? > > Because nobody's added that 8). You should be able to turn on bad sector > forwarding in the drive and have it do the work itself. Have a look > at scsi(8) : > > scsi -f /dev/rsd0 -m1 -e -P 3 > > and set AWRE and ARRE to enable reallocation on both read and write. > Many drives ship with this off. I've always wondered about this. If the area is reserved anyway, then why ever ship with it off? If the area isn't reserved, then exactly what lossage should I expect to see when enabling it? If the replacement sectors are otherwise exposed as usable data sectors, turning it on would be Bad(tm) if you have already stored data on the drive. If the replacement sectors are not otherwise exposed as usable data sectors, having it off at all is silly. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.