none
Use DevCon to disable/enable drive, but required to reboot RRS feed

  • Question

  • I'm doing some test on SSD. The SSD will lost after power cycle, but it will appear again when disable/enable the corresponding ATA channel in device manager gui.

    When I programmed as WDK samples source code, it print "need to reboot" after disable the drive, The problem is I cannot afford to reboot the machine. so how to avoid this?

    Can somebody suggest any solutions for this. I am using windows 2008 32 bit machine

    Wednesday, June 1, 2016 12:15 PM

Answers

  • for the IDE channel the log clearly tells you the query remove was vetoed due to an open handle. Perhaps there is a mounted file system that needs to be unmounted fist. your log from dpinst has nothing to do with the ide channel device, it looks like a usb host controller

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, June 2, 2016 5:48 AM

All replies

  • setupapi.dev.log will tell you why the disable requires a reboot. that will help you remove the blocker or determine you must reboot

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Wednesday, June 1, 2016 6:39 PM
  • >>>  [Device Uninstall (Device Manager) - PCIIDE\IDECHANNEL\4&29182AF8&1&5]
    >>>  Section start 2016/06/01 19:29:13.604
          cmd: "C:\Windows\system32\mmc.exe" "C:\Windows\system32\compmgmt.msc" /s
         dvi: {DIF_REMOVE} 19:29:13.605
         dvi:      Using exported function 'HdcClassInstaller' in module 'C:\Windows\system32\SysClass.Dll'.
         dvi:      Class installer == SysClass.Dll,HdcClassInstaller
         dvi:      Using exported function 'CriticalDeviceCoInstaller' in module 'C:\Windows\system32\SysClass.Dll'.
         dvi:      CoInstaller 1 == SysClass.Dll,CriticalDeviceCoInstaller
         dvi:      Using exported function 'HdcCoInstaller' in module 'C:\Windows\system32\storprop.dll'.
         dvi:      CoInstaller 2 == storprop.dll,HdcCoInstaller
         dvi:      CoInstaller 1: Enter 19:29:13.614
         dvi:      CoInstaller 1: Exit
         dvi:      CoInstaller 2: Enter 19:29:13.615
         dvi:      CoInstaller 2: Exit
         dvi:      Class installer: Enter 19:29:13.616
         dvi:      Class installer: Exit
         dvi:      Default installer: Enter 19:29:13.617
         dvi:           {Remove DEVICE}
         dvi:                InstanceID = 'PCIIDE\IDECHANNEL\4&29182AF8&1&5'
         dvi:                Devnode Status = 0x0184210a
         dvi:                CM_Query_And_Remove_Subtree_Ex returns 0x00000017
         dvi:                Devnode Status after CM_Query_And_Remove_Subtree_Ex = 0x0184210a
    !    dvi:                Query-removal was vetoed by PCIIDE\IDEChannel\4&29182af8&1&5 (veto type 5: PNP_VetoOutstandingOpen)
    !    dvi:                Setting needs reboot
    !    dvi:                Query-and-Remove failed: 0x17: CR_REMOVE_VETOED.
         dvi:                {Delete DEVICE}
         dvi:                     Device Instance uninstalled.
         dvi:                {Delete DEVICE exit (0x00000000)}
         dvi:           {Remove DEVICE exit (0x00000000)}
         dvi:      Default installer: Exit
         dvi: {DIF_REMOVE - exit(0x00000000)} 19:29:18.672
    <<<  Section end 2016/06/01 19:29:18.673
    <<<  [Exit status: SUCCESS]





    >>>  [Device Install (Hardware initiated) - PCI\VEN_8086&DEV_8C31&SUBSYS_065315D9&REV_05\3&11583659&0&A0]
    >>>  Section start 2016/06/02 11:01:45.427
         ump: Creating Install Process: DrvInst.exe 11:01:45.428
         ndv: Retrieving device info...
         ndv: Setting device parameters...
         ndv: Searching just Driver Store...
         dvi: {Build Driver List} 11:01:45.459
         dvi:      Searching for hardware ID(s):
         dvi:           pci\ven_8086&dev_8c31&subsys_065315d9&rev_05
         dvi:           pci\ven_8086&dev_8c31&subsys_065315d9
         dvi:           pci\ven_8086&dev_8c31&cc_0c0330
         dvi:           pci\ven_8086&dev_8c31&cc_0c03
         dvi:      Searching for compatible ID(s):
         dvi:           pci\ven_8086&dev_8c31&rev_05
         dvi:           pci\ven_8086&dev_8c31
         dvi:           pci\ven_8086&cc_0c0330
         dvi:           pci\ven_8086&cc_0c03
         dvi:           pci\ven_8086
         dvi:           pci\cc_0c0330
         dvi:           pci\cc_0c03
         cpy:      Policy is set to make all digital signatures equal.
         dvi:      Enumerating INFs from path list 'C:\Windows\INF'
         inf:      Searched 0 potential matches in published INF directory
         inf:      Searched 35 INFs in directory: 'C:\Windows\INF'
         dvi: {Build Driver List - exit(0x00000000)} 11:01:45.515
         ndv: Selecting best match from just Driver Store...
         dvi: {DIF_SELECTBESTCOMPATDRV} 11:01:45.515
         dvi:      No class installer for 'Universal Serial Bus (USB) Controller'
         dvi:      No CoInstallers found
         dvi:      Default installer: Enter 11:01:45.516
         dvi:           {Select Best Driver}
    !    dvi:                Selecting driver failed(0xe0000228)
         dvi:           {Select Best Driver - exit(0xe0000228)}
    !    dvi:      Default installer: failed!
    !    dvi:      Error 0xe0000228: There are no compatible drivers for this device.
         dvi: {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 11:01:45.517
         ndv: Skipping Windows Update because no internet connection!
         ndv: Searching Driver Store and Device Path...
         dvi: {Build Driver List} 11:01:45.527
         dvi:      Searching for hardware ID(s):
         dvi:           pci\ven_8086&dev_8c31&subsys_065315d9&rev_05
         dvi:           pci\ven_8086&dev_8c31&subsys_065315d9
         dvi:           pci\ven_8086&dev_8c31&cc_0c0330
         dvi:           pci\ven_8086&dev_8c31&cc_0c03
         dvi:      Searching for compatible ID(s):
         dvi:           pci\ven_8086&dev_8c31&rev_05
         dvi:           pci\ven_8086&dev_8c31
         dvi:           pci\ven_8086&cc_0c0330
         dvi:           pci\ven_8086&cc_0c03
         dvi:           pci\ven_8086
         dvi:           pci\cc_0c0330
         dvi:           pci\cc_0c03
         cpy:      Policy is set to make all digital signatures equal.
         dvi:      Enumerating INFs from path list 'C:\Windows\inf'
         inf:      Searched 0 potential matches in published INF directory
         inf:      Searched 35 INFs in directory: 'C:\Windows\inf'
         dvi: {Build Driver List - exit(0x00000000)} 11:01:45.614
         ndv: Selecting best match from Driver Store (including Device Path)...
         dvi: {DIF_SELECTBESTCOMPATDRV} 11:01:45.614
         dvi:      No class installer for 'Universal Serial Bus (USB) Controller'
         dvi:      Default installer: Enter 11:01:45.615
         dvi:           {Select Best Driver}
    !    dvi:                Selecting driver failed(0xe0000228)
         dvi:           {Select Best Driver - exit(0xe0000228)}
    !    dvi:      Default installer: failed!
    !    dvi:      Error 0xe0000228: There are no compatible drivers for this device.
         dvi: {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 11:01:45.616
         ndv: {Core Device Install} 11:01:45.617
    !    ndv:      Installing NULL driver!
         dvi:      Set selected driver complete.
         dvi:      {DIF_ALLOW_INSTALL} 11:01:45.618
         dvi:           No class installer for 'Universal Serial Bus (USB) Controller'
         dvi:           Default installer: Enter 11:01:45.618
         dvi:           Default installer: Exit
         dvi:      {DIF_ALLOW_INSTALL - exit(0xe000020e)} 11:01:45.619
         dvi:      {DIF_INSTALLDEVICE} 11:01:45.619
         dvi:           No class installer for 'Universal Serial Bus (USB) Controller'
         dvi:           Default installer: Enter 11:01:45.620
    !    dvi:                Installing NULL driver!
         dvi:                Writing common driver property settings.
         dvi:                {Restarting Devices} 11:01:45.627
         dvi:                     Restart: PCI\VEN_8086&DEV_8C31&SUBSYS_065315D9&REV_05\3&11583659&0&A0
         dvi:                     Restart complete.
         dvi:                {Restarting Devices exit} 11:01:45.695
         dvi:           Default installer: Exit
         dvi:      {DIF_INSTALLDEVICE - exit(0x00000000)} 11:01:45.696
         ndv:      Device install status=0xe0000203
         ndv:      Performing device install final cleanup...
    !    ndv:      Queueing up error report since device installation failed...
         ndv: {Core Device Install - exit(0xe0000203)} 11:01:45.696
         ump: Server install process exited with code 0xe0000203 11:01:45.698
    <<<  Section end 2016/06/02 11:01:45.700
    <<<  [Exit status: FAILURE(0xe0000203)]

    Thursday, June 2, 2016 3:13 AM
  • for the IDE channel the log clearly tells you the query remove was vetoed due to an open handle. Perhaps there is a mounted file system that needs to be unmounted fist. your log from dpinst has nothing to do with the ide channel device, it looks like a usb host controller

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Thursday, June 2, 2016 5:48 AM
  • Thanks for your info

    I think maybe an open handle prevent the devcon operation. however I cannot close it in my tool. is there any possible ways to solve this issue?

    Thursday, June 2, 2016 8:56 AM