From owner-freebsd-current@FreeBSD.ORG Wed May 11 13:28:15 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33F6516A4CE; Wed, 11 May 2005 13:28:15 +0000 (GMT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78EC743D31; Wed, 11 May 2005 13:28:14 +0000 (GMT) (envelope-from sos@DeepCore.dk) Received: from [194.192.25.143] (laptop.deepcore.dk [194.192.25.143]) by spider.deepcore.dk (8.13.3/8.13.3) with ESMTP id j4BDOGP4032964; Wed, 11 May 2005 15:24:16 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <428207EA.6090703@DeepCore.dk> Date: Wed, 11 May 2005 15:26:02 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ruslan Ermilov References: <20050511132427.GA64084@ip.net.ua> In-Reply-To: <20050511132427.GA64084@ip.net.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-mail-scanned: by DeepCore Virus & Spam killer v1.12 cc: current@FreeBSD.org Subject: Re: Accessing IDE disk with bad sectors freezes the box X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 13:28:15 -0000 Ruslan Ermilov wrote: > Hi Soren, >=20 > I have a disk with lot of bad sectors. When working with it on > an AMD64 box running 6-CURRENT, accessing bad areas just freezes > the box completely, without any diagnostics. The same disk when > plugged into another i386 box running 4-STABLE works properly by > issuing errors from the kernel, and reporting EIO to userland. >=20 > Is there something I can do to try to mitigate this issue? Hmm, depending on the problem the disk has and how the controller is=20 implemented the behavior on fatal errors can be unpredictable,=20 especially when DMA is involved (some controllers just lock the bus=20 completely so our timeout code wont get a chance). If you switch the disk to PIO mode, does that help any ? --=20 -S=F8ren