From owner-freebsd-current@FreeBSD.ORG Thu Oct 15 04:34:24 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1E30106566C for ; Thu, 15 Oct 2009 04:34:24 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail3.es.net [IPv6:2001:400:4c01::2]) by mx1.freebsd.org (Postfix) with ESMTP id B3D9B8FC15 for ; Thu, 15 Oct 2009 04:34:24 +0000 (UTC) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id n9F4YM8A013900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 14 Oct 2009 21:34:23 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 6B42D1CC37; Wed, 14 Oct 2009 21:34:22 -0700 (PDT) To: Warren Block In-reply-to: Your message of "Wed, 14 Oct 2009 14:38:47 MDT." Date: Wed, 14 Oct 2009 21:34:22 -0700 From: "Kevin Oberman" Message-Id: <20091015043422.6B42D1CC37@ptavv.es.net> X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5, 1.2.40, 4.0.166 definitions=2009-10-15_02:2009-09-29, 2009-10-15, 2009-10-14 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-0910140280 Cc: current@freebsd.org Subject: Re: Why does hal think my USB devices are fixed? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 15 Oct 2009 04:34:25 -0000 > Date: Wed, 14 Oct 2009 14:38:47 -0600 (MDT) > From: Warren Block > Sender: owner-freebsd-current@freebsd.org > > On Wed, 14 Oct 2009, Joe Marcus Clarke wrote: > > > > I don't have any card readers, but as Hans pointed out, this part will > > come from the SCSI subsystem. If CAM says the device is not removable, > > then hal will go with that. > > Light sledgehammering in /usr/local/share/hal/fdi/preprobe/20thirdparty > and the card reader can be made to work: > > First, stop hal trying to automount a card twice, once for the redundant > "computer_storage" version of a disk: > > 10-ignore-computer_storage.fdi : > > > > > > > true > > > > > Then set some options for the card reader: > > 20-check-media.fdi : > > > > > > storage.media_check_enabled > > true > true > > > > > hal still sometimes doesn't notice new cards being connected, and the > card reader's USB cable has to be reconnected. But at this point, it's > at least as good as it was under 7-STABLE. Doing something to access the device seems to cause it to be "noticed". I use 'fsck -p' on the device, but I suspect dd(1) or most anything else that touches the device will do it. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751