When I unplug or plug in my drive the computer reboots

I am not sure what is wrong the drive seems to work fine unless I unplug or plug in the drive. The system will reboot.

Hello. What is the operating system on your computer? Does it give you any blue screen or any error message?