Certain programs look for /dev/dvd by default to find DVDs, but that doesn't exist on my system for some reason. I'd like it to. /dev/sr0 is always how udev names my DVD drive. How do I ensure that the /dev/dvd symlink exists and points to it?
It looks like I can add something to /etc/udev/rules.d/70-persistent-cd.rules. This site gives a couple of examples, but the 70-persistent-cd.rules file says "add the ENV{GENERATED}=1 flag to your own rules", which isn't part of the examples. The man 7 udev page is impenetrable to me, and I'm not convinced the linked page gives 100% of the information I need.
So, what can I do on a modern, Ubuntu 12.04 system to make /dev/dvd exist and point to the right device?
EDIT: Is it as simple as adding ENV{GENERATED}=1 to the rules in the linked page, something like this:
SUBSYSTEM=="block", KERNEL=="sr0", SYMLINK+="dvd", GROUP="cdrom", ENV{GENERATED}=1
Is that the right information for modern Ubuntu? What is ENV{GENERATED} doing there, when it wasn't generated, but hand-written?
FURTHER EDIT: It turns out it is being created, but as soon as I insert a DVD, it disappears! I've asked this as a new question: Why does /dev/dvd disappear when I insert a DVD, and how can I keep it existing? I think this question still might have value for someone else with the problem I thought I had, so I'll leave it up.