From owner-freebsd-questions@FreeBSD.ORG Sun Jun 27 05:28:13 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 F1B9C16A4CE for ; Sun, 27 Jun 2004 05:28:12 +0000 (GMT) Received: from ms-smtp-01-eri0.socal.rr.com (ms-smtp-01-qfe0.socal.rr.com [66.75.162.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F1CE43D3F for ; Sun, 27 Jun 2004 05:28:12 +0000 (GMT) (envelope-from hoe-waa@hawaii.rr.com) Received: from ms-mss-01 ([10.10.4.10])i5R5Re6j003909 for ; Sat, 26 Jun 2004 22:27:40 -0700 (PDT) Received: from socal.rr.com (localhost [127.0.0.1]) by ms-mss-01.socal.rr.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0HZY00B9BCI4FD@ms-mss-01.socal.rr.com> for freebsd-questions@freebsd.org; Sat, 26 Jun 2004 22:27:40 -0700 (PDT) Received: from [10.10.6.201] (Forwarded-For: [68.8.243.244]) by ms-mss-01.socal.rr.com (mshttpd); Sat, 26 Jun 2004 19:27:40 -1000 Date: Sat, 26 Jun 2004 19:27:40 -1000 From: hoe-waa@hawaii.rr.com To: Scott Mitchell Message-id: <121731c12180f4.12180f4121731c@socal.rr.com> MIME-version: 1.0 X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.21 (built Sep 8 2003) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-questions@freebsd.org Subject: Re: changing cards in a reader X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hoe-waa@hawaii.rr.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2004 05:28:13 -0000 On Saturday, June 26, 2004 12:56 pm Scott Mitchell responded thusly > On Sat, Jun 26, 2004 at 11:39:25AM -1000, hoe-waa@hawaii.rr.com wrote: > > Aloha > > > > Hopefully this is a simple question. FreeBSD does not support my > > Olympus C-3000 Zoom camera so I bought a card reader (usb). It has > > 4 slots and when I boot or just plug it in I get 4 drives > > (da0, da1, da2, & da3). If I have a SmartMedia card installed I > > also see da2s1. > > > > da2s1 mounts fine and I am able to see and use all of the photo > files.> > > I have additional SM cards and would like to change the installed > card at > > will. If I do a umount and replace the card and try to mount > again I > > get an error "mount_msdosfs: /dev/da2s1: Invalid argument". I > should> say that the cards are different sizes. In order to mount > another card > > I have to unplug the usb cable and re-plug it in with the new > card in > > the slot. > > > > I have read man camcontrol and do not see an option I can use. > > > > Is there a way to do this without unplugging and re-plugging the > cable? > Try this (as root): > > # camcontrol devlist > > to find out which CAM device da2 belongs to. On this machine I get: > > <337 COMB > at scbus1 target 0 lun 0 > (pass0,da2) at scbus2 target 0 > lun 0 (pass1,da4) > at scbus2 target 0 lun 1 > (da5,pass2) at scbus2 target 0 > lun 2 (da6,pass3) > at scbus2 target 0 lun 3 > (da7,pass4) > My SmartMedia slot happens to be da5, which is device 2:0:1. After > unmounting the card, you should be able to: > > # camcontrol eject 2:0:1 > > using the appropriate device number for your system, of course. > Then swap > cards and do: > > # camcontrol rescan 2:0:1 > > which should generate some lines in /var/log/messages telling you > about the > size of the new card. > > You might want to look into setting up the automounter to do the > rescan and > eject automatically when cards are mounted and unmounted, > respectively. > Cheers, > > Scott > Aloha Scott and thanks for staying awake and responding. I thought I had tried all of that camcontrol stuff before I posted but I am getting old so I tried what you suggested. Alas, it did not seem to help. Here is the output of the attempt: Boot with 128MB card installed. hp# ls -l /dev/da* crw-r----- 1 root operator 4, 20 Jun 26 18:50 /dev/da0 crw-r----- 1 root operator 4, 21 Jun 26 18:50 /dev/da1 crw-r----- 1 root operator 4, 22 Jun 26 18:50 /dev/da2 crw-r----- 1 root operator 4, 24 Jun 26 18:50 /dev/da2s1 crw-r----- 1 root operator 4, 23 Jun 26 18:50 /dev/da3 hp# mount_msdosfs /dev/da2s1 /mnt/olympus hp# ls -l /mnt/olympus total 16 drwxr-xr-x 1 root wheel 16384 Jan 13 2003 dcim hp# camcontrol devlist at scbus0 target 0 lun 0 (da0,pass0) at scbus0 target 0 lun 1 (da1,pass1) at scbus0 target 0 lun 2 (da2,pass2) at scbus0 target 0 lun 3 (da3,pass3) hp# umount /mnt/olympus hp# camcontrol eject 0:0:2 Unit stopped successfully, Media ejected Remove 128MB card and insert 8MB card hp# camcontrol rescan 0:0:2 Re-scan of 0:0:2 was successful hp# mount_msdosfs /dev/da2s1 /mnt/olympus mount_msdosfs: /dev/da2s1: Invalid argument Unplug and replug usb cable and then hp# ls -l /mnt/olympus total 16 drwxr-xr-x 1 root wheel 8192 Jun 26 14:24 dcim drwxr-xr-x 1 root wheel 8192 Jan 1 1980 imolym Any other suggestions. (I hope :o)) Robert