Hard Drive Stops Showing Up on iMac, still works on MacBook

My WD External drive has been working for a couple years as the primary external drive for my iMac.  The other day I couldn’t get it to show up on the iMac, tried rebooting, reconnecting cables… nothing.  Light won’t even go on but I can hear that the power is on.

I plugged it into my MacBook and it worked fine.

Any ideas for how to get it going again on my iMac??

are you connecting to the iMac or the keyboard?

try different ports… check disk utility