If your drive does not show up in a disk utility, it is most likely bad. If you can boot from an os 9 cd and the mac works properly, it looks like the hardware of the mac is fine.
In the old days (with pc) it would work by rewriting the mbr, which - when damaged - prevents the system from...