Re: changing cards in a reader

hoe-waa_at_hawaii.rr.com
Date: 06/27/04

  • Next message: MailScanner: "Warning: E-mail viruses detected"
    Date: Sun, 27 Jun 2004 09:23:09 -1000
    To: Scott Mitchell <scott+freebsd@fishballoon.org>
    
    

    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#

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: MailScanner: "Warning: E-mail viruses detected"

    Relevant Pages

    • Re: Transitions in FreeBSD
      ... On Tue, 12 Apr 2005, Scott Long wrote: ... > I'd like to announce that I'm stepping down from the FreeBSD Core ... so please don't think that I'm moving on from FreeBSD. ... I wish you the best of luck ...
      (freebsd-hackers)
    • Re: Call for FreeBSD status reports
      ... On Mon, 5 Jul 2004, Scott Long wrote: ... > It's time again for the bi-monthly FreeBSD status reports. ... The problem that arises is due to the live download and build of ports ...
      (freebsd-stable)
    • Re: Pkg-based base system.
      ... Scott Long wrote: ... I'm actually more in favor of keeping FreeBSD as ... Maybe this can be placed in the port tree like being a kind ...
      (freebsd-current)
    • Re: Text file busy
      ... On Thu, 4 Sep 2003, Scott M. Likens wrote: ... >> This was something that was fixed way back on FreeBSD but it seems to be ... It's also unfortunate that this protection does not seem to extend to ...
      (freebsd-current)
    • Re: changing cards in a reader
      ... > I thought I had tried all of that camcontrol stuff ... Unlike FreeBSD 4, where stuff ... my card reader on 5 yet, so I could be missing something obvious here... ... it might be worth re-porting your question ...
      (freebsd-questions)