Well, which is it ? The hard drive or the CD/DVD ?
I think you need to enter the BIOS screens (probably press Del key as computer starts). Once in the BIOS see if it detects the hard drive or CD/DVD.
Go to Boot Order and select CD/DVD or hard drive as first in boot order -- depending on what the problem is.