From owner-freebsd-current@FreeBSD.ORG Sat Jul 12 03:02:11 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 A856B37B401 for ; Sat, 12 Jul 2003 03:02:11 -0700 (PDT) Received: from cmailm3.svr.pol.co.uk (cmailm3.svr.pol.co.uk [195.92.193.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0FEB43FB1 for ; Sat, 12 Jul 2003 03:02:10 -0700 (PDT) (envelope-from mtm98@mcgoldrick.org) Received: from modem-1021.dasyure.dialup.pol.co.uk ([81.78.51.253] helo=mcgoldrick.org) by cmailm3.svr.pol.co.uk with esmtp (Exim 4.14) id 19bHCi-0000tT-Su; Sat, 12 Jul 2003 11:02:09 +0100 Received: by mcgoldrick.org (Postfix, from userid 1000) id 9BCFD5046; Sat, 12 Jul 2003 11:02:00 +0100 (BST) Date: Sat, 12 Jul 2003 11:02:00 +0100 From: Michael McGoldrick To: Poul-Henning Kamp Message-ID: <20030712100200.GA865@uriel.mcgoldrick.org> References: <20030711131218.O8593@root.org> <9835.1057954973@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9835.1057954973@critter.freebsd.dk> User-Agent: Mutt/1.4.1i cc: current@freebsd.org Subject: Re: USB mass storage device oddness 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: Sat, 12 Jul 2003 10:02:12 -0000 On Fri, Jul 11, 2003 at 10:22:53PM +0200, Poul-Henning Kamp wrote: > In message <20030711131218.O8593@root.org>, Nate Lawson writes: > >The important part of your error message is "Medium not present". > >Obviously, when you insert the flash reader into the USB port without any > >flash media in it, that is the right error to return. I believe our umass > >driver and/or your reader do not generate the proper CAM event when the > >media is inserted. > > > >The easy workaround is to always insert the flash in the reader and then > >the reader into the USB port. > > It may be possible to trigger a reexamination of the device by > doing a > true > /dev/da0 > > (for correct value of 0 obviously) > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. Unfortunately, when I remove a card, the whole umass0 device vanishes, never to reappear. Actually, I can live with removing and reattaching the whole reader every time I change card, the thing that was really concerning me was the way the system sometimes 'forgets' how to open any files at all when I remove and reinsert a card. Sadly, this problem is intermittent and I haven't worked out the circumstances that trigger it yet. I will update when the whole GCC thing has blown over and build a debug kernel to see if that sheds any light on the matter. -- Michael McGoldrick: mmcgoldrick@linuxdriven.net