Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262522AbVBCIYd (ORCPT ); Thu, 3 Feb 2005 03:24:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262672AbVBCIYc (ORCPT ); Thu, 3 Feb 2005 03:24:32 -0500 Received: from wproxy.gmail.com ([64.233.184.193]:52885 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S262522AbVBCIYX (ORCPT ); Thu, 3 Feb 2005 03:24:23 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=NN2ZO3G/EqjAzLnMPpJQd24kIfKqwwayQLp8fTxjesdrm/jE/gIi5HnHrGlWaXdK4RTrWKtL0jLGgtqSt//H6c3/WlM8gyHz8AmKjeZtbGIN6XDnIvjv52+7SDhKBwqRJ4ya8zoHveYLTv2+fcg8ZV04a6NclRd2e7/I9o6XfNw= Message-ID: <2ec2c15a05020300235355d997@mail.gmail.com> Date: Thu, 3 Feb 2005 00:23:53 -0800 From: Prashant Viswanathan Reply-To: Prashant Viswanathan To: linux-kernel@vger.kernel.org Subject: Re: Compactflash (Sandisk 512) hangs on access In-Reply-To: <2ec2c15a050128221279a11585@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <2ec2c15a05012710356feafc81@mail.gmail.com> <20050127210735.GS7048@alpha.home.local> <2ec2c15a050128221279a11585@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2350 Lines: 52 On Fri, 28 Jan 2005 22:12:04 -0800, Prashant Viswanathan wrote: > > > I have been trying unsuccessfully over the last 2 weeks to get > > > compactflash working on my Linux system based on mini-ITX (Via CL > > > motherboard, pentium compatible). > > > > > > I use a CF->IDE adapter to access it just like a IDE hard disk. My > > > compactflash is Sandisk SDCFH-512. Linux can detect it. I can even > > > mount it and do a fdisk on it. However, the moment I try to do > > > anything substantial like copy multiple files or copy 1000 blocks > > > using dd, I lose access to it. Linux loses access to it totally. I > > > can't even do a fdisk on it. I get an error like "Unable to open > > > /dev/hdc". > > On Thu, 27 Jan 2005 22:07:35 +0100, Willy Tarreau wrote: > > Have you checked that the power connector really provides 5V to the > > IDE-CF adapter ? I had the exact same behaviour 5 years ago with a power > > wire cut. Signal lines were powerful enough to bring power to the cheap > > flash (16 MB), I could even read it, most times. The kernel almost always > > booted from it, and when it turned to mount the ext2 fs R/W, it hanged. I > > finally partially destroyed it this way, and it got several defects which > > could not be cleaned with a simple write or format. > > > > Other than that, I have lots of CF cards on IDE adapters (some on motherboard, > > some hand-made, some bought to serious makers), and never ran into such > > problems since. > > > > Willy > > The power connector is fine. > > I also disabled DMA (some suggestion on this newsgroup to a similar > error) and now I can't turn it back on. > > > everest root # hdparm -d1 /dev/hdc > > /dev/hdc: > setting using_dma to 1 (on) > Finally figured out the problem (or at least worked around it). Everything seems to work perfectly after I switched to an older 40 conductor IDE cable! Before that I was using the newer 80 conductor IDE cable. I sitll dont understand why the newer ( and apparently better) cables are problematic. Higher speeds causing race conditions perhaps? - 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/