iBook won't recognize cd drive

Tardy teacher

I replaced the hard drive in a iBook G4. Placed the system disk in the drive to install the system, and cd is not recognized. Placed computer in target disk mode to try and format hd, thinking the cd wouldn't be rcognized until hard drive was formated. Runnig out of ideas, any help would be appreciated.