From owner-freebsd-questions@FreeBSD.ORG Sun Jun 20 00:16:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B857C16A4CE for ; Sun, 20 Jun 2004 00:16:03 +0000 (GMT) Received: from mail.iinet.net.au (mail-10.iinet.net.au [203.59.3.42]) by mx1.FreeBSD.org (Postfix) with SMTP id A4C6843D1D for ; Sun, 20 Jun 2004 00:16:02 +0000 (GMT) (envelope-from waulok@bangrocks.com) Received: (qmail 30477 invoked from network); 20 Jun 2004 00:15:53 -0000 Received: from unknown (HELO smeghead.bangrocks.com) (203.173.18.228) by mail.iinet.net.au with SMTP; 20 Jun 2004 00:15:52 -0000 Message-Id: <6.1.0.6.0.20040620101525.01c1e458@mail.bangrocks.com> X-Sender: waulok@bangrocks.com@mail.bangrocks.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Date: Sun, 20 Jun 2004 10:15:46 +1000 To: Scott Mitchell From: Jason Oakley In-Reply-To: <20040619153131.GA462@tuatara.fishballoon.org> References: <6.1.0.6.0.20040619191803.01dafa20@mail.bangrocks.com> <200406190745.29010.algould@datawok.com> <20040619153131.GA462@tuatara.fishballoon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-questions@freebsd.org Subject: Re: Mounting a multicard reader (FBSD) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2004 00:16:03 -0000 Fantastic! Thanks, Scott! That did the trick! At 01:31 AM 20/06/2004, you wrote: >What does 'camcontrol devlist' say? Probably it will just list one device >(da0) that - as you've found - corresponds with the CF slot on your card >reader. The other slots are probably mapped to other LUNs (Logical Unit >Numbers) on the same SCSI device number. The CAM framework only probes LUN >0 by default, so you only see the first slot. For example, when my machine >boots, I have: > ># camcontrol devlist > at scbus2 target 0 lun 0 (pass0,da4) > >which happens to by the SD/MMC slot on my four-slot reader. To make the >other slots visible I do: > ># camcontrol rescan 2:0:1 ># camcontrol rescan 2:0:2 ># camcontrol rescan 2:0:3 ># camcontrol devlist > at scbus2 target 0 lun 0 (pass0,da4) > at scbus2 target 0 lun 1 (da5,pass1) > at scbus2 target 0 lun 2 (da6,pass2) > at scbus2 target 0 lun 3 (da7,pass3) > >where the '2' and '0' come from the 'scbus' and 'target' parts of the >devlist output - these will probably be different for your system. So now >I have da{5,6,7} corresponding to the SmartMedia, CF and Memory Stick slots >on my reader. > >I actually have all those 'camcontrol rescan' commands in my /etc/usbd.conf >file, so everything is set up automatically when the reader is detected. >You might also want to look into using the automounter to avoid having to >mount things manually - it's pretty convenient to be able to plug in a card >then just 'cd /flash/cf' (or whatever) to access it. Dan Pelleg wrote a >pretty good article about this on DaemonNews last year: > >http://ezine.daemonnews.org/200305/cfmount.html > >Hope that's some help to you, > > Scott --------------------------------------------------------------------------------- http://www.bangrocks.com/ - http://www.auspug.org/ http://www.ZigZagSoft.com/ - PalmOS Software and "Palm Games Programming" forum