After the launch of windows breaks grub. How to fix it?

Hello. There is one computer, one ssd with windows 10, one hdd with debian 9. The problem is the following. If after using linux to pull the hard drive and insert the ssd with windows to boot, and then put back hard and try to start debian, grub is broken.

The following error
"Minimal BASH like line editing is supported. For the first word, TAB lists possible command completions. anywhere else TAB lists possible device or file completions."

Ssd with windows feels perfectly.

Tell me, what could be wrong?
June 3rd 19 at 20:19
3 answers
June 3rd 19 at 20:21
The path to the kernel Grube prescribed not using UUID, and the name of the disk (like /dev/sda)? And then have some fun from BIOS that changes the disk order.
June 3rd 19 at 20:23
try this utility.
not once rescued.
June 3rd 19 at 20:25
grub clearly something can not find. Toli toli wood itself on the file system.

Find more questions by tags LinuxWindowsGRUB