From owner-freebsd-current@FreeBSD.ORG Fri Jun 20 01:26:18 2003 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 04D1E37B401; Fri, 20 Jun 2003 01:26:18 -0700 (PDT) Received: from HAL9000.homeunix.com (ip114.bella-vista.sfo.interquest.net [66.199.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4770443F3F; Fri, 20 Jun 2003 01:26:17 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.9) with ESMTP id h5K8QFJa086774; Fri, 20 Jun 2003 01:26:15 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.9/Submit) id h5K8QFXR086773; Fri, 20 Jun 2003 01:26:15 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Fri, 20 Jun 2003 01:26:15 -0700 From: David Schultz To: Andreas Klemm Message-ID: <20030620082615.GA86657@HAL9000.homeunix.com> Mail-Followup-To: Andreas Klemm , freebsd-current@FreeBSD.org References: <20030615211559.GA3080@titan.klemm.apsfilter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030615211559.GA3080@titan.klemm.apsfilter.org> cc: freebsd-current@FreeBSD.ORG Subject: Re: write access to dos partition hangs system completely 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: Fri, 20 Jun 2003 08:26:18 -0000 On Sun, Jun 15, 2003, Andreas Klemm wrote: > FreeBSD titan.klemm.apsfilter.org 5.1-RC FreeBSD 5.1-RC #0: Sun Jun 1 14:21:32 CEST 2003 root@titan.klemm.apsfilter.org:/usr/src/sys/i386/compile/TITAN5 i386 > > When I mount my dos partition read write and copy > some data to it it immediately freezes the system. [...] > da0: Attempt to query device size failed: NOT READY, Medium not present > (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 > (da0:umass-sim0:0:0:0): Medium not present > (da0:umass-sim0:0:0:0): Unretryable error > Opened disk da0 -> 6 > (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 > (da0:umass-sim0:0:0:0): Medium not present > (da0:umass-sim0:0:0:0): Unretryable error > Opened disk da0 -> 6 > Mounting root from ufs:/dev/ad2s2a > ad0: hard error cmd=read fsbn 115471868 of 115471868-115471871 status=51 error=40 > pid 640 (squid), uid 65534: exited on signal 6 > pid 674 (squid), uid 65534: exited on signal 6 > pid 676 (squid), uid 65534: exited on signal 6 > pid 678 (squid), uid 65534: exited on signal 6 > pid 680 (squid), uid 65534: exited on signal 6 > ad0: hard error cmd=read fsbn 115471868 of 115471868-115471871 status=51 error=40 > ad0: hard error cmd=read fsbn 115471871 status=51 error=40 > ad0: hard error cmd=read fsbn 115471868 of 115471868-115471871 status=51 error=40 > ad0: hard error cmd=read fsbn 115471871 status=51 error=40 I don't know which of these devices your DOS partition is on, but the root problem seems to be the hardware. That said, msdosfs does hang when a write error occurs, so that may be your problem. (It gets into a loop in which it retries forever.) I submitted kern/37035 regarding this over a year ago, although I don't know to what extent the original problem or the trivial patch I posted still apply to 5.X.