Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263024AbUIDV6f (ORCPT ); Sat, 4 Sep 2004 17:58:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263100AbUIDV6f (ORCPT ); Sat, 4 Sep 2004 17:58:35 -0400 Received: from gsstark.mtl.istop.com ([66.11.160.162]:18060 "EHLO stark.xeocode.com") by vger.kernel.org with ESMTP id S263024AbUIDV6b (ORCPT ); Sat, 4 Sep 2004 17:58:31 -0400 To: Alan Cox Cc: Brad Campbell , Greg Stark , Linux Kernel Mailing List , Jeff Garzik Subject: Re: Crashed Drive, libata wedges when trying to recover data References: <87oekpvzot.fsf@stark.xeocode.com> <4136E277.6000408@wasp.net.au> <87u0ugt0ml.fsf@stark.xeocode.com> <413868CE.7070303@wasp.net.au> <1094220595.7923.14.camel@localhost.localdomain> In-Reply-To: <1094220595.7923.14.camel@localhost.localdomain> From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 04 Sep 2004 17:58:23 -0400 Message-ID: <87y8jppugw.fsf@stark.xeocode.com> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1174 Lines: 33 Alan Cox writes: > > Jeff, do we really have to wait 30 seconds for a timeout? If the drive hits an unreadble spot I > > would have thought it would come back to us with a read error rather than timing out the command. > > The drive will retry for a few seconds then fail. The failure now > generates a SCSI medium error to the core scsi layer and it does like to > issue a few retries. The default retry count for scsi is probably too > high for SATA given the drive retries. Certainly over an hour seems a little excessive: $ time dd bs=512 count=1 if=/dev/sda4 of=/dev/null dd: reading `/dev/sda4': Input/output error 0+0 records in 0+0 records out real 67m59.382s user 0m0.001s sys 0m0.002s bash-2.05b# time mount /dev/sda4 /u4 /dev/sda4: Input/output error mount: you must specify the filesystem type real 71m59.322s user 0m0.000s sys 0m0.004s bash-2.05b# -- greg - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/