From owner-freebsd-stable Thu Oct 29 10:52:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA02200 for freebsd-stable-outgoing; Thu, 29 Oct 1998 10:52:10 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from foobar.franken.de (foobar.franken.de [194.94.249.81]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA02122 for ; Thu, 29 Oct 1998 10:51:39 -0800 (PST) (envelope-from logix@foobar.franken.de) Received: (from logix@localhost) by foobar.franken.de (8.8.8/8.8.5) id TAA04082; Thu, 29 Oct 1998 19:47:00 +0100 (CET) Message-ID: <19981029194659.A3202@foobar.franken.de> Date: Thu, 29 Oct 1998 19:46:59 +0100 From: Harold Gutch To: Mike Smith Cc: stable@FreeBSD.ORG Subject: Re: HD problems References: <19981028234141.A913@foobar.franken.de> <199810282247.OAA00727@dingo.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199810282247.OAA00727@dingo.cdrom.com>; from Mike Smith on Wed, Oct 28, 1998 at 02:47:27PM -0800 X-Organisation: BatmanSystemDistribution X-Mission: To free the world from the Penguin Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Oct 28, 1998 at 02:47:27PM -0800, Mike Smith wrote: > > > Your disk is taking longer to handle the error than we allow it to. Your > > > best bet at this point is probably to mount the partition forced > > > readonly (mount -f -o ro), copy everything meaningful off the the > > > partition, then dd zeroes over it to give the drive a chance to remap > > > the sector(s) in question. > > > > > Is there an easy way to set the timeout-values higher, like patch > > a couple of lines in the wd-driver to at least give me enough > > time to backup the whole thing, and then nuke the data that currently > > still is on it ? > > Yup. Look for the code that looks like this: > > if (wdtab[ctrlr].b_errcnt == 0) > du->dk_timeout = 1 + 10; > else > du->dk_timeout = 1 + 3; > > > and change the 10 to 30 or so. > That's from a -CURRENT /usr/src/sys/isa/i386/wd.c, it looks a little different in -STABLE, still i found it, thanks. After a recompile it didn't have any effect, then i switched to the other solution, mounting forced, backed up the stuff, dd'd over the disk and repartitioned. It seems to work again now. I just checked and saw that my wd.c still contains the unpatched line, so I guess I didn't save after patching it *sigh*. Anyway, thanks for the help, I hope the disk is OK now again :). -- bye, logix Sleep is an abstinence syndrome wich occurs due to lack of caffein. Wed Mar 4 04:53:33 CET 1998 #unix, ircnet To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message