Cause: This can be either a software or a hardware problem. Solution: Certain hardware faults can cause the drive to immediately reject certain CDs. To make sure that it’s the drive and not the OS that is rejecting the CD, pull out the data cable from the drive and then insert a CD. If it is rejected, then the drive has a hardware fault. If the problem is with the OS, try disabling features such as auto-insertion notification.
If the machine is powered on for some time and the CD-R was in use, then the resultant heat can at times lead to such rejection problems. The drive might needs realignment, and should be given to a service centre.