Could be three things:
1. CD/R Drive - Your CD drive itself could be going bad.
2. IDE Motherboard Connection - The place where the IDE cable plugs into the motherboard from the CD/R drive could be going bad.
3. System Driver - Your OS could have corupt drivers or configuration files for the CD/R drive.
I have the same problem on my HP, but it's running Windows (gotta love the bluescreen).