From owner-freebsd-questions@FreeBSD.ORG Sat Jun 19 15:31:37 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 C55E216A4CE for ; Sat, 19 Jun 2004 15:31:37 +0000 (GMT) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C61143D5A for ; Sat, 19 Jun 2004 15:31:37 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from llama.fishballoon.org ([81.104.195.124]) by mta06-svc.ntlworld.comESMTP <20040619153142.QCGH9422.mta06-svc.ntlworld.com@llama.fishballoon.org>; Sat, 19 Jun 2004 16:31:42 +0100 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.34 (FreeBSD)) id 1Bbhoc-000KZM-RX; Sat, 19 Jun 2004 16:31:34 +0100 Received: (from scott@localhost) by tuatara.fishballoon.org (8.12.11/8.12.11/Submit) id i5JFVW1K000613; Sat, 19 Jun 2004 16:31:32 +0100 (BST) (envelope-from scott) Date: Sat, 19 Jun 2004 16:31:32 +0100 From: Scott Mitchell To: "Andrew L. Gould" Message-ID: <20040619153131.GA462@tuatara.fishballoon.org> References: <6.1.0.6.0.20040619191803.01dafa20@mail.bangrocks.com> <200406190745.29010.algould@datawok.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200406190745.29010.algould@datawok.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-PRERELEASE i386 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: Sat, 19 Jun 2004 15:31:37 -0000 On Sat, Jun 19, 2004 at 07:45:28AM -0500, Andrew L. Gould wrote: > On Saturday 19 June 2004 04:18 am, Jason Oakley wrote: > > Ive managed to mount the CF card in my multicard reader: > > > > /dev/da0s1 129254 31334 97920 24% /mnt/CF > > > > But not the SD card port on the same reader. > > I'm guessing it's /dev/da1s1 but I used MAKEDEV on it and I still > > can't mount it. 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 -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon