Re: Reattach/redetect allways connected umass device - is it possible ?

From: Bernd Walter (ticso_at_cicely12.cicely.de)
Date: 03/28/05

  • Next message: Vladimir Grebenschikov: "Re: Reattach/redetect allways connected umass device - is it possible ?"
    Date: Mon, 28 Mar 2005 13:46:34 +0200
    To: Vladimir Grebenschikov <vova@fbsd.ru>
    
    

    On Mon, Mar 28, 2005 at 03:35:10PM +0400, Vladimir Grebenschikov wrote:
    > ? ??, 28/03/2005 ? 13:11 +0200, Bernd Walter ?????:
    > > >
    > > > Unfortunately, it seen as not-ejectable media.
    > > >
    > > > # camcontrol inquiry da0
    > > > pass0: <Sony MSC-U04 3.00> Removable Direct Access SCSI-0 device
    > > > pass0: Serial Number 3
    > > > pass0: 40.000MB/s transfers
    > > > #
    > >
    > > It's _removeable_ direct access.
    >
    > oops, sorry. yes it is mentioned as removable.
    >
    > > Since this is a memory stick - I don't know how one could remove the
    > > flash media from the USB drive.
    >
    > Just mechanically.
    >
    > > But this device bug won't hurt as long as you can remove the drive.
    >
    > I can remove even mounted device. So it is not problem.

    So in fact it is a flash card reader?
    In that case removeable is correct.
    You shouldn't eject mounted media - FreeBSD locks mounted media, but
    since your device can't physically lock it...

    > Problem is that I should do something after replace card by another card
    > of different size to be able mount new card.

    Yes - as already mentioned on the list by diffrent people:
    cp /dev/null > /dev/da0

    > camcontrol detach da0; camcontrol rescan all
    > helps, but, it should be much better if it will be issued automatically.

    Yes - GEOM seems to ignore media change signals from drives.
    I've added PHK to the recipient list - maybe he has an idea about this
    problem.
    However - lots of cheap flash card readers are to stupid for even that.
    You just can't rely on an automatic reread.

    > > > # usbdevs -v
    > > > ...
    > > > Controller /dev/usb3:
    > > > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
    > > > Intel(0x0000), rev 1.00
    > > > port 1 powered
    > > > port 2 powered
    > > > port 3 powered
    > > > port 4 powered
    > > > port 5 addr 2: high speed, self powered, config 1, USB Memory Stick
    > > > Slot(0x014d), Sony(0x054c), rev 1.10
    > > > port 6 powered
    > > > #
    > > >
    > > > I guess usb device should be removed on skick removal and back, but it
    > > > does not works :(.
    > >
    > > So you say that the device still exists after unplugging the USB stick?
    >
    > Yes.

    That shouldn't happen, unless you still have references to that device.
    Are you running with latest code?
    There were lots of ehci fixes lately.

    > > This is not the intended behavour. Is it still mounted when you unplug?
    >
    > No. (If be more exact it does not depends on mount state).
    > USB device never disappear. Probably it reflect real state, I guess,
    > card-reader itself hardwired to USB hub inside notebook and never
    > disconnected.
    >
    > Probably there is kind of disconnect notification on CAM level ?

    The first disconnect notification is from your root hub.
    The uhub driver then destroys the umass, which first destroys the
    scbus and so on.
    If one instance on the chain blocks the whole thing has to wait.

    -- 
    B.Walter                   BWCT                http://www.bwct.de
    bernd@bwct.de                                  info@bwct.de
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Vladimir Grebenschikov: "Re: Reattach/redetect allways connected umass device - is it possible ?"

    Relevant Pages

    • Re: The Real Difference Between XP Pro and XP Media Center
      ... purchased separate disk manager sotware to try to get the external hard drive ... By the way does Vista promise better USB management? ... and XP Media Center. ... The latest one that has happened is none of my external USB hard drives ...
      (microsoft.public.windows.mediacenter)
    • Re: [Full-Disclosure] Re: USB risks (continued)
      ... What must I do to trigger Autorun on my USB storage device? ... Media must be marked as removable. ... but the drives aren't removeable on CDs. ...
      (Full-Disclosure)
    • RE: sharing files from my removable HD to xbox360
      ... i just deicided to check my xbox and its reading the folder now. ... Added my entire USB drive to the monitored folders list. ... I'll let the developer who owns Media Sharing know about the problem you're ... reason for me to have all my songs on both drives so i dont want to have to ...
      (microsoft.public.windowsmedia.player)
    • Re: Advice on external backup of a Linux server.
      ... >> You could even swap between a few external drives so that you have a ... >> USB drive in use, one on the shelf, one in the safety deposit box, one ... DVD-R or swap the hard drive and take the ... If you leave the media near the system being backed up, ...
      (Fedora)
    • Re: USB reader problem
      ... >>> I get an icon for my USB 'pen drive', ... >> where the actual storage media is a CF or SD card and that the USB ... > The OP referred to a flash card reader, ...
      (comp.sys.mac.misc)