Date: Sun, 27 Jun 2004 09:23:09 -1000 From: hoe-waa@hawaii.rr.com To: Scott Mitchell <scott+freebsd@fishballoon.org> Cc: freebsd-questions@freebsd.org Subject: Re: changing cards in a reader Message-ID: <121e6dc121c660.121c660121e6dc@socal.rr.com>
next in thread | raw e-mail | index | archive | help
Scott Mitchell wrote Hi Robert, Weird - that's what works for me, so I don't know how much more help I can offer, but here are a few suggestions that might help us figure out what's going on... > 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 Ah... you're running FreeBSD 5 - it was pretty late when I wrote that first reply, so I didn't notice that immediately. Unlike FreeBSD 4, where stuff in /dev/ had to be created manually, FreeBSD 5 uses devfs to create the device nodes as needed, when devices come and go. I haven't actually used my card reader on 5 yet, so I could be missing something obvious here... > Remove 128MB card and insert 8MB card > > hp# camcontrol rescan 0:0:2 > Re-scan of 0:0:2 was successful What does 'fdisk da2' give you at this point? Do you get anything in /var/log/messages when you insert the new card? It might be worth doing a 'camcontrol start' after the rescan, just in case, but I don't really think that will make any difference. Since you're running FreeBSD 5, it might be worth re-porting your question to the freebsd-current mailing list, to see if anyone there can shed some light on this. Sorry I can't be more help, Scott Aloha and mahalo Scott I had tried the "camcontrol start" before but I tried again without any good stuff. Fdisk seems to show the correct readings but I could use some help interpreting the output of "/var/log/messages". I am traveling now so I am using my laptop which is running current. When I return to Kona (7-6) I will try on one of my desktops that are running 5.2.1 Thanks again for helping. Robert 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 hp# umount /mnt/olympus hp# camcontrol eject 0:0:2 Unit stopped successfully, Media ejected Remove 8MB card and insert 128MB card hp# camcontrol rescan 0:0:2 Re-scan of 0:0:2 was successful hp# fdisk da2 ******* Working on device /dev/da2 ******* parameters extracted from in-core disklabel are: cylinders=125 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=125 heads=64 sectors/track=32 (2048 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 6 (0x06),(Primary 'big' DOS (>= 32MB)) start 47, size 255953 (124 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 16; end: cyl 499/ head 15/ sector 32 The data for partition 2 is: <UNUSED> The data for partition 3 is: <UNUSED> The data for partition 4 is: <UNUSED> Jun 27 09:01:13 hp su: robert to root on /dev/ttyp0 Jun 27 09:03:01 hp kernel: (da2:umass-sim0:0:0:2): READ CAPACITY. CDB: 25 40 0 0 0 0 0 0 0 0 Jun 27 09:03:01 hp kernel: (da2:umass-sim0:0:0:2): CAM Status: SCSI Status Error Jun 27 09:03:01 hp kernel: (da2:umass-sim0:0:0:2): SCSI Status: Check Condition Jun 27 09:03:01 hp kernel: (da2:umass-sim0:0:0:2): UNIT ATTENTION asc:28,0 Jun 27 09:03:01 hp kernel: (da2:umass-sim0:0:0:2): Not ready to ready change, medium may have changed Jun 27 09:03:01 hp kernel: (da2:umass-sim0:0:0:2): Retrying Command (per Sense Data) hp# hp# camcontrol start 0:0:2 Unit started successfully hp# mount_msdosfs /dev/da2s1 /mnt/olympus mount_msdosfs: /dev/da2s1: Invalid argument hp#
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?121e6dc121c660.121c660121e6dc>