From owner-freebsd-questions@FreeBSD.ORG Wed Oct 15 07:25:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8B37106568B for ; Wed, 15 Oct 2008 07:25:09 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [76.96.30.24]) by mx1.freebsd.org (Postfix) with ESMTP id 9C7AB8FC24 for ; Wed, 15 Oct 2008 07:25:08 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA09.emeryville.ca.mail.comcast.net ([76.96.30.20]) by QMTA02.emeryville.ca.mail.comcast.net with comcast id SvNL1a0080S2fkCA2vR8qS; Wed, 15 Oct 2008 07:25:08 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA09.emeryville.ca.mail.comcast.net with comcast id SvR61a0012P6wsM8VvR6Pc; Wed, 15 Oct 2008 07:25:07 +0000 X-Authority-Analysis: v=1.0 c=1 a=nTowVmpFNmYA:10 a=QycZ5dHgAAAA:8 a=7cwMDQVMhX-CW1EDUkoA:9 a=Y6kqSN7vI-gqMJ-ouXQA:7 a=LSg3KtGGVnXMMHFmctQzPTxRU44A:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 1B2D7C9419; Wed, 15 Oct 2008 00:25:06 -0700 (PDT) Date: Wed, 15 Oct 2008 00:25:06 -0700 From: Jeremy Chadwick To: Aniruddha Message-ID: <20081015072506.GA70832@icarus.home.lan> References: <1223935437.4511.5.camel@debian> <7daacbbe0810140314t18df6da5r44e6cde2c834317a@mail.gmail.com> <1224052599.4011.4.camel@debian> <20081015064351.GA69937@icarus.home.lan> <1224054180.4011.10.camel@debian> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1224054180.4011.10.camel@debian> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org, Dominique Goncalves Subject: Re: FreeBSD do dbus & hal work? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2008 07:25:09 -0000 On Wed, Oct 15, 2008 at 09:03:00AM +0200, Aniruddha wrote: > On Tue, 2008-10-14 at 23:43 -0700, Jeremy Chadwick wrote: > > > Thanks, I followed the faq to the letter and it show a dialog when I > > > insert a USB stick. Unfortunately when I insert an sdcard still nothing > > > happens. > > > > Can anyone confirm that dbus and/or hald have anything to do with this? > > (I thought those were specific to X...) > > > > When attaching a USB device to a USB port, the kernel will notice the > > device has been added and will do the proper enumeration. For example, > > when adding a USB hard disk or a USB pen drive, a umass device will be > > found, then a daX device should be created (which is what you use to > > access the disk; USB storage devices appear as SCSI disks). > > > > But in the case of a USB device that's already attached to the bus, e.g. > > one of those 7-in-1 card readers, I cannot see how adding a SD/MMC card > > would cause the hard disk to suddenly show up. > > > > You would need to run "camcontrol rescan 0", to cause the device to be > > re-scanned for any media which was inserted. > > Thanks for the quick and extensive answer. I'll check the exact behavior of > the 7-in-1 card reader somewhat more. The card reader is already attached to the USB bus once the kernel loads. To find actual inserted/removed media, you will need to do the camcontrol command I listed off. Also: ALWAYS be sure to use "umount" to unmount the filesystems *BEFORE* removing the media. Not doing so will result in a kernel panic. Consider yourself warned. Supposedly this has been fixed in CURRENT/HEAD. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |