Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Reloading USB mass storage disk [think Logical Disk Manager refres

Reply
Thread Tools Display Modes

Reloading USB mass storage disk [think Logical Disk Manager refres

 
 
ilya
Guest
Posts: n/a

 
      12-29-2009
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
 
Reply With Quote
 
 
 
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      12-29-2009
The usual remount sequence, read the docs on FSCTL_DISMOUNT_VOLUME

--
Maxim S. Shatskih
Windows DDK MVP

http://www.storagecraft.com

"ilya" <> wrote in message news870921F-3B3E-4AC1-ACDD-...
> 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

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Manager Shrunk Drive and Lost Disk Space Paul Windows Vista Hardware 4 07-20-2007 02:21 PM
Adding e-SATA Drive Changes Physical Disk 0 in Logical Disk Manager - Any Problem? Ronnie Pincus Windows Vista Hardware 0 06-16-2007 06:29 AM
USB Mass Storage Devices Unrecognized (Vista) Jason Windows Vista Hardware 9 06-01-2007 04:04 PM
Low on Disk Space Barbara Windows Vista File Management 17 04-19-2007 10:22 PM
RC1 does not mount one of three disk drives Jacob Levanon Windows Vista File Management 12 10-05-2006 08:50 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59