What to do if Mac OS X Yosemite ejects external drive?

No matter which Mac devices (Macbook, Macbook pro, Macbook air or even iMac), users tend to encounter the circumstance that Mac OS X ejects external drive after upgrading to Yosemite 10.10. Why? And how to fix?