If you are trying to burn a DVD and get a message like
or if you try to read a CD or DVD and the drive goes boop-squeek-crunch over and over, then maybe your laser lens has dog hair in it.
Get yourself a Laser Lens Cleaner. I got this one: about $13.00.
It has restored my Macs to proper function a couple of times.