Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
I ran into the same problem on a Dell Inspiron 660s. Wish there was a better answer for this problem. – Cerin Jan 21 at 1:04

1 Answer

After rebooting a few times to test my above idea out, I found that Ubuntu had started creating /dev/dvd all on its own. Not sure why it didn't at first. So I guess the correct answer is "you don't need to do anything; it'll already exist". =/

share|improve this answer
See my last edit above. It is being created, but it disappears when I actually need it. – chazomaticus May 2 '12 at 19:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.