iMac Problem
I have an iMac (Intel) model running Yosemite 10.10.2 and it seems as though I am having startup issues. This iMac sits on a rolling cart and for long periods of time the cart will not be plugged into any outlet. So this means the iMac will not get any trickle of power. Occasionally, when I plug in the cart to an outlet, I turn on the Mac, I get a folder with a question mark. Obviously, this means it can't find the startup disk. I usually have to manually turn off the Mac and turn it back on while holding the OPTION key to select the startup disk then the Mac is working again. When the cart is plugged into an electric outlet, I don't have any problems with the startup of this Mac.
This problem happens frequently. What can I do to prevent this problem from happening and how do I fix this problem?
iMac, OS X Yosemite (10.10.2)