I would say 99% certain it's a failing HDD - it could be a faulty sector that's taking an age to read and stopping the machine starting up properly: The boot process won't continue until the drive has reported it is ready, even if booting from an optical drive.
Try this: Get the machine in a quiet room and power it on. Listen very, very carefully to the machine (put your ear on or very close to the chassis) - if you hear a click, click, click sound then it's the Hard drive
Don't really see how that would help... i tried doing that once but as i have mentioned before, the computer hangs before the actual OS boots. It takes 2.5 hours before anything at all appears on the screen.I almost don't think it's a failing hard drive.
Have you taken out whatever disc is in the drive? Does it take forever with no optical disc inside?
Boot in verbose mode (command + V held at startup) to see where it hangs at for so long.
It clicks a little the first few seconds, then it just sounds like a normal idle HD.
Is there any way to be sure that it is the hard drive? Without swapping HDs that is... i don't exactly have any spare discs lying around.
Do you have any other Mac's in the house? Or a friend who uses a Mac? If so, you could try Target Disk Mode and see how well the hard drive responds.
Definitely back up your stuff if you haven't already, and prepare for the worst.
stafh said:Actually, the other day it broke even more. After the customary 2.5 hours, the apple would show up and the wheel would spin for a few seconds, and then it would shut off without warning. I ran the disc utility from the DVD and it said that the HD had some errors. After i erased and formated the drive, the disc utility said that the drive was functional, and after i installed OS X the computer would boot up normally again (apart from the 2.5 hours).
When this happened, i did a backup of some important stuff onto my external hard drive via a friends macbook pro (through target disc mode). My friends macbook complained and said that my hard drive had errors, but those errors were fixed later when i formated the drive. I have run tests in the disc utility after I formated, and it doesn't find any errors.
Unfortunately the warranty ran out about a year ago :/