daynix / UsbDk

Usb Drivers Development Kit for Windows
Apache License 2.0
522 stars 142 forks source link

UsbDk cause win10 system in vhdx fail to startup #127

Open owenstake opened 8 months ago

owenstake commented 8 months ago

My win10 system is installed in vhdx file in usb harddisk (usb connected). After install UsbDk driver, this win10 system is fail to startup. There are two way to avoid it with pain:

  1. Remove the UsbDk driver, win10 finally startup.
  2. Move the vhdx file to the main harddisk (sata connected) to startup
ybendito commented 8 months ago

Thank you for the report. I suspect that because the usbdk is defined as system service and not as as boot service. I can't recommend any workaround right now except of running it from the HDD. Please let the issue open, if we find some workaround we update the issue.

ybendito commented 8 months ago

@owenstake Did the system ask you to reboot when you tried to istall the USBDK?

owenstake commented 8 months ago

@owenstake Did the system ask you to reboot when you tried to istall the USBDK?

It did.

ybendito commented 7 months ago

@owenstake Are you able to build your own usbdk driver? If so, may be I can suggest some change.

owenstake commented 7 months ago

@owenstake Are you able to build your own usbdk driver? If so, may be I can suggest some change.

@ybendito I can try it.

owenstake commented 7 months ago

Usbdk driver will reload all usb device at win10 system boot time to take over something, this will cause my win10 system in the usb device crashing.

ybendito commented 7 months ago

@owenstake I suggest to try one thing: After UsbDK installation do not reboot. Enter regedit HKLM->System->CurrentControlSet->Service->UsbDK, edit the 'Start' and create the 'Group' like that: Capture Then reboot Does it help?

owenstake commented 6 months ago

@owenstake I suggest to try one thing: After UsbDK installation do not reboot. Enter regedit HKLM->System-

@ybendito I tried but failed.

ybendito commented 6 months ago

@owenstake As far as I understand, your system is in fact something like Windows To Go (WTG). If so, probably it should follow the same recommendations as MSFT sets for WTG, one of them - do not use non-Microsoft core USB drivers, see for ex. here The plan regarding this issue - analyze it and decide whether we're able to support it. If not - whether we're able to prevent it. I'm not sure whether even preventing is possible: you can install the UsbDk when the VHDX file is on HDD and then move the VHDX to USB and boot from it. I do not close the issue, leaving for further analysis.

owenstake commented 6 months ago

@owenstake As far as I understand, your system is in fact something like Windows To Go (WTG). If so, probably it should follow the same recommendations as MSFT sets for WTG, one of them - do not use non-Microsoft core USB drivers, see for ex. here The plan regarding this issue - analyze it and decide whether we're able to support it. If not - whether we're able to prevent it. I'm not sure whether even preventing is possible: you can install the UsbDk when the VHDX file is on HDD and then move the VHDX to USB and boot from it. I do not close the issue, leaving for further analysis.

Thx for your attention.