I installed Linux on my laptop, which dual boots to (and defaults to) Windows. The problem I'm having is that my laptop has a bay where I can swap the CD/DVD for a second hard drive. Because of space limitations, I installed Linux on this second drive.

Mostly, this is not a problem, but if I boot up and the CD is the bay (not the second hard drive) then GRUB "has a cow" over not being able to find the linux partition, and just crashes. The only recourse is to turn off the machine, insert the removeable drive, and reboot, and all is good.

I'd like to be able to avoid this process. Is there a way to setup GRUB so that if the Linux partition isn't present, GRUB will just ignore it?