Originally Posted by ryanreich
Ubuntu could be using Supermount, which handles this situation differently.
It's not. It's using HAL with a desktop volume manager, which is considered the right
way to do things these days.
To answer your question, no you can't use a udev script to detect a CD insert. No device creation means no udev event.
However, with the advent of HAL, you don't really want to be using udev scripts anyway. HAL presents a unified interface for that can detect insertion and removal of CDs, USB flash drives, and other types of hardware. It's a lot more flexible than udev scripts and you can customize the actions taken when a device is inserted without having root access.
On the down side, if your distribution doesn't support it out of the box, it could be a big pain to get working.