Reloading USB mass storage disk [think Logical Disk Manager refres

Discussion in 'Windows Vista Drivers' started by ilya, Dec 29, 2009.

  1. ilya

    ilya Guest


    I have a USB mass storage device that, once enumerated, fails all disk
    access commands. At some point the IO is enabled via SCSI Pass Through
    Interface. Problem is Windows does not automatically [or at least
    immediately] reload the disk. This can only be done by refreshing the Logical
    Disk Manager. How can this be done from a user application?

    Things I've tried:

    - Issuing IOCTL_STORAGE_FIND_NEW_DEVICES to the PhysicalDrive; works on XP,
    does not on Vista and 7
    - Trying the method in "devcon.exe rescan"; again, works in XP, not in Vista
    or 7
    - A few other random storage IOCTLs and even closing and reopening the
    HANDLE :)

    Any ideas how this can be done from a standalone user application and
    without resetting the whole USB device?

    Thank you in advance.

    -- ilya
    ilya, Dec 29, 2009
    1. Advertisements

  2. The usual remount sequence, read the docs on FSCTL_DISMOUNT_VOLUME
    Maxim S. Shatskih, Dec 29, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.