Alright, I love it when a plan comes together. Glad you didn't have to trash the iMac and can get some use out of it.

It must have been something corrupt in the boot sectors of the HD. It's rare that a bad format causes a panic but I have seen it, at least twice now. You're lucky that's all that it was. Happy to help.