Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Reloading USB mass storage disk [think Logical Disk Manager refres

0 views
Skip to first unread message

ilya

unread,
Dec 29, 2009, 12:43:01 AM12/29/09
to
Hello,

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

Maxim S. Shatskih

unread,
Dec 29, 2009, 1:51:38 AM12/29/09
to
The usual remount sequence, read the docs on FSCTL_DISMOUNT_VOLUME

--
Maxim S. Shatskih
Windows DDK MVP
ma...@storagecraft.com
http://www.storagecraft.com

"ilya" <il...@discussions.microsoft.com> wrote in message news:D870921F-3B3E-4AC1...@microsoft.com...

0 new messages