My computer would sometimes behave that way, nothing but a black screen with a blinking underscore in the corner. I found it only happened if I had accidentally left a flash drive plugged in at startup. Removing the flash drive and rebooting solved it.
Your problem might have some other cause, but try it without any extra hardware connected just in case. No CDs, no USBs, not printer, nothing but the essentials.