I would personally do a clean install, wiping the drive clean by doing so. What iMac are you talking about? If its an older G3 iMac and you dont have the restore discs, you might have a tough time finding OS 9 discs to clean it up. If its a G4 iMac, you can install OS 10.4, I think thats the latest version of OS X it can install, and those are easier to come by then OS 9.