I started new with Raspberry Pi 2 a few weeks ago and I noticed something strange. Sometimes when I want to switch it ON, it does not switch ON, and instead both the red and yellow LEDs go ON, no blinking tho. But if I take out the power and eject the SD card and then insert the SD again and I try then it will turn ON.
What causes this? And how can I prevent this in case my raspberry pi is supposed to restart automatically repeatedly?