This question already has an answer here:
When I start up windows normally it just freezes , I click "Launch Startup Repair" I get this:
"Windows has encountered a problem communicating with a device connected to your computer.
This error can be caused by unplugging a removable storage device such as an external USB drive while the device is in use, or by faulty hardware such as a hard drive or CD-ROM drive that is failing. Make sure any removable is properly connected and then restart your computer
If you continue to receive this error message, contact the hardware manufacturer"
How do I fix this problem?