I've got an 800 mhz FP iMac w/ 784 MB RAM, running 10.2.4. It has started to freeze on occasion. When this happens, I hold the power button down for 5 seconds and force it to turn off. I then press the power button to turn it back on. It shows the gray Apple and the spinning cog, but stays there indefinitely. I've waited as long as 10 minutes, but it doesn't finish booting up. I repeat the process - sometimes three times, sometimes as many as ten - until it finally boots up at a normal speed and works fine until the next freeze. Apple diagnosis disk shows all systems OK.
Any ideas?