From owner-freebsd-stable@FreeBSD.ORG Thu Feb 9 18:04:09 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78DD116A453 for ; Thu, 9 Feb 2006 18:04:09 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BBF143D49 for ; Thu, 9 Feb 2006 18:04:08 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (vwfgja@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k19I41xQ023915 for ; Thu, 9 Feb 2006 19:04:06 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k19I41RN023914; Thu, 9 Feb 2006 19:04:01 +0100 (CET) (envelope-from olli) Date: Thu, 9 Feb 2006 19:04:01 +0100 (CET) Message-Id: <200602091804.k19I41RN023914@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG In-Reply-To: <20060209204148.T87003@woozle.rinet.ru> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 09 Feb 2006 19:04:06 +0100 (CET) Cc: Subject: Re: USB Flash reader under RELENG_6: force GEOM rescan X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 18:04:09 -0000 Dmitry Morozovsky wrote: > I have USB multi-LUN flash reader which is identified under RELENG_6 as > umass0: GENERIC USB Storage Device, rev 2.00/1.8a, addr 2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-0 device > da0: 40.000MB/s transfers > da0: Attempt to query device size failed: NOT READY, Medium not present > [...] > when I insert flash into one of slots, I need to rescan da* providers, as > usually there is slice1 which should be mounted. The problem is that devfs isn't "triggered", therefore it doesn't notice that a new device appeared, so no new nodes are created. > How can I achieve this? camcomtrol rescan does not help, and for now I've found > only *very* ugly workaround like > > dd if=/dev/da0 of=/dev/da0 count=1 > > which results in error, but actually create GEOMs The following should work as well, without giving an error: dd if=/dev/null of=/dev/da0 count=0 It opens the device for writing (without actually writing anything) and immediately closes it again, which causes devfs to be "triggered". I don't think there's currently a real fix for the problem, I'm afraid. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "What is this talk of 'release'? We do not make software 'releases'. Our software 'escapes', leaving a bloody trail of designers and quality assurance people in its wake."